owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.38k stars 2.05k forks source link

upgrade to 6.01 to fix problem 353 gives Upgrade is not possible Error msg #6925

Closed loriguidos closed 10 years ago

loriguidos commented 10 years ago

I am using Ubuntu 13.10 and OwnCloud 6.0

I need to upgrade to 6.01 to fix problem 353.

After backing up files and database, I begin the Admin; Update and get the error:

"Upgrade is not possible. Make sure that your webserver has write access to the following files and directories:

/var/www/owncloud/3rdparty/LICENSE INFO /var/www/owncloud/3rdparty/MDB2.php /var/www/owncloud/3rdparty/PEAR-LICENSE /var/www/owncloud/3rdparty/PEAR.php /var/www/owncloud/3rdparty/PEAR5.php /var/www/owncloud/3rdparty/System.php /var/www/owncloud/3rdparty/class.phpmailer.php /var/www/owncloud/3rdparty/class.smtp.php /var/www/owncloud/.htaccess /var/www/owncloud/config-bkup /var/www/owncloud/console.php /var/www/owncloud/cron.php /var/www/owncloud/data-bkup /var/www/owncloud/db_structure.xml /var/www/owncloud/index.html /var/www/owncloud/index.php /var/www/owncloud/occ /var/www/owncloud/public.php /var/www/owncloud/remote.php /var/www/owncloud/robots.txt /var/www/owncloud/status.php /var/www/owncloud/version.php

Please fix this and retry."

A google search on ""Upgrade is not possible. Make sure that your webserver has write access" brings up 9 hits, but nothing that helps me resolve the problem.

I know it is a permission error message and I need to use chmod or perhaps fstab to fix issue

have spent a number of hours trying to research and fix this using:

sudo chmod 777 . (for /var/www/owncloud/3rdparty -- was "drwxr-xr-x" or chmod 755)

sudo chmod 777 . (for /var/www/owncloud - was -rw-r--r-- or chmod 644)

But did not fix the problem.

(Another document mentioned fstab but instead of chasing my tail I have reported issue. see:http://forum.owncloud.org/viewtopic.php?f=23&t=9593)

I realize that this is more of an Ubuntu permissions related question than an OwnCloud issue, however, it would be cool to be able to be able to have a citation for this issue somewhere online -- so other newbies like myself can fix...

It would be really cool if the note at the end of the error would be more directive: like "Please read document "ABC" to learn how to fix this and retry"

Any suggestions would be appreciated.

DeepDiver1975 commented 10 years ago

Did you try chown www-data ?

Von Samsung Mobile gesendet

-------- Ursprüngliche Nachricht -------- Von: Lori Guidos notifications@github.com Datum:24.01.2014 01:25 (GMT+01:00) An: owncloud/core core@noreply.github.com Betreff: [core] upgrade to 6.01 to fix problem 353 gives Upgrade is not possible Error msg (#6925)

I am using Ubuntu 13.10 and OwnCloud 6.0

I need to upgrade to 6.01 to fix problem 353.

After backing up files and database, I begin the Admin; Update and get the error:

"Upgrade is not possible. Make sure that your webserver has write access to the following files and directories:

/var/www/owncloud/3rdparty/LICENSE INFO /var/www/owncloud/3rdparty/MDB2.php /var/www/owncloud/3rdparty/PEAR-LICENSE /var/www/owncloud/3rdparty/PEAR.php /var/www/owncloud/3rdparty/PEAR5.php /var/www/owncloud/3rdparty/System.php /var/www/owncloud/3rdparty/class.phpmailer.php /var/www/owncloud/3rdparty/class.smtp.php /var/www/owncloud/.htaccess /var/www/owncloud/config-bkup /var/www/owncloud/console.php /var/www/owncloud/cron.php /var/www/owncloud/data-bkup /var/www/owncloud/db_structure.xml /var/www/owncloud/index.html /var/www/owncloud/index.php /var/www/owncloud/occ /var/www/owncloud/public.php /var/www/owncloud/remote.php /var/www/owncloud/robots.txt /var/www/owncloud/status.php /var/www/owncloud/version.php

Please fix this and retry."

A google search on ""Upgrade is not possible. Make sure that your webserver has write access" brings up 9 hits, but nothing that helps me resolve the problem.

I know it is a permission error message and I need to use chmod or perhaps fstab to fix issue

have spent a number of hours trying to research and fix this using:

sudo chmod 777 . (for /var/www/owncloud/3rdparty -- was "drwxr-xr-x" or chmod 755)

sudo chmod 777 . (for /var/www/owncloud - was -rw-r--r-- or chmod 644)

But did not fix the problem.

(Another document mentioned fstab but instead of chasing my tail I have reported issue. see:http://forum.owncloud.org/viewtopic.php?f=23&t=9593)

I realize that this is more of an Ubuntu permissions related question than an OwnCloud issue, however, it would be cool to be able to be able to have a citation for this issue somewhere online -- so other newbies like myself can fix...

It would be really cool if the note at the end of the error would be more directive: like "Please read document "ABC" to learn how to fix this and retry"

Any suggestions would be appreciated.

— Reply to this email directly or view it on GitHub.

VicDeo commented 10 years ago

@loriguidos these files are not owned by www/www-data/wwwrun/apapche2 or any other user that is used to run PHP scripts. There is no need to make them world-writable, just chown to this user. Can you post ls -la /var/www/owncloud/ output?

loriguidos commented 10 years ago

DeepDiver1975,

I tried to sudo chown www-data and now am having login issues.

When getting to Ubuntu login screen, I add my password and it takes me into a loop and back to login screen.

I am able to login with guest and

I am able to login to main user with Alt-Ctrl F1.

I have been troubleshooting this for a while now.

In the beginning I was also getting error: =AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message=

I found how to Set the ServerName, so this error has gone away, but still am stuck in login loop in Ubuntu 13.10

Hopefully, I will figure out a way to login and gain access to ownCloud again.

loriguidos commented 10 years ago

DeepDiver1975 and VicDeo,

Thanks for the follow-up help. I am not sure why the chown command suggested caused additional problems with login loop with Ubuntu 13.10

I tried to sudo chown www-data and then had 8 hours of login and H00558: apache2 errors.

I now have ownCloud 6.0.1 updated.

I fixed the problem for myself, but for others who witness the login loop -- I want to leave a trail.

Note: Prior to using "chown" command above, I had an automatic login which dropped me directly to into desktop. After "chown" command, I had to the login loop which was now asking me for password and not giving me access to primary user desktop or terminal except via TTY using Alt-Ctrl F1.

At Ubuntu 13.10 login screen, I would add my password and it go into a loop back to login screen again. I was only able to login with guest and only primary user with Alt-Ctrl F1 command.

I was getting " System program problem detected Do you want to report the problem now? "

I was also getting error: "H00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message"

I found how to Set the ServerName, so this error has gone away, but still am stuck in login loop in Ubuntu 13.10


By default =httpd.conf= file is blank, just add the following:

ServerName localhost

Once you're done, save the file, and restart the server.

sudo /etc/init.d/apache2 restart

So the error, H00558: apache2 was fixed, but I was still having problems with login loop.

I tried several things to fix the login loop and am not sure which finally resolved the issue:

Played around with starting and stopping lightdm.

Removed Crash Reports (sudo rm /var/crash/*)

Backed up the .Xauthority file in primary user's home directory to .Xauthority.bak and then deleted original .Xauthority file (supposedly this file is then recreated, but it was not automatically recreated on reboot.) There was discussion about deleting the /tmp directory, but I didn't get to this before I found it fixed.

I found someone who said this command fixed the problem and I used it: sudo chown -R $user:$user /home

After a shutdown I was able to come back in to desktop for primary user as I had been able to originally without the request for a password. I then received some different error messages about sending error logs to Ubuntu which I gave permission to send.

I went into terminal command line mode and ran apt-get update and into the software settings to unlock and turn on the automatic logon.

Rebooted and then used browser to go to local host for owncloud to see if I needed to to update inside of admin function again.

The admin function indicated that everything is up-to-date with 6.0.1

Hopefully, this report helps someone else who is stuck in the login loop.

I still wonder if this chown www-data needs to be listed in documentation for others using Ubuntu 13.10?

Thanks again,

Lori