NextCloud is returning 404 and is unable to upgrade

My YunoHost server

Hardware: Old laptop or computer
YunoHost version: 4.1.7.1 (stable)
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

` I was recently having an issue upgrading my system and two apps, NextCloud being one of them. NextCloud still worked, I just couldn’t upgrade it. After following the guidance from Update Errors, also on fix commands! I was able to change the disk and perform system upgrades. However, I am still unable to upgrade NextCloud and it is giving me a 404 error after the fix was performed from that thread. Here is the log from when I try to perform the upgrade:

2021-02-20 16:23:35,297: WARNING - 1772 Source path '/etc/nginx/conf.d/mydomain.tld.d/nextcloud.conf' does not exist
2021-02-20 16:23:35,298: DEBUG - 1772 + echo -e 'Source path '\''/etc/nginx/conf.d/mydomain.tld.d/nextcloud.conf'\'' does not exist'
2021-02-20 16:23:35,298: DEBUG - 1773 + '[' 0 == 0 ']'
2021-02-20 16:23:35,299: DEBUG - 1773 + echo /etc/nginx/conf.d/mydomain.tld.d/nextcloud.conf
2021-02-20 16:23:35,299: DEBUG - 1773 + grep --quiet /etc/fail2ban
2021-02-20 16:23:35,299: DEBUG - 1774 + return 1
2021-02-20 16:23:35,300: DEBUG - 1774 + ynh_exit_properly
2021-02-20 16:23:35,300: DEBUG - 1774 + local exit_code=1
2021-02-20 16:23:35,300: DEBUG - 1774 + '[' 1 -eq 0 ']'
2021-02-20 16:23:35,301: DEBUG - 1775 + trap '' EXIT
2021-02-20 16:23:35,301: DEBUG - 1775 + set +o errexit
2021-02-20 16:23:35,301: DEBUG - 1775 + set +o nounset
2021-02-20 16:23:35,302: DEBUG - 1776 + sleep 0.5
2021-02-20 16:23:35,704: DEBUG - 2177 + type -t ynh_clean_setup
2021-02-20 16:23:35,704: DEBUG - 2178 + exit 1
2021-02-20 16:23:35,804: DEBUG - 2317 action [11144.1] executed in 2.117s
2021-02-20 16:23:35,805: WARNING - 2316 Could not back up nextcloud
2021-02-20 16:23:35,805: WARNING - 2317 Nothing to save
2021-02-20 16:23:35,906: DEBUG - + '[' 1 -eq 0 ']'
2021-02-20 16:23:35,907: WARNING - Backup failed, the upgrade process was aborted.
2021-02-20 16:23:35,907: DEBUG - + ynh_die '--message=Backup failed, the upgrade process was aborted.'
2021-02-20 16:23:35,911: DEBUG - + ret_code=1
2021-02-20 16:23:35,911: DEBUG - + echo 'Backup failed, the upgrade process was aborted.'
2021-02-20 16:23:35,911: DEBUG - + exit 1
2021-02-20 16:23:36,051: ERROR - Could not upgrade nextcloud: An error occurred inside the app upgrade script

This is only part of the log … please share the full log by clicking the “Share with Yunopaste” button …

Why did I get a notify on this one? never opt-in…

I apologize: https://paste.yunohost.org/raw/wasulurite

I’m guessing it’s because I referenced your thread.

1 Like

I’ve been trying the past two weeks to try to figure this out myself. I got to the point where I uninstalled and reinstalled NextCloud, but I still get a 404. One thing I did notice was that the config file was missing for Nextcloud under Nginx (/etc/nginx/conf.d/mydomain.tld.d). However, I was able to install a second additional instance of NextCloud with a different URL. This one worked, but of course didn’t have my old data. I tried copying the config file of the new one into the old instance and changing the URLs within the file, but it seemed to break Yunohost. I still haven’t figured it out though.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.