Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API returned an error: Sequence 'piwik_archive_numeric_2015_01' not found. at Sequence.php:99 #6929

Closed
purecanuck opened this issue Jan 6, 2015 · 12 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@purecanuck
Copy link

I just updated to Piwik version 2.10.0 by unziping the zipfile, moving my config file into it, and then clearing the cache via php on the command line.

When I go to $URL/index.php?module=MultiSites&action=index&idSite=5&period=day&date=today

I get error message:
API returned an error: Sequence 'piwik_archive_numeric_2015_01' not found. at Sequence.php:99

@mattab
Copy link
Member

mattab commented Jan 6, 2015

Hi there,

to fix this issue you can execute the Mysql QUERY:

INSERT INTO piwik_sequence (name, value) VALUES ('piwik_archive_numeric_2015_01' , 99999)

@mattab mattab closed this as completed Jan 6, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Jan 6, 2015
@sgiehl
Copy link
Member

sgiehl commented Jan 6, 2015

Similar issues were repoted on the forum more than once.

Couldn't we simply create the sequence when it isn't found but should be
there?

@mattab
Copy link
Member

mattab commented Jan 6, 2015

see #6815

reason we didnt so far put a workaround is because it's a one-off issue, only heappen when old users upgrade, and in quite particular edge case...

@sgiehl
Copy link
Member

sgiehl commented Jan 6, 2015

IIRC there was one on the german forum having the issue after upgrading
from 2.9.1 to 2.10

@amq
Copy link

amq commented Feb 5, 2015

I am experiencing the same issue - the insert fixed it for January, but now it is back. Will I have to run the insert each month?

Piwik 2.10.0, always upgraded from dashboard (no manual stuff like ftp uploads, mysql schema upgrades etc).

@mattab mattab reopened this Feb 6, 2015
@mattab mattab added Bug For errors / faults / flaws / inconsistencies etc. and removed answered For when a question was asked and we referred to forum or answered it. labels Feb 6, 2015
@mattab mattab added this to the Short term milestone Feb 6, 2015
@purecanuck
Copy link
Author

mysql> INSERT INTO piwik_sequence (name, value) VALUES ('piwik_archive_numeric_2015_01' , 99999);
ERROR 1062 (23000): Duplicate entry 'piwik_archive_numeric_2015_01' for key 'PRIMARY'

@purecanuck
Copy link
Author

I'm still getting this issue after upgrading to Piwik 2.11.

@purecanuck
Copy link
Author

Let me know if there's any more information I can provide.

@mattab
Copy link
Member

mattab commented Feb 25, 2015

We need to do something about this bug, adding Major tag

@mattab mattab added the Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. label Feb 25, 2015
@mattab mattab modified the milestones: Piwik 2.11.2, Short term Feb 26, 2015
@mattab
Copy link
Member

mattab commented Feb 26, 2015

@tsteur maybe you have an idea how we could fix this one in a proper way?

@pfmoser
Copy link

pfmoser commented Mar 1, 2015

New month, new luck. All my APIs requests from WordPress did have the error for the new month.

INSERT INTO piwik_sequence (name, value) VALUES ('piwik_archive_numeric_2015_03' , 99999)

did solve the problem for now, but I did a regular update via Dashboard and nothing in special. Please fix this before the next month. Thanks.

@mattab
Copy link
Member

mattab commented Mar 2, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

5 participants