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

Upgrade 12.0.4 to 13 failed on shared hosting #8213

Closed
robertronq opened this issue Feb 7, 2018 · 4 comments
Closed

Upgrade 12.0.4 to 13 failed on shared hosting #8213

robertronq opened this issue Feb 7, 2018 · 4 comments

Comments

@robertronq
Copy link

robertronq commented Feb 7, 2018

Tried to run upgrade via web. Made it all the way to "Go back to your Nextcloud instance to finish your upgrade" Then got a blank page "HTTP error 500".
Also tried running "php occ upgrade" but im getting this error. I appreciate any help you can provide.

php occ maintenance:repair
X-Powered-By: PHP/4.4.9
Content-type: text/html


Fatal error: main() [function.require]: Failed opening required '__DIR__/console.php' (include_path='.:/usr/lib/php4.4') in /homepages/31/d223016723/htdocs/owncloud/occ on line 11

Updater.log
updater.log

@tflidd
Copy link
Contributor

tflidd commented Feb 7, 2018

The errors in the log only state that there was a php.ini and old_php.ini in your updater folder. I'm not really sure but it looks like the process continues. Can you check the version number in your config/config.php?

Also tried running "php occ upgrade" but im getting this error.
X-Powered-By: PHP/4.4.9

You should use a newer php version (5.6 or newer) for that. Your provider has perhaps different php versions and you need to know the name of the binary of a newer version (php5, php5.6, ..), your provider should have this in the documentation or their support should know it.

@robertronq
Copy link
Author

robertronq commented Feb 7, 2018

Thank you for the quick response.
I removed the php.ini and old_php.ini file and ran the update. My host php version is actually 7.1.
I've included my config.php, renamed it to config.txt, it doesnt indicate the php version.

If I check from the Control panel of my webhost, it shows that my PHP version is 7.1, but when I run "php -v" from the console, it shows "PHP 4.4.9". I dont know why. I'll try to contact my webhost support to see what its like that.

@tflidd
Copy link
Contributor

tflidd commented Feb 7, 2018

Then probably you loaded the code but did not run the actual update (please change your db password, you should not publish it here). Normally, it is the right way to run the upgrade command via terminal, you just need the right php version. For 1&1 try this:
/usr/bin/php7.1-cli occ upgrade

@robertronq
Copy link
Author

Thank you VERY MUCH !!!
That fixed it. Now I have to see if i can update the cli to the newer php version. So I dont have to remember this next time. Thank you again !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants