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

console core:update issue using Piwik 2.3 #5306

Closed
quba opened this issue Jun 5, 2014 · 5 comments
Closed

console core:update issue using Piwik 2.3 #5306

quba opened this issue Jun 5, 2014 · 5 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

@quba
Copy link
Contributor

quba commented Jun 5, 2014

Awaited:
Successful update from previous versions to Piwik 2.3 (tried with Piwik 1.12 and Piwik 1.6).

Given:

 $ php console core:update

*** Update ***
    Database Upgrade Required
    Your Piwik database is out-of-date, and must be upgraded before you can continue.
    Piwik database will be upgraded from version 1.12 to the new version 2.3.0.
    The database upgrade process may take a while, so please be patient.

No queries are executed. Other update tasks are also not performed (including migrating superuser from config to the database). There's nothing in error log. Tried on different hosts and configurations. Running same command with --dry-run parameter works OK.
Keywords: update, core

@mgazdzik
Copy link
Contributor

mgazdzik commented Jun 5, 2014

I can confirm this error.
I checked it on clean Piwik instance (used tag 1.12 from github), performed manual instalation.
Then I checked out 2.3.0 tag from github, and tried to run core:update task.
Nothing has happened, no errors were thrown.
Also no errors were found in apache error log.

@mattab
Copy link
Member

mattab commented Jun 11, 2014

I tried to reproduce exactly as indicated:-

  • installed 1.12
  • as expected, piwik_user table does not have "superuser_access" column
  • git checkout 2.3.0
  • ./console core:update
  • after running the command piwik_user table has a superuser_access column.

I cannot reproduce, it is working for me.

@mattab
Copy link
Member

mattab commented Jun 11, 2014

If Piwik didn't upgrade properly, when you visit piwik 2.3.0, you see errors and exceptions, because some columns would be missing etc. do you see such errors?

@mattab
Copy link
Member

mattab commented Jun 12, 2014

We found out that the problem occurs only when the following command is used:

  • php console core:update

but it works fine with this command:

  • ./console core:update

@mattab
Copy link
Member

mattab commented Jun 20, 2014

In 5e8b3b7: Fixes #5306 Make sure console command works as expected when php console core:update is used instead of ./console core:update

@quba quba added this to the 2.4.0 - Piwik 2.4.0 milestone Jul 8, 2014
This issue was closed.
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

3 participants