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

Error when upgrade to 8.0 from the OpenSuse build repo on debian stable. #13992

Closed
wrst opened this issue Feb 9, 2015 · 83 comments
Closed

Error when upgrade to 8.0 from the OpenSuse build repo on debian stable. #13992

wrst opened this issue Feb 9, 2015 · 83 comments
Assignees
Milestone

Comments

@wrst
Copy link

wrst commented Feb 9, 2015

I am by no means a packaging expert but appears to be an issue with owncloud-config-apache package. After the initial failure to upgrade I got this when I attempted a 'apt-get -f install'

owncloud-config-apache (from .../owncloud-config-apache_8.0.0-1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/owncloud-config-apache_8.0.0-1_amd64.deb (--unpack):
trying to overwrite '/etc/apache2/conf-available/owncloud.conf', which is also in package owncloud 8.0.0-1
Errors were encountered while processing:
/var/cache/apt/archives/owncloud-config-apache_8.0.0-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

@LukasReschke
Copy link
Member

@jnweiger Packaging issue.

@s1lvester
Copy link

I can confirm this on debian stable.

@discordier
Copy link

Same for me.

@BeeMee
Copy link

BeeMee commented Feb 9, 2015

Same here, Ubuntu 14.10 LTS with repo http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/

@Akhenaton
Copy link

Same for me on Ubuntu with this repo : http://software.opensuse.org/download/package?project=isv:ownCloud:community&package=owncloud

Can't install /upgrade

@twouters
Copy link

twouters commented Feb 9, 2015

(fyi) clean install doesn't have this issue, you can uninstall owncloud and install the new version to work around this.

@belzebubek
Copy link

Can't upgrade too - exact same issue. Will reinstall ruin my configuration?

@karlitschek
Copy link
Contributor

@jnweiger

@hakong
Copy link

hakong commented Feb 9, 2015

Same issue. Debian stable.

@jnweiger
Copy link
Contributor

jnweiger commented Feb 9, 2015

On Ubuntu-14.04 the owncloud package does not appear to contain /etc/apache2/conf-available/owncloud.conf

$ dpkg -L owncloud
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/owncloud
/usr/share/doc/owncloud/changelog.Debian.gz

My debian.rules also seems to correctly push it into the owncloud-config-apache package only.
Anybody has an idea what is going on?

@twouters
Copy link

twouters commented Feb 9, 2015

@jnweiger I've noticed that when you upgrade from 7.0.4 the owncloud package still owns the apache config file.
Uninstalling owncloud (only the owncloud package) and reinstalling it does fix it.
I have no idea what could cause this.

@matachi
Copy link

matachi commented Feb 9, 2015

@twouters Will that result in data loss?

@twouters
Copy link

twouters commented Feb 9, 2015

uninstalling the "owncloud" package won't delete data as it owns just two files in its current state (a changelog and the apache config file) so it should be safe.

@utack
Copy link

utack commented Feb 9, 2015

I have the same problem. 7.0.4 to 8.0

dpkg -L owncloud
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/owncloud
/usr/share/doc/owncloud/changelog.Debian.gz
/etc/apache2/conf.d/owncloud.conf

@wrst
Copy link
Author

wrst commented Feb 9, 2015

I attempted and apt-get remove owncloud, then apt-get install owncloud and got this:

(Reading database ... 62314 files and directories currently installed.)
Unpacking owncloud-config-apache (from .../owncloud-config-apache_8.0.0-1_amd64.deb) ...
Selecting previously unselected package owncloud.
Unpacking owncloud (from .../owncloud_8.0.0-1_all.deb) ...
Setting up owncloud-config-apache (8.0.0-1) ...
ln: failed to create symbolic link `/etc/apache2/conf.d/owncloud.conf': File exists
dpkg: error processing owncloud-config-apache (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of owncloud:
owncloud depends on owncloud-config-apache; however:
Package owncloud-config-apache is not configured yet.

dpkg: error processing owncloud (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
owncloud-config-apache
owncloud
E: Sub-process /usr/bin/dpkg returned an error code (1)

@twouters
Copy link

twouters commented Feb 9, 2015

@wrst: mv /etc/apache2/conf.d/owncloud.conf /etc/apache2/conf.d/owncloud.conf.backup

@guardiande
Copy link

WARNING: After getting the same error and ignoring it (don't ask...), opening the login page presented me with a dialog to create a new installation which did not notice at first - I've mistaken it with the upgrade notice.

The outcome was a reset installation with all data lost. Fortunately I was able to recover from backup and returned to OC 7.

@wrst
Copy link
Author

wrst commented Feb 9, 2015

@twouters that solved the packaging issue, will I need to move that config back?

@twouters
Copy link

twouters commented Feb 9, 2015

@wrst it should be a symlink to /etc/apache2/conf-available/owncloud.conf

@wrst
Copy link
Author

wrst commented Feb 9, 2015

ok, I'm getting a pretty long "instance being updated.." at the login going to get lunch and leave it alone for a while :)

@twouters
Copy link

twouters commented Feb 9, 2015

@wrst that's because of another issue that'll be fixed in a short while

@wrst
Copy link
Author

wrst commented Feb 9, 2015

@twouters thanks for the info just need to wait for an update?

@s1lvester
Copy link

@wrst See: #13991

SOLUTION FOR NOW:
Hold your horses and wait for the repackaged debs to hit the repo!

@wrst
Copy link
Author

wrst commented Feb 9, 2015

@s1lvester thanks! I can certainly do that, you guys are doing awesome work, thanks again!

@s1lvester
Copy link

Repos are updated. Works fine for me with pkg-version 8.0.0-2

@pasnox
Copy link

pasnox commented Feb 9, 2015

Still getting error with 8.0.0-4, but that time no error is printed:

Preparing to unpack .../owncloud-config-apache_8.0.0-4_all.deb ...
dpkg: error processing archive /var/cache/apt/archives/owncloud-config-apache_8.0.0-4_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 1

And i'm still having an error 500 on my server since the upgrade, no special error is loggued, so i'm totally lost for now :(

@theroch
Copy link

theroch commented Feb 9, 2015

Same error on Ubuntu 14.04
/var/cache/apt/archives/owncloud-config-apache_8.0.0-4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Notice:It's a fresh Ubuntu 14.04 Server with a complete new owncloud installation

@MaikelR2000
Copy link

after upgrade: i see blank page in every web browser.

@pasnox
Copy link

pasnox commented Feb 9, 2015

@MaikelR2000: So do I, not sure but it could be some 3rdparty apps installed no longer compatible...

@brantg
Copy link

brantg commented Feb 9, 2015

@s1lvester Still more followup here. While struggling to get caught up, all my clients exited at once and I found this in the ownCloud server's /var/log/apache2/error.log:

[Mon Feb 09 16:38:31.187820 2015] [core:notice] [pid 2346] AH00052: child pid 10170 exit signal Segmentation fault (11)
[Mon Feb 09 16:38:31.187969 2015] [core:notice] [pid 2346] AH00052: child pid 25968 exit signal Segmentation fault (11)
[Mon Feb 09 16:38:31.188209 2015] [core:notice] [pid 2346] AH00052: child pid 10446 exit signal Segmentation fault (11)
[Mon Feb 09 16:38:31.188499 2015] [core:notice] [pid 2346] AH00052: child pid 9037 exit signal Segmentation fault (11)
[Mon Feb 09 16:38:31.188564 2015] [core:notice] [pid 2346] AH00052: child pid 30508 exit signal Segmentation fault (11)
[Mon Feb 09 16:38:31.188762 2015] [core:notice] [pid 2346] AH00052: child pid 13602 exit signal Segmentation fault (11)
[Mon Feb 09 16:38:31.189676 2015] [mpm_prefork:notice] [pid 2346] AH00169: caught SIGTERM, shutting down

Restarted Apache and all the clients reconnected, but figured y'all would want to know.

@pasnox
Copy link

pasnox commented Feb 9, 2015

Here is the error i can find in data/owncloud.log:

{
  "reqId": "--hidden--",
  "remoteAddr": "--hidden--",
  "app": "index",
  "message": "Exception: {\"Message\":\"js file not found: script:js\\\/chosen\\\/chosen.jquery.min serverroot:\\\/var\\\/www\\\/owncloud\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/templatelayout.php(155): OC\\\\Template\\\\ResourceLocator->find(Array)\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/templatelayout.php(106): OC_TemplateLayout::findJavascriptFiles(Array)\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/template.php(118): OC_TemplateLayout->__construct('user', 'files')\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/template\\\/base.php(103): OC_Template->fetchPage()\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files\\\/index.php(148): OC\\\\Template\\\\Base->printPage()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/route.php(135) : runtime-created function(1): require_once('\\\/var\\\/www\\\/ownclo...')\\n#6 [internal function]: __lambda_func(Array)\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(250): call_user_func('\\\\x00lambdabda_4, Array)\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(763): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#9 \\\/var\\\/www\\\/owncloud\\\/index.php(36): OC::handleRequest()\\n#10 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/template\\\/resourcelocator.php\",\"Line\":46}",
  "level": 4,
  "time": "2015-02-09T22:46:26+00:00",
  "method": "GET",
  "url": "\/index.php\/apps\/files\/"
}{
  "reqId": "--hidden--",
  "remoteAddr": "--hidden--",
  "app": "PHP",
  "message": "js file not found: script:js\/chosen\/chosen.jquery.min serverroot:\/var\/www\/owncloud at \/var\/www\/owncloud\/lib\/private\/template\/resourcelocator.php#46",
  "level": 3,
  "time": "2015-02-09T22:46:26+00:00",
  "method": "GET",
  "url": "\/index.php\/apps\/files\/"
}

@jnweiger
Copy link
Contributor

jnweiger commented Feb 9, 2015

@theroch I my preinst script was broken. Sorry.
New version coming up with 8.0.0-5

@MaikelR2000
Copy link

@pasnox no all Apps removed

@jnweiger
Copy link
Contributor

jnweiger commented Feb 9, 2015

test starting with an ownCloud 7 installation:

 docker run -ti owncloud-7.0.4-3-xubuntu_14.04
 service apache2 start

set admin password on the web page, play around

 cat /etc/apt/sources.list.d/owncloud.list
  deb http://download.opensuse.org/repositories/isv:/ownCloud:/community:/7.0//xUbuntu_14.04/ /
 sed -i 's@7.0@8.0@' /etc/apt/sources.list.d/owncloud.list
  deb http://download.opensuse.org/repositories/isv:/ownCloud:/community:/8.0//xUbuntu_14.04/ /
 cat /etc/apt/sources.list.d/owncloud.list
 apt-get update
 apt-get upgrade owncloud
  Unpacking owncloud (8.0.0-5) over (7.0.4-3) ...
  ...
  Adding 'diversion of /etc/apache2/conf-available/owncloud.conf to /etc/apache2/conf-available/owncloud.conf.distrib by owncloud-config-apache'
  ...
  Setting up owncloud (8.0.0-5)

ownCloud will be updated to version 8.0.
-> [Start Update]

runs fine now. yeah!
Testing a fresh install of 8.0.0-5 also succeeds.

I believe this fixes the packaging issue here.

@enoch85
Copy link
Member

enoch85 commented Feb 9, 2015

Can anyone test please? Don´t have a test machine running now.

@jnweiger When will you address the other issues? Have a quite big live install, and don't want to break anything. Running Ubuntu 12.04.

@jnweiger
Copy link
Contributor

jnweiger commented Feb 9, 2015

@enoch85 not looking for other issues right now. Looking for my bed. More tomorrow ...

@nicolasedh
Copy link

Installing version 8.0.0.5 on Ubuntu 14.04 LTS works. Before logging in to ownlcoud I restored the symlinks I had to the data directory. And all files seem to be inplace. Thank you @jnweiger !

@inotriel
Copy link

I also got stuck after "updated database".

First I upgraded via apt-get update/upgrade from 7.0.3 to 7.0.4 called the page via firefox and updated the database. Everything was fine, process took just some seconds.

Then I had to do apt-get dist-upgrade to get 8.0.0-2. After package update I called the page via browser and started the process. It showed "Database updated" and after some minutes "reload page". After that I was still in maintenance mode.

In config.php maintenance was enabled, the version was still 7.0.4. So I tried "occ upgrade" which also displayed "Database updated" and then nothing happend. I waited for more than 30 minutes and this is no large install.

I repeated the process several times (also with -3, -4 and -5), uninstalled owncloud, rebooted the server, apache and so on. Result was always the same. So in the end I restored my 7.0.3 backup which is doing fine again.

I'm running Ubuntu 14.04 on a Strato v-server.

@ccharlot
Copy link

I upgraded to 8.0.0-5
Now update is stalling.. and I get this message :

selection_029

If I reload the page (as asked) , I get this :
selection_030

If I change maintenance mode in config.php from tru to false.. I get back to the first screen..

(sorry for the long post)

@LukasReschke
Copy link
Member

@ccharlot Can you please translate the messages on the first screenshot or configure your browser to use English as language?

@ccharlot
Copy link

Oops, sorry , should have done it befor posting.
For the transation of the first screenshot :

Updating ownCloud to version 8.0, this may take a while.

Turned on maintenance mode
Checked database schema update
Checked database schema update for apps
Updated database

(And then, after some time the rest of the message )

Please reload the page.


For additional information, I have this kind of message in the log file :

app":"core","message":"unable to rename, file does not exists : christophe/files_encryption/christophe.private.key

@LukasReschke
Copy link
Member

Looks like a different issue. Can you open a new bug for this using the issue template? Thanks!

@schiesbn FYI – looks encryption related.

@inotriel
Copy link

The problem of @ccharlot looks exactly like the one I have... Is the new issue already open?

@ccharlot
Copy link

Maybe I solved this problem : i noticed that after upgrade, all files in the owncloud directory have root:root ownership. I changed them all to www-data:www-data with a :

sudo chown www-data:www-data -R owncloud (being in the /var/www directory)

Now I get another error message :

An exception occurred while executing 'UPDATE "oc_filecache" SET "mtime" = ?, "etag" = ?, "storage_mtime" = ?, "parent"=? WHERE "fileid" = ?' with params [1423561734, "f18cb6bd430d600102f0a166a77815f1", 1423561734, null, "59108"]: SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: oc_filecache.parent

Should I open a new issue about this one ?

@theroch
Copy link

theroch commented Feb 10, 2015

@jnweiger Thx, package installation with owncloud-config-apache (8.0.0-5) works now on Ubuntu 14.04.
I try to configure owncloud now.

@inotriel
Copy link

@ccharlot Have a look here: #14012 If your installation is encrypted and you have a lot of files it maybe just needs a long time to rewrite the encryption keys. The web updater maybe timeouts before the job is done.

@jnweiger
Copy link
Contributor

Removing packaging label. Packaging part of this issue is done.

@theroch
Copy link

theroch commented Feb 10, 2015

@jnweiger Installation and Configuration completed under Ubuntu 14.04, thx

@belzebubek
Copy link

Removing files_mv app solved blank page issue. Thanks guys.

@jnweiger
Copy link
Contributor

I am closing here. Looks like we got the update scenario right in the debian packages now. Thanks everybody for your contributions!

@ccharlot Yes, I am more strict on the file permissions now. Using root:root, unless apache owner is really needed. If you can identify where a root:root got in your way, please open a separate issue!

@lock lock bot locked as resolved and limited conversation to collaborators Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests