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

Apps - Nextcloud fails to deploy on Electric Eel #3013

Open
sync-by-unito bot opened this issue Dec 23, 2024 · 3 comments
Open

Apps - Nextcloud fails to deploy on Electric Eel #3013

sync-by-unito bot opened this issue Dec 23, 2024 · 3 comments
Assignees

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Dec 23, 2024

When launching a new nextcloud instance on Electric Eel with only required configuration options defined (app name, passwords for database) and either ixVolumes or host-path storage defined, the installation fails.

The application goes through the install process and containers sometimes get torn down by the TrueNAS interface, or it stays in an unhealthy state.

The ix-nextcloud-nextcloud-1 container gets deployed, and has a crash-loop with the following error:

Configuring Redis as session handler
Warning: /var/www/html/config/reverse-proxy.config.php differs from the latest version of this image at /usr/src/nextcloud/config/reverse-proxy.config.php
Warning: /var/www/html/config/s3.config.php differs from the latest version of this image at /usr/src/nextcloud/config/s3.config.php
=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting
==> Running the script (cwd: /var/www/html): "/docker-entrypoint-hooks.d/before-starting/ix-update-hosts-script.sh"
Updating database and redis host in config.php
Nextcloud is not installed - only a limited number of commands are available
There are no commands defined in the "config:system" namespace.

==> Failed at executing "/docker-entrypoint-hooks.d/before-starting/ix-update-hosts-script.sh". Exit code: 1

I have not dug any further into this, but will be investigating tonight and will report my findings.

Session ID: 839c640e-6f88-956a-a0c6-38fc18ff3d91

Copy link
Author

sync-by-unito bot commented Dec 23, 2024

➤ Bug Clerk commented:

Thank you for submitting this TrueNAS Bug Report! So that we can quickly investigate your issue, please attach a Debug file and any other information related to this issue through our secure and private upload service below. Debug files can be generated in the UI by navigating to System > Advanced > Save Debug.

https://ixsystems.atlassian.net/servicedesk/customer/portal/15/group/37/create/153

Copy link
Author

sync-by-unito bot commented Dec 23, 2024

➤ Michelle Johnson commented:

Thank you for your report, Kyle Brennan!

Did you follow the directions in this TrueNAS Documentation Hub article when attempting to install Nextcloud? https://www.truenas.com/docs/truenasapps/stableapps/installnextcloudmedia/ ( https://www.truenas.com/docs/truenasapps/stableapps/installnextcloudmedia/|smart-link )

Nextcloud is a little finicky about postgres storage volumes so there are specific instructions to avoid issues resulting from incorrect deployment steps.

Copy link
Author

sync-by-unito bot commented Dec 23, 2024

➤ Stavros Kois commented:

Nextcloud does this when it fails initial install. (And it does not retry installation afterwards)
So if it failed once, it might have created partial files, making it fail to start.
Make sure that if its a fresh install, both database and nextcloud directories are completely empty.

Just tried a fresh install with default values (apart from passwords) and worked nicely.

2024-12-23 18:08:55.667589+00:00Initializing nextcloud 30.0.4.1 ...
2024-12-23 18:09:01.500281+00:00New nextcloud instance
2024-12-23 18:09:01.521664+00:00Installing with PostgreSQL database
2024-12-23 18:09:01.521741+00:00=> Searching for scripts (.sh) to run, located in the folder: /docker-entrypoint-hooks.d/pre-installation
2024-12-23 18:09:01.523141+00:00Starting nextcloud installation
2024-12-23 18:09:08.808698+00:00Nextcloud was successfully installed
2024-12-23 18:09:08.817963+00:00Setting trusted domains…
2024-12-23 18:09:09.022943+00:00System config value trusted_domains => 1 set to string 127.0.0.1
2024-12-23 18:09:09.228019+00:00System config value trusted_domains => 2 set to string localhost
2024-12-23 18:09:09.431455+00:00System config value trusted_domains => 3 set to string nextcloud
2024-12-23 18:09:09.440627+00:00=> Searching for scripts (
.sh) to run, located in the folder: /docker-entrypoint-hooks.d/post-installation
2024-12-23 18:09:09.442119+00:00Initializing finished
2024-12-23 18:09:09.454228+00:00=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting
2024-12-23 18:09:09.455666+00:00==> Running the script (cwd: /var/www/html): "/docker-entrypoint-hooks.d/before-starting/ix-update-hosts-script.sh"
2024-12-23 18:09:09.460893+00:00Updating database and redis host in config.php
2024-12-23 18:09:09.653989+00:00System config value redis => host set to string redis
2024-12-23 18:09:09.663932+00:00==> Finished the script: "/docker-entrypoint-hooks.d/before-starting/ix-update-hosts-script.sh"
2024-12-23 18:09:09.664227+00:00==> Running the script (cwd: /var/www/html): "/docker-entrypoint-hooks.d/before-starting/ix-update-trusted-domains-script.sh"
2024-12-23 18:09:09.669495+00:00Updating trusted domains. It will append new domains to the existing list.
2024-12-23 18:09:09.669511+00:00If you see a domain that is not longer valid, you need to manually remove it from the list in the config.php file.
2024-12-23 18:09:10.080549+00:00System config value trusted_domains deleted
2024-12-23 18:09:10.284418+00:00System config value trusted_domains => 0 set to string 127.0.0.1
2024-12-23 18:09:10.485720+00:00System config value trusted_domains => 1 set to string localhost
2024-12-23 18:09:10.687727+00:00System config value trusted_domains => 2 set to string nextcloud
2024-12-23 18:09:10.697786+00:00==> Finished the script: "/docker-entrypoint-hooks.d/before-starting/ix-update-trusted-domains-script.sh"
2024-12-23 18:09:10.744567+00:00AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.16.2.4. Set the 'ServerName' directive globally to suppress this message
2024-12-23 18:09:10.756933+00:00AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.16.2.4. Set the 'ServerName' directive globally to suppress this message
2024-12-23 18:09:10.798412+00:00[Mon Dec 23 18:09:10.798340 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.62 (Debian) PHP/8.2.27 configured -- resuming normal operations
2024-12-23 18:09:10.798428+00:00[Mon Dec 23 18:09:10.798370 2024] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
2024-12-23 18:09:15.933326+00:00127.0.0.1 - - [23/Dec/2024:18:09:15 +0000] "GET /status.php HTTP/1.1" 200 1547 "-" "curl/7.88.1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant