Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all 5838 articles
Browse latest View live

Matomo crashes my mariadb database

$
0
0

@omen wrote:

Hi, we use Matomo since a long time (archives date back til 2006 :slight_smile: ), but today our mariadb database was crashed by Matomo :frowning_face:.

From the DB dump (see below) there is a very long/cryptic SQL query, which seems to have been generated by core/RankingQuery / generateRankingQuery(…).
I’m not sure, if I need to adjust some Mariadb config parameters, or if this is really a bug. Can anybody help?

Here is the relevant mysqld.log part:

190218 12:11:58 [ERROR] mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.

To report this bug, see https://mariadb.com/kb/en/reporting-bugs

We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

Server version: 10.0.35-MariaDB
key_buffer_size=16777216
read_buffer_size=262144
max_used_connections=152
max_threads=153
thread_count=27
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 371914 K bytes of memory
Hope that’s ok; if not, decrease some variables in the equation.

Thread pointer: 0x5618a621e218
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong…
stack_bottom = 0x7f52fb802ed8 thread_stack 0x48000
/usr/sbin/mysqld(my_print_stacktrace+0x29)[0x5618a46d7af9]
/usr/sbin/mysqld(handle_fatal_signal+0x465)[0x5618a42ec395]
/lib64/libpthread.so.0(+0x10c10)[0x7f538f5ddc10]
/usr/sbin/mysqld(+0x6a6c9d)[0x5618a4461c9d]
/usr/sbin/mysqld(_Z15end_read_recordP11READ_RECORD+0x7a)[0x5618a43da49a]
/usr/sbin/mysqld(_ZN4JOIN7cleanupEb+0x3e8)[0x5618a41e6c88]
/usr/sbin/mysqld(_ZN4JOIN7destroyEv+0x14c)[0x5618a41e6ebc]
/usr/sbin/mysqld(_ZN13st_select_lex7cleanupEv+0x28)[0x5618a4232748]
/usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_uni
tP13st_select_lex+0x200)[0x5618a41f5150]
/usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x264)[0x5618a41f5ad4]
/usr/sbin/mysqld(+0x3e9193)[0x5618a41a4193]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x54a0)[0x5618a41afe20]
/usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x1e8)[0x5618a41b2108]
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x19f0)[0x5618a41b4140]
/usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x1c4)[0x5618a4266664]
/usr/sbin/mysqld(handle_one_connection+0x37)[0x5618a42666f7]
/lib64/libpthread.so.0(+0x8724)[0x7f538f5d5724]
/lib64/libc.so.6(clone+0x6d)[0x7f538e3c5e8d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x5618a622acc0): SELECT

                            CASE
                                    WHEN counter = 50001 THEN '-1'
                                    ELSE `idaction`
                            END AS `idaction`
                    ,
                            CASE
                                    WHEN counter = 50001 THEN '-1'
                                    ELSE `name`
                            END AS `name`

                            , `url_prefix`, min(`28`) AS `28`, sum(`29`) AS `29`, sum(`2`) AS `2`, `1`, sum(`12`) AS `12`, sum(`30`) AS `30`, sum(`31`) AS `31`, min(`32`) AS `32`, max(`33`) AS `33`, `type`
                    FROM (
                    SELECT
                            `idaction`, `name`,

                    CASE
                            WHEN `type` = 1 AND @counter1 = 50001 THEN 50001
                            WHEN `type` = 1 THEN @counter1:=@counter1+1
                            WHEN `type` = 2 AND @counter2 = 50001 THEN 50001
                            WHEN `type` = 2 THEN @counter2:=@counter2+1
                            WHEN `type` = 3 AND @counter3 = 50001 THEN 50001
                            WHEN `type` = 3 THEN @counter3:=@counter3+1
                            WHEN `type` = 4 AND @counter4 = 50001 THEN 50001
                            WHEN `type` = 4 THEN @counter4:=@counter4+1
                            WHEN `type` = 8 AND @counter8 = 50001 THEN 50001
                            WHEN `type` = 8 THEN @counter8:=@counter8+1
                            ELSE 0
                    END
             AS counter
                            , `url_prefix`, `28`, `29`, `2`, `1`, `12`, `30`, `31`, `32`, `33`, `type`
                    FROM
                            ( SELECT @counter1:=0 ) initCounter1, ( SELECT @counter2:=0 ) initCounter2, ( SELECT @counter3:=0 ) initCounter3, ( SELECT @counter4:=0 ) initCounter4, ( SELECT @counter8:=0 ) initCounter8,
                            ( SELECT /* Actions */
                            log_action.name,
            log_action.type,
            log_action.idaction,
            log_action.url_prefix, count(distinct log_link_visit_action.idvisit) as `2`, count(distinct log_link_visit_action.idvisitor) as `1`, count(*) as `12`, sum(
                    case when custom_float is null
                        then 0
                        else custom_float
                    end
            ) / 1000 as `30`, sum(
                case when custom_float is null
                    then 0
                    else 1
                end
            ) as `31`, min(custom_float) / 1000 as `32`, max(custom_float) / 1000 as `33`,
            CASE WHEN (MAX(log_link_visit_action.custom_var_v5) = 0
                AND log_link_visit_action.custom_var_k5 = '_pk_scount')
            THEN 1 ELSE 0 END
                AS `28`,
            SUM( CASE WHEN log_action_name_ref.type = 8
                  THEN 1 ELSE 0 END)
                AS `29`
                    FROM
                            p_log_link_visit_action AS log_link_visit_action LEFT JOIN p_log_action AS log_action ON log_link_visit_action.idaction_name = log_action.idaction LEFT JOIN p_log_action AS log_action_name_ref ON log_link_visit_action.idaction_name_ref = log_action_name_ref.idaction
                    WHERE
                            log_link_visit_action.server_time >= '2019-02-17 23:00:00'
                            AND log_link_visit_action.server_time <= '2019-02-18 22:59:59'
                            AND log_link_visit_action.idsite IN ('29') AND log_link_visit_action.idaction_name IS NOT NULL AND log_link_visit_action.idaction_event_category IS NULL
                    GROUP BY
                            log_link_visit_action.idaction_name
                    ORDER BY
                            `12` DESC, name ASC ) actualQuery
             ) AS withCounter
                    GROUP BY counter, `type`

Connection ID (thread ID): 215723
Status: NOT_KILLED

Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=off

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

Posts: 1

Participants: 1

Read full topic


CoreAdminHome/Tasks.php(203): Notice - Undefined offset: 1

$
0
0

@Slind wrote:

I’m getting the following error:

plugins/CoreAdminHome/Tasks.php(203): Notice - Undefined offset: 1 - Matomo 3.8.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)

Posts: 1

Participants: 1

Read full topic

MySQL server has gone away

$
0
0

@Slind wrote:

Hi there,

I’m getting the following error. The odd thing is that MySQL (MariaDB) is not crashing or throwing any errors in the syslog.

INFO [2019-02-19 08:15:20] 6214  ---------------------------
INFO [2019-02-19 08:15:20] 6214  INIT
INFO [2019-02-19 08:15:20] 6214  Running Matomo 3.8.1 as Super User
INFO [2019-02-19 08:15:20] 6214  ---------------------------
INFO [2019-02-19 08:15:20] 6214  NOTES
INFO [2019-02-19 08:15:20] 6214  - Reports for today will be processed at most every 150 seconds. You can change this value in Matomo UI > Settings > General Settings.
INFO [2019-02-19 08:15:20] 6214  - Reports for the current week/month/year will be requested at most every 3600 seconds.
INFO [2019-02-19 08:15:20] 6214  - Archiving was last executed without error 3 min 13s ago
INFO [2019-02-19 08:15:20] 6214  - Will process 1 other websites because some old data reports have been invalidated (eg. using the Log Import script or the InvalidateReports plugin) , IDs: 4
INFO [2019-02-19 08:15:20] 6214  ---------------------------
INFO [2019-02-19 08:15:20] 6214  START
INFO [2019-02-19 08:15:20] 6214  Starting Matomo reports archiving...
INFO [2019-02-19 08:15:20] 6214  - tracking data found for website id 1 since 2019-02-19 08:12:07 UTC (since the last successful archiving)
INFO [2019-02-19 08:15:20] 6214  Will pre-process for website id = 1, period = day, date = last2
INFO [2019-02-19 08:15:20] 6214  - pre-processing all visits
INFO [2019-02-19 08:15:22] 6214  Archived website id = 1, period = day, 0 segments, 2658 visits in last 2 days, 380 visits today, Time elapsed: 1.442s
INFO [2019-02-19 08:15:22] 6214  Will pre-process for website id = 1, period = week, date = last93
INFO [2019-02-19 08:15:22] 6214  - pre-processing all visits
INFO [2019-02-19 08:15:25] 6214  Archived website id = 1, period = week, 0 segments, 1639711 visits in last 93 weeks, 2658 visits this week, Time elapsed: 2.641s
INFO [2019-02-19 08:15:25] 6214  Will pre-process for website id = 1, period = month, date = last52
INFO [2019-02-19 08:15:25] 6214  - pre-processing all visits
INFO [2019-02-19 08:15:37] 6214  Archived website id = 1, period = month, 0 segments, 2162215 visits in last 52 months, 41804 visits this month, Time elapsed: 12.447s
INFO [2019-02-19 08:15:37] 6214  Will pre-process for website id = 1, period = year, date = last7
INFO [2019-02-19 08:15:37] 6214  - pre-processing all visits
ERROR [2019-02-19 08:27:15] 6214  Got invalid response from API request: ?module=API&method=API.get&idSite=1&period=year&date=last7&format=php&trigger=archivephp. Response was 'a:2:{s:6:"result";s:5:"error";s:7:"message";s:139:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away, caused by: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away";}'
INFO [2019-02-19 08:27:15] 6214  Archived website id = 1, period = year, 0 segments, 0 visits in last 7 years, 0 visits this year, Time elapsed: 698.277s
INFO [2019-02-19 08:27:15] 6214  Archived website id = 1, 4 API requests, Time elapsed: 714.810s [1/19 done]
WARNING [2019-02-19 08:27:15] 6214  /var/www/piwik/htdocs/libs/Zend/Db/Statement/Pdo.php(228): Warning - PDOStatement::execute(): MySQL server has gone away - Matomo 3.8.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2019-02-19 08:27:15] 6214  /var/www/piwik/htdocs/libs/Zend/Db/Statement/Pdo.php(228): Warning - PDOStatement::execute(): Error reading result set's header - Matomo 3.8.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)



  [Zend_Db_Statement_Exception]
  SQLSTATE[HY000]: General error: 2006 MySQL server has gone away






  [PDOException]
  SQLSTATE[HY000]: General error: 2006 MySQL server has gone away



core:archive [--url="..."] [--force-all-websites] [--force-all-periods[="..."]] [--force-timeout-for-periods[="..."]] [--skip-idsites[="..."]] [--skip-all-segments] [--force-idsites[="..."]] [--force-periods[="..."]] [--force-date-last-n="..."] [--force-date-range[="..."]] [--force-idsegments="..."] [--concurrent-requests-per-website[="..."]] [--concurrent-archivers[="..."]] [--disable-scheduled-tasks] [--accept-invalid-ssl-certificate] [--php-cli-options[="..."]]

What could be the cause and how can we resolve it?

Posts: 3

Participants: 2

Read full topic

Javascript TypeErrors in browser console for Matomo 3.8.1

$
0
0

@AAugustine wrote:

I have noticed that when I go “Email Reports”, the browser console fills with errors

On Chrome -

    at ManageScheduledReportController.getFrequencyPeriodPlural (index.php?module=Proxy&action=getCoreJs&cb=d2c98ba5dc56d1cc69a8624aa4f7b7b2:3546)
TypeError: Cannot read property 'period' of undefined
    at ManageScheduledReportController.getFrequencyPeriodSingle (index.php?module=Proxy&action=getCoreJs&cb=d2c98ba5dc56d1cc69a8624aa4f7b7b2:3545)

On FireFox -
TypeError: this.report is undefined

These errors repeat roughly 100 times in console. I was using 3.6 previously and these errors weren’t there.

Posts: 1

Participants: 1

Read full topic

Non existent visitor ids

$
0
0

@jrout wrote:

I am experiencing an issue with an application that uses Matomo to track visits to a website, and also submit usage events to a different idsite in an app. It’s mildly complex, so I’ll describe a workflow to demonstrate my issue.

  • User visits site, they are given a visitorId
  • User clicks button in site to open a new widget on a window with a different domain. We pass the vistorId to the widget when the button is clicked.
  • Upon widget completion, we request the data for the visitorId via the API, and perform actions on it.

What I have discovered is that, in the widget, the visitorId we pass from the main site to the widget, does not actually exist as a visitorId in the Matomo DB. This an intermittent issue.

Are there circumstances in which Matamo will create a visitorId and not save it?

Caveat: I am also using the same Piwik instance to track widget usage. This submits the usage events to a different idsite (same idsite for all widget instances). What I don’t know is if this potentially a factor, since I cannot reliably reproduce.

Jason

Posts: 1

Participants: 1

Read full topic

Segment vistors based on past urls

$
0
0

@mat42 wrote:

So after some reading i’m not sure if this is a bug or support question. I can’t find a way to segment visitors based on a url they have visited in a vist or in a previous visit.

e.g. my colleague asked to see all visitors who ever went through a certain category on our wordpress site, but when i choose to segment on a “action url” using the containing option then only the page url’s/ titles etc that specifically contained that url where returned not how many people came from say the home page to that category or went on to read other articles from that category. We wanted a segment so we could see all the location, refere info, broweser stats, etc, If it was a single page i would use the transistions option but no good. Preferably it would be great to see all url’s in all time so not just with in one visit.

There seems to be a few requests around this, and the events url option that was bought in. When i use the event url option i get no result at all!

If i had known this was needed I could have set a goal, but it looks like thers no way to do a goal that goesback in time

in the future i guess i could set up a custom dimension with code like:

_paq.push(['setCustomDimension', 3, 'catagory-slug']);

Any help or suggestions would be warmly recived, I presume i’m not the only one with this problem and at the moment it’s the one feature that our team needs but i can’t provide with matomo

Posts: 1

Participants: 1

Read full topic

Not Tracking Revenue by Keyword

$
0
0

@Alex_Kent wrote:

I’ve implemented a solution to get our PayPal IPN notifications to report sales to Matomo Matomo 3.8.1 based on this guide: HowTo: Paypal tracking via IPN script

These are being tracked in the Goals->Campaigns report, but when you click through into the keywords these are being lost.

For example, I know that sales have come in through the keyword “msap-nl-18022019” as this was correctly recorded in the visitor log.

Any ideas?

Thanks,

Alex

ps: Have combined our screenshots as can only upload one image…

Posts: 1

Participants: 1

Read full topic

Duplicate tracking of ecommerce orders

$
0
0

@toitoit wrote:

We have issues, that several Orders are tracked twice. It happens, when users are visiting the checkout success page again. We are using an unique orderId. You documentation is saing, that the old order will be dropped, when its tracked again: Ecommerce Analytics User Guide - Analytics Platform - Matomo

Could it be possible, that this is not working, when we have enabled DSVGO/GDPR related options like anonymizing orders number?

Matomo-Version: 3.8.1
MySQL-Version: 5.5.60-MariaDB
PHP-Version: 7.1.26

Posts: 1

Participants: 1

Read full topic


Reporting API date=lastX and date=previousX not working

$
0
0

@ResponsibleUser wrote:

Matomo 3.8.1 & PHP 7.2.5

https://xxxxxxx/index.php?module=API&method=VisitsSummary.get&idSite=xxxx&date=previous52&period=week&format=tsv&token_auth=xxxxx

But this is the same for all date=lastX and date=previousX parameters:
Result in a message:

Error: Das Datumsformat muss YYYY-MM-DD, or ‘today’ or ‘yesterday’ oder eine andere, von der Funktion strtotime unterstützte Zeichenkette sein. (Besuchen Sie PHP: strtotime - Manual für nähere Informationen)

Whis is saying only: the date-format must be YYYY-MM-DD, or ‘today’ or ‘yesterday’ or one of the supported string of the function strtotime.

Posts: 2

Participants: 2

Read full topic

Export data to another installation

$
0
0

@marin wrote:

Hello, my organisation needs to integrate the statistics of an old piwik installation to a different newer matomo installation. This newer version also contains statistics for different sites. The server for the old installation will be removed soon.
How do I bring the statistics from the old sites into the newer installation in order to have both the statistics for the old sites and the statistics for the new sites living togehter?

Regards

Posts: 1

Participants: 1

Read full topic

SQL errors on Matomo

$
0
0

@atif.ali wrote:

Hi ,

Environment

Matomo version: 3.8.1
MySQL version: 10.2.21-MariaDB with TokuDB
PHP version: 7.0.33

I am seeing following SQL errors on two screens of Matomo . Any idea what can be done about these ?

Evolution over the period

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘DEFAULT CHARSET=utf8’ at line 13

Visits Over Time

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘DEFAULT CHARSET=utf8’ at line 13

Posts: 1

Participants: 1

Read full topic

Need help! Visit breaks up in mutliple visits

$
0
0

@shadowgun1102 wrote:

Hello!
Recently I have the problem that visits break up into several visits and are then counted multiple times in the stats.

See the attachted example. Piwik recognizes the page views (which are within seconds/minutes) as coming from the same visitor but counts them as separate visits.

Does anyone know the reason why or what can be done about it? The site is running on wordpress and uses WP-Piwik to add the tracking code.

Thanks!

Posts: 1

Participants: 1

Read full topic

A Goal segmented by another Goal

$
0
0

@dustin.friedline wrote:

Hi all,
I face a weird issue:

i can’t use the visitConvertedGoalId segementation feature for another Goal. For example: I want to see, how many people have clicked the “final purchase” button in my shop and have achieved a certain Goal before?
To do so I open the “final purchase” Goal report, and set the segment to visitConvertedGoalId==1 for example.

It would be very helpful if someone can help me with this problem.
Big thanks in advance.
Best, Dustin

Posts: 1

Participants: 1

Read full topic

SyntaxError: expected expression, got '

$
0
0

@jhcook wrote:

Hello,

I’m new to Matomo so this may be an easy fix that I have just overlooked. Initially I installed Matomo on a Ubuntu hyper-v on my local laptop and everything installed fine. I setup the website tracking, copied the javascript to the site I wanted to track and things worked as expected. Next I installed Matomo on a Windows server running IIS. Since there are other sites on this server I set it up on a different port. I setup the site I wanted to track (which is the same site I was tracking earlier) and now when I load the site in Firefox and Chrome I get an error: SyntaxError: expected expression, got ‘<’ and nothing is tracked. Is there a setting or something else that I need to check in order to get this to work?

Thanks,
Joseph

Posts: 2

Participants: 2

Read full topic

Integrating matomo with my app. It don't show events


Matomo long lasting load

$
0
0

@farfalla wrote:

Motamo 7.2.14

Hello,
On one of my hosters motamo installation has heavy load times. Not only the result page but also diagnose page etc. load endless etc.
Diagnose reports: "Ihr Server nutzt ein NFS Dateisystem. Dies bedeutet, dass Matomo extrem langsam arbeitet, wenn Dateibasierte Sessions genutzt werden. "
But my Hoster says that this is obligatory by using virtual servers.

Could anyone have an idea to solve this?
fafalla

Posts: 2

Participants: 2

Read full topic

Opt-Out not working with Edge Browser

$
0
0

@managetopia wrote:

Hello,
I discovered earlier today that the Opt-Out function is not working in the Edge Browser…

Yes, we do have a number of clients using Edge.:upside_down_face:

Appreciate your feedback.

Thanks,
Cara

Posts: 2

Participants: 2

Read full topic

Safari User Agent 98% visitor and session loss

$
0
0

@clearlink_analytics wrote:

We are using 3 analytics tracking systems on a set of 100 websites. Our internal tracking system and Google Analytics agrees pretty closely on sessions. Matomo is missing about 4,800 sessions out of 20,700 (23%). Of the missing sessions 98% are Safari browsers across devices. About 43% have the same UA:

Mozilla/5.0 (iPhone; CPU iPhone OS 12_1_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1

Perhaps stranger, not all users with Safari or even this User Agent are missed.

Safari users account for a sizable number of our orders and so simply ignoring their webtraffic is not an acceptable solution.

We are on the latest version of Matomo (just upgraded two weeks ago and the problem persists)
We have renamed the piwik.js file and server name
Do Not Track is off
We send a unique ID to all three systems so we can tell the individuals’ activity including that they hit a variety of web pages. There doesn’t appear to be a setup issue with the Matomo tracking script. I can see it firing in GTM
There are no javascript errors on the pages for these people.

Matomo is our system of record and we really need 100% of traffic tracked.

Posts: 1

Participants: 1

Read full topic

Error while injecting dependencies into Monolog

$
0
0

@yaniv_fridberg wrote:

Hi,

After upgrade from piwik 3.5.0 to 3.8.1 I’m not getting any data on my dashboard.
I see on every widget the same error:

Error while injecting dependencies into Monolog\Logger: No entry or class found for 'ini.Debug.archive_profiling_log'

Please help

Posts: 1

Participants: 1

Read full topic

Widgets do not update, with one exeption

$
0
0

@farfalla wrote:

Hello,

Since this morning my matomo has only actualized the “visits in real time” but all other widgets have not shown actual analytics data. So data within matomo widgets show different data.
The server logfiles confirm that visitors and visits in motamo widgets are not counted reliably.

How can I fix this?

Thanks and Regards

Posts: 3

Participants: 2

Read full topic

Viewing all 5838 articles
Browse latest View live