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 fails on Nextcloud install step #67

Closed
leancode opened this issue Jul 20, 2022 · 6 comments
Closed

Upgrade fails on Nextcloud install step #67

leancode opened this issue Jul 20, 2022 · 6 comments
Labels
Bug Stating that it's a feature is just lame - I'll need to fix this sometime soon. Critical The issue is a showstopper and needs to be addressed ASAP.

Comments

@leancode
Copy link
Contributor

I was upgrading from 56.3 (not 100% certain but something of that sort) and got an error. I tried again and screen captured the same error, see below during Nextcloud upgrade step.
The mail server is still running and imap is serving and admin page is up but no nextcloud or webmail.
Where do I go from here?

root@ismtp:~# curl -L https://power-mailinabox.net/setup.sh | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2289  100  2289    0     0   8803      0 --:--:-- --:--:-- --:--:--  8803

Screenshot 2022-07-20 at 13 21 09

Screenshot 2022-07-20 at 13 22 23

Primary Hostname: ismtp.redacted.com
Public IP Address: 212.xxx.xxx.xxx
Public IPv6 Address: 2001:xxx:xxxx:xxx::1
Mail-in-a-Box Version:  v56.5

Updating system packages...
Installing system packages...
Initializing system random number generator...
Opening alternate SSH port xxxxx.
Firewall is active and enabled on system startup
Installing nsd (DNS server)...
Installing Postfix (SMTP server)...
Installing Dovecot (IMAP server)...
Installing OpenDKIM/OpenDMARC...
Installing SpamAssassin...
Installing Nginx (web server)...
Installing Roundcube (webmail)...
Installing Nextcloud (contacts/calendar)...
Upgrading Nextcloud --- backing up existing installation, configuration, and database to directory to /home/user-data/owncloud-backup/2022-07-20-13:23:43...

Upgrading to Nextcloud version 21.0.9


FAILED: wget -O /tmp/user_external.tgz https://github.com/nextcloud-releases/user_external/releases/download/v2.1.0/user_external-v2.1.0.tar.gz
-----------------------------------------
--2022-07-20 13:23:56--  https://github.com/nextcloud-releases/user_external/releases/download/v2.1.0/user_external-v2.1.0.tar.gz
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-07-20 13:23:56 ERROR 404: Not Found.

-----------------------------------------
root@ismtp:~#
@leancode leancode changed the title Upgrade fails on Next Upgrade fails on Nextcloud install step Jul 20, 2022
@leancode
Copy link
Contributor Author

leancode commented Jul 20, 2022

OK I made progress:
The URL for the user_external is wrong in setup/nextcloud.sh
The script creates:

https://github.com/nextcloud-releases/user_external/releases/download/v2.1.0/user_external-v2.1.0.tar.gz

But it should be:

https://github.com/nextcloud/user_external/releases/download/vv2.1.0/user_external-v2.1.0.tar.gz

changing the setup/nextcloud.sh script to reflect this the 21.0.9 upgrade goes well.

From here the plot thickens. The next failure is when installing 22.2.6:
Upgrading to Nextcloud version 22.2.6

FAILED: wget -O /tmp/user_external.tgz https://github.com/nextcloud/user_external/releases/download/v3.0.0/user_external-3.0.0.tar.gz
-----------------------------------------
--2022-07-20 22:10:38--  https://github.com/nextcloud/user_external/releases/download/v3.0.0/user_external-3.0.0.tar.gz
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-07-20 22:10:38 ERROR 404: Not Found.


I will report more when I know more

@leancode
Copy link
Contributor Author

OK the original URL in setup/nextcloud.sh is correct for the 3.0.0 of user_external but not for the earlier ones.
I would love to do a pull request but I am not that good with bash! Thank you guys. I am back up and running but this is a bug.

Johgaaa added a commit to Johgaaa/power-mailinabox that referenced this issue Jul 26, 2022
When updating power-mail-in-a-box, you can get a 404 error because version 3.0.0 and up use a different GitHub repo than everything below 3.0.0.
(as seen in issue 67 at ddavness#67 )
@petertayloruk
Copy link

Any update on this issue? it's borked my install. i've managed to get the webmail to work (which also broke, as i'm guessing the upgrade script stopped halfway through due to incorrect URL for nextcloud install).
But I can't get the admin part of the system to work.

@leancode
Copy link
Contributor Author

leancode commented Aug 24, 2022

@petertayloruk That is exactly what happened to me. While this is open you have to manually edit the url in setup/nextcloud.sh before running the setup script. Also make sure you comment out the pulling of the latest otherwise your edit will be immediately overwriten. This way, version by version I was able to get back up and running. Once you are upgraded to 3.0 of nextcloud, future upgrades should work as usual again, because the url for the 3.0 is actually correct. Take a look at the patch from @JokerfaceHD, that shows you what is going on.

@ddavness ddavness added Bug Stating that it's a feature is just lame - I'll need to fix this sometime soon. Critical The issue is a showstopper and needs to be addressed ASAP. labels Sep 8, 2022
@ddavness
Copy link
Owner

ddavness commented Sep 8, 2022

Yawhoops! I'll take care of that ASAP. Sorry for the delay!

@ddavness
Copy link
Owner

v60.0 was released and the problem should be fixed by now. Otherwise, feel free to reopen!
Thanks for waiting here with me 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Stating that it's a feature is just lame - I'll need to fix this sometime soon. Critical The issue is a showstopper and needs to be addressed ASAP.
Projects
None yet
Development

No branches or pull requests

3 participants