Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Nextcloud-alpine #3068

Closed
CrazyWolf13 opened this issue May 26, 2024 · 18 comments
Closed

Nextcloud-alpine #3068

CrazyWolf13 opened this issue May 26, 2024 · 18 comments
Labels
🧐 Not a Script Issue Not a Script Issue

Comments

@CrazyWolf13
Copy link

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

After trying to access my nextcloud instance today I get greeted wth the following message:
image
I could fix this by running
apk add nextcloud-files_reminders
after that I get greeted with a update note:
image

After trying to click update, I get the following error:
image

Also the script update function seems to be broken atm:
image

This seems to be an upstream alpine problem tough:
https://gitlab.alpinelinux.org/alpine/aports/-/issues/16147

What settings are you currently utilizing?

Advanced Settings

Which Linux distribution are you employing?

Alpine

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

No response

Please provide detailed steps to reproduce the issue.

create a alpine nextcloud lxc
get greeted with that note.

@tteck
Copy link
Owner

tteck commented May 26, 2024

🏁 The script runs without any problems from this end.

    _   __          __       __                __   __  __      __
   / | / /__  _  __/ /______/ /___  __  ______/ /  / / / /_  __/ /_
  /  |/ / _ \| |/_/ __/ ___/ / __ \/ / / / __  /  / /_/ / / / / __ \
 / /|  /  __/>  </ /_/ /__/ / /_/ / /_/ / /_/ /  / __  / /_/ / /_/ /
/_/ |_/\___/_/|_|\__/\___/_/\____/\__,_/\__,_/  /_/ /_/\__,_/_.___/
Alpine
Using Advanced Settings
Using Container Type: 1
Using Root Password: Automatic Login
Container ID: 113
Using Hostname: alpine-nextcloud
Using Disk Size: 2
Allocated Cores: 2
Allocated RAM: 1024
Using Bridge: vmbr0
Using IP Address: dhcp
Using Gateway IP Address: Default
Disable IPv6: yes
Using Interface MTU Size: Default
Using DNS Search Domain: Host
Using DNS Server IP Address: Host
Using MAC Address: AE:1A:60:07:B7:59
Using Vlan: Default
Enable Root SSH Access: no
Enable Verbose Mode: no
Creating a Alpine-Nextcloud LXC using the above advanced settings
 ✓ Using local for Template Storage.
 ✓ Using thin-pool for Container Storage.
 ✓ Updated LXC Template List
 ✓ LXC Container 113 was successfully created.
 ✓ Started LXC Container
 ✓ Set up Container OS
 ✓ Network Connected: 192.168.86.250
 ✓ Internet Connected
 ✓ DNS Resolved github.com to 140.82.113.4
 ✓ Updated Container OS
 ✓ Installed Dependencies
 ✓ Installed PHP/Redis
 ✓ Installed MySQL Database
 ✓ Installed Nextcloud
 ✓ Added Additional Nextcloud Packages
 ✓ Started Services
 ✓ Finished Nextcloud Setup-Wizard
 ✓ Customized Container
 ✓ Completed Successfully!

Alpine-Nextcloud should be reachable by going to the following URL.
         https://192.168.86.250 

Screenshot 2024-05-26 7 17 11 AM

Screenshot 2024-05-26 7 17 28 AM

Screenshot 2024-05-26 7 17 50 AM

Screenshot 2024-05-26 7 18 42 AM

Screenshot 2024-05-26 7 19 51 AM

    _   __          __       __                __   __  __      __
   / | / /__  _  __/ /______/ /___  __  ______/ /  / / / /_  __/ /_
  /  |/ / _ \| |/_/ __/ ___/ / __ \/ / / / __  /  / /_/ / / / / __ \
 / /|  /  __/>  </ /_/ /__/ / /_/ / /_/ / /_/ /  / __  / /_/ / /_/ /
/_/ |_/\___/_/|_|\__/\___/_/\____/\__,_/\__,_/  /_/ /_/\__,_/_.___/
Alpine
fetch http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
v3.19.1-577-gb3ea1811daf [http://dl-cdn.alpinelinux.org/alpine/v3.19/main]
v3.19.1-575-gd679707d49e [http://dl-cdn.alpinelinux.org/alpine/v3.19/community]
OK: 23030 distinct packages available
OK: 1008 MiB in 251 packages
Nextcloud is already latest version
Check indices of the share table.
Check indices of the filecache table.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Check indices of the oc_properties table.
Check indices of the oc_jobs table.
Check indices of the oc_direct_edit table.
Check indices of the oc_preferences table.
Check indices of the oc_mounts table.
Check indices of the oc_systemtag_object_mapping table.
Done.
alpine-nextcloud:~# 

I have no issues here. Check your repositories cat /etc/apk/repositories I know that for some reason the latest-stable branch was going to release candidates. I made a change here d468fc6. Try the below

#http://dl-cdn.alpinelinux.org/alpine/latest-stable/main
#http://dl-cdn.alpinelinux.org/alpine/latest-stable/community
http://dl-cdn.alpinelinux.org/alpine/v3.19/main
http://dl-cdn.alpinelinux.org/alpine/v3.19/community

@tteck tteck added the 🧐 Not a Script Issue Not a Script Issue label May 26, 2024
@CrazyWolf13
Copy link
Author

Thanks, the fix provided with the v3.19 repo worked, so I guess there is an upstream problem.

However there still seems to be an issue with the script, mine is unable to update:

    _   __          __       __                __   __  __      __
   / | / /__  _  __/ /______/ /___  __  ______/ /  / / / /_  __/ /_
  /  |/ / _ \| |/_/ __/ ___/ / __ \/ / / / __  /  / /_/ / / / / __ \
 / /|  /  __/>  </ /_/ /__/ / /_/ / /_/ / /_/ /  / __  / /_/ / /_/ /
/_/ |_/\___/_/|_|\__/\___/_/\____/\__,_/\__,_/  /_/ /_/\__,_/_.___/
Alpine
fetch http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
v3.19.1-577-gb3ea1811daf [http://dl-cdn.alpinelinux.org/alpine/v3.19/main]
v3.19.1-575-gd679707d49e [http://dl-cdn.alpinelinux.org/alpine/v3.19/community]
OK: 23231 distinct packages available
OK: 981 MiB in 244 packages
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active
Resetting log level

[ERROR] in line 85: exit code 0: while executing command su nextcloud -s /bin/sh -c 'php82 /usr/share/webapps/nextcloud/occ upgrade'

alpine-nextcloud:~# ^C

I'm also unable to opt-out of that update, It somewhat forced me into that, as described above.

I can see yours is also still on v27.x and not v29.x

@tteck
Copy link
Owner

tteck commented May 26, 2024

There are no issues with the script as I have shown. The script is using the Alpine Package Keeper (apk) for the installation. The version is currently 27.1.9 for Alpine 3.19 https://pkgs.alpinelinux.org/packages?name=nextcloud&branch=v3.19&repo=&arch=x86_64&maintainer=

@tteck
Copy link
Owner

tteck commented May 26, 2024

Screenshot 2024-05-26 7 52 00 AM

@tteck
Copy link
Owner

tteck commented May 26, 2024

A fresh install from this repository, should not create any issues.

@CrazyWolf13
Copy link
Author

Thanks for clarification, could it be that nextcloud themself are trying tog et more users to update to their AI stuff?

Because to be honest, I've not touched nor changed a single thing, and the above screenshot appeared, as if auto-updates would be on.

@tteck
Copy link
Owner

tteck commented May 26, 2024

I think that the issue started when their latest-stable branch introduced the Alpine v20-rc. You now have mixed packages, which doesn't work well. https://pkgs.alpinelinux.org/packages?name=nextcloud&branch=v3.20&repo=&arch=x86_64&maintainer=

@CrazyWolf13
Copy link
Author

I think that the issue started when their latest-stable branch introduced the Alpine v20-rc. You now have mixed packages, which doesn't work well. https://pkgs.alpinelinux.org/packages?name=nextcloud&branch=v3.20&repo=&arch=x86_64&maintainer=

Oh Yeah that seems to make a lot of sense.

Would you think editing the script to use latest (v3.20) repo and then reinstalling would solve the conflicts?

@tteck
Copy link
Owner

tteck commented May 26, 2024

There is no Alpine v3.20 template.

@CrazyWolf13
Copy link
Author

Oh I see, guess then we'd have to wait for that.

Thanks for the quick feedback and for maintainig those scripts.

@tteck
Copy link
Owner

tteck commented May 26, 2024

🧐 As this issue is unrelated to the script, it is considered closed.

@tteck tteck closed this as completed May 26, 2024
@CrazyWolf13
Copy link
Author

According to this upstream repos should be fixed!

http://dl-cdn.alpinelinux.org/alpine/latest-stable/main
http://dl-cdn.alpinelinux.org/alpine/latest-stable/community

https://gitlab.alpinelinux.org/alpine/aports/-/issues/16147#note_408035

@sic699
Copy link

sic699 commented May 27, 2024

According to this upstream repos should be fixed!

http://dl-cdn.alpinelinux.org/alpine/latest-stable/main
http://dl-cdn.alpinelinux.org/alpine/latest-stable/community

https://gitlab.alpinelinux.org/alpine/aports/-/issues/16147#note_408035

I updated the repositories manually to the latest, I ran then ran an apk update and apk upgrade followed by using the tteck script command in alpine which led me to the same error as you. This was to upgrade to nextcloud 29.0

Now when I try to log onto my cloudserver via the website I am stuck with the nextcloud maintenance window.

@CrazyWolf13
Copy link
Author

Hmm strange, closing the maintenance mode is possible, but you probably just bricked your installation aswell!!

@tteck Possibly you can pin something, so this issue does not appear for any other users?

As much as I love the helper scrips, neither the alpine version nor nextcloudpi is what I want, so I'll switch to a manual installation with debian.

(If wished by tteck I can create a PR afterwards.)

@sic699
Copy link

sic699 commented May 27, 2024

im backup up and running after resintalling alpine-nextcloud no issues, I have not bothered to upgrade to 29.0 ill leave it as it is i just spent 3 hours fixing the new install up.

@CrazyWolf13
Copy link
Author

@sic699 HSTS can be enabled on your reverse proxy or directly in the nextcloud apache server.
https://help.nextcloud.com/t/help-me-to-enable-hsts-http-strict-transport-security-on-my-nc22-instance-please/121552/8

@sic699
Copy link

sic699 commented May 28, 2024

@CrazyWolf13 Ty everything is up and running luckily I had backups of my config.php and my previous data folders/files from my previous nextcloud install.

@flyguy729
Copy link

Hello @sic699 . Found a solution to your problem. The reason it cannot upgrade is because your config.php file is still on version 27.x.x.x. You need to nano to /etc/nextcloud/config.php and edit it to the version on Alpine : https://pkgs.alpinelinux.org/packages?name=nextcloud&branch=v3.20&repo=&arch=&maintainer=
which is currently at 29.0.0-r0.

Once you change that, you can update it. Took me a while to figure this out but found the solution here. nextcloud/docker#1652

I also had the files_reminders error and your post help me fixed that so i thought of giving back (:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🧐 Not a Script Issue Not a Script Issue
Projects
None yet
Development

No branches or pull requests

4 participants