I’m looking for code review and testing help with Use flock for the upgrade lock by remram44 · Pull Request #1905 · nextcloud/docker · GitHub . Anyone able to assist? I think it would be great to get this patch in for more resilient upgrades, especially for folks that run multiple Nextcloud app Docker containers.
review
This is where we need the most help.
The changes are all in Bash script. It looks like many files are changed, but really it is just one file: docker-entrypoint.sh
. The changes in that file are propagated to all others.
test
To test requires some familiarity with Docker. The basic test steps are in Add `NEXTCLOUD_INIT_LOCK` to enable shared html volume update by skjnldsv · Pull Request #1760 · nextcloud/docker · GitHub , they just need slight adjustment because the version is 25
and the NEXTCLOUD_INIT_LOCK
environment variable is now gone, so that can be left out. I’ll update the test procedure if I can make time for that.
Thanks! -Adam
See also
I run Nextcloud in a Docker container. I use watchtower to monitor for new images and auto-upgrade the container. Today at midnight it found 24.0.1.1 and attempted to upgrade from 24.0.0.12. It got stuck so Nextcloud was down. Here’s a log snippet:
app_1 | Conf remoteip disabled.
app_1 | To activate the new configuration, you need to run:
app_1 | service apache2 reload
app_1 | Configuring Redis as session handler
app_1 | Initializing next…
opened 12:57PM - 01 May 22 UTC
closed 12:26PM - 07 Jun 22 UTC
bug
0. Needs triage
### ⚠️ This issue respects the following points: ⚠️
- [X] This is a **bug**, no… t a question or a configuration/webserver/proxy issue.
- [X] This issue is **not** already reported on Github _(I've searched it)_.
- [X] Nextcloud Server **is** up to date. See [Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Bug description
If i want to update my docker Nextcloud installation i get the following issue, that it is waiting forever. But there is no other process running nextcloud.
```
Configuring Redis as session handler
Initializing nextcloud 23.0.4.1 ...
Upgrading nextcloud from 23.0.3.2 ...
Another process is initializing Nextcloud. Waiting 10 seconds...
Another process is initializing Nextcloud. Waiting 20 seconds...
Another process is initializing Nextcloud. Waiting 30 seconds...
Another process is initializing Nextcloud. Waiting 40 seconds...
Another process is initializing Nextcloud. Waiting 50 seconds...
Another process is initializing Nextcloud. Waiting 60 seconds...
Another process is initializing Nextcloud. Waiting 70 seconds...
Another process is initializing Nextcloud. Waiting 80 seconds...
```
### Steps to reproduce
1. Upgrade docker install from 23.0.3.2 to 23.0.4
### Expected behavior
Just upgrade it
### Installation method
Official Docker image
### Operating system
Debian/Ubuntu
### PHP engine version
_No response_
### Web server
_No response_
### Database engine version
PostgreSQL
### Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 22.2.3 to 22.2.4)
### Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
### What user-backends are you using?
- [X] Default user-backend _(database)_
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Configuration report
_No response_
### List of activated Apps
```shell
accessibility cloud_federation_api dav files files_sharing firstrunwizard notifications privacy settings systemtags updatenotification weather_status
activity comments encryption files_external files_trashbin logreader oauth2 provisioning_api sharebymail text user_ldap workflowengine
admin_audit contactsinteraction federatedfilesharing files_pdfviewer files_versions lookup_server_connector password_policy recommendations support theming user_status
circles dashboard federation files_rightclick files_videoplayer nextcloud_announcements photos serverinfo survey_client twofactor_backupcodes viewer
```
### Nextcloud Signing status
_No response_
### Nextcloud Logs
```shell
Log is empty
```
### Additional info
_No response_