nextcloud_ynh icon indicating copy to clipboard operation
nextcloud_ynh copied to clipboard

multiple issues with failed upgrade to 18.0.2

Open chiajlingvoj opened this issue 4 years ago • 10 comments

System background: I am running yunohost on an armbian base on an odroidhc1.

I already did the upgrade of the core system to 3.7 and then tried to do the nc upgrade to 18.0.2... it failed with the first error occurring in _common.sh at line 645, saying that the command lsb_release doesn't exist... after the failed upgrade, nextcloud was removed from my system, although thankfully I am able to restore from backup.

A second issue, which may or may not belong here, is strange behavior relating to the file extra_php_version.list in /etc/apt/sources.list.d. It consists of the single malformed line:

deb https://packages.sury.org/php/ main https://packages.sury.org/php/ main

Which was preventing me from running additional updates for system files. When I ssh in and manually change it to read:

deb https://packages.sury.org/php/ stretch main

I am able to run system upgrades, etc. but then when I logout and login again the extra_php_version.list file has gone back to what it was before!

chiajlingvoj avatar Mar 30 '20 15:03 chiajlingvoj

Install the package lsb-release, it should solve the issue.

maniackcrudelis avatar Mar 30 '20 16:03 maniackcrudelis

I am trying that, but having problems... seems like there is something weird about this particular build of armbian

chiajlingvoj avatar Mar 30 '20 18:03 chiajlingvoj

I am trying that, but having problems... seems like there is something weird about this particular build of armbian

It's probably a problem which should be fixed in the core as we have many apps which use this command.

Josue-T avatar Mar 30 '20 21:03 Josue-T

the lsb_release issue is working now, I just had to install the package lsb-compat on my version of armbian

chiajlingvoj avatar Mar 31 '20 19:03 chiajlingvoj

I have problems upgrading yunohost resulting in the following error.

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 301, in wrapper
    curr_v = params[k]
KeyError: 'app'

The package lsb-release is already installed.

$ lsb_release -a
No LSB modules are available.
Distributor ID:	YunoHost
Description:	YunoHost GNU/Linux 9.12 (stretch)
Release:	9.12
Codename:	stretch

pintman avatar Apr 06 '20 13:04 pintman

@pintman : can you provide the full log since the piece of log you mentioned is only a benign error ?

alexAubin avatar Apr 06 '20 13:04 alexAubin

@Josue-T :

It's probably a problem which should be fixed in the core as we have many apps which use this command.

Fixed in https://github.com/YunoHost/yunohost/commit/3bd6a7aa2983f19237939ade661ebee1780461ed

alexAubin avatar Apr 06 '20 13:04 alexAubin

The complete log is too long for a post but available here. @alexAubin

pintman avatar Apr 06 '20 14:04 pintman

@pintman : yes ;) Github's gist does the trick, but on the webadmin you should have a green button "Paste on yunopaste" to automatically paste it on paste.yunohost.org

Anyway, your real issue is about:

2020-04-06 15:21:21,829: DEBUG - ++ wget -nv -O app.tar.bz2 https://download.nextcloud.com/server/releases/nextcloud-16.0.0.tar.bz2
2020-04-06 15:21:21,929: DEBUG - + local 'out=The certificate'\''s owner does not match hostname ‘download.nextcloud.com’'
2020-04-06 15:21:21,930: WARNING - Corrupt source

For some reason, your server attempted to download the new files from download.nextcloud.com and a certificate issue got in the way ... Could be due to many thing. Maybe that's just a temporary network issue on your side ... Naively you can try to manually run 'wget -nv -O app.tar.bz2 https://download.nextcloud.com/server/releases/nextcloud-16.0.0.tar.bz2' on your server and see if that works ...

alexAubin avatar Apr 06 '20 14:04 alexAubin

I missed the big green yunopaste button. Sorry for that. :-/

Currently I get the same error on the server. I will wait and try later. Thanks for your hint. :)

pintman avatar Apr 06 '20 14:04 pintman

Closing, as the issue is stale and hopefully solved. Feel free to reopen if needed.

tituspijean avatar Oct 16 '23 09:10 tituspijean