hassio-addons: πŸ› [Nextcloud] Addon won't run with error about Composer autoloader not found or app directory not found

Which addon? Nextcloud

  • Addon name : Nextcloud
  • Addon version : 25.0.4-8

Describe the bug

I cannot get Nextcloud to open. I uninstalled it and tried to reinstall it as I was looking to move the data to another drive but I can’t even get to that point. I either get the error that β€œComposer autoloader not found, unable to continue. Check the folder β€œ3rdparty”. Running β€œgit submodule update --init” will initialize the git submodule that handles the subfolder β€œ3rdparty”.” or that the app directory can not be found

To Reproduce

Just trying to start the addon

Full addon log

Full addon config

───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
 Nextcloud for Home Assistant
-----------------------------------------------------------
User UID:    1000
User GID:    1000
───────────────────────────────────────
 Add-on version: 25.0.4-8
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.5  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2023.3.3
 Home Assistant Supervisor: 2023.03.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
 https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-custom_script.sh
[19:56:31] INFO: Execute /config/addons_autoscripts/nextcloud-ocr.sh if existing
[19:56:31] INFO: ... no script found
cont-init: info: /etc/cont-init.d/01-custom_script.sh exited 0
cont-init: info: running /etc/cont-init.d/01-folders.sh
[19:56:31] INFO: Checking permissions
cont-init: info: /etc/cont-init.d/01-folders.sh exited 0
cont-init: info: running /etc/cont-init.d/02-init_steps.sh
Cleaning files
Setting logs
cont-init: info: /etc/cont-init.d/02-init_steps.sh exited 0
cont-init: info: running /etc/cont-init.d/02-mariadb_discovery.sh
[19:56:32] WARNING: MariaDB addon was found! It can't be configured automatically due to the way Nextcloud works, but you can configure it manually when running the web UI for the first time using those values :
Database user : 
Database password : 
Database name : 
Host-name : 
cont-init: info: /etc/cont-init.d/02-mariadb_discovery.sh exited 0
cont-init: info: running /etc/cont-init.d/30-ssl.sh
cont-init: info: /etc/cont-init.d/30-ssl.sh exited 0
cont-init: info: running /etc/cont-init.d/92-local_mounts.sh
cont-init: info: /etc/cont-init.d/92-local_mounts.sh exited 0
cont-init: info: running /etc/cont-init.d/92-smb_mounts.sh
cont-init: info: /etc/cont-init.d/92-smb_mounts.sh exited 0
cont-init: info: running /etc/cont-init.d/99-add_packages.sh
Cloning into 'pdfannotate'...
warning: redirecting to https://gitlab.com/nextcloud-other/nextcloud-annotate.git/
Nextcloud annotate app added to Nextcloud app store
[19:56:38] INFO: Installing additional apps :
... inotify-tools
cont-init: info: /etc/cont-init.d/99-add_packages.sh exited 0
cont-init: info: running /etc/cont-init.d/99-elasticsearch.sh
Full Text Search is already working
Full_Text_Search option not set
cont-init: info: /etc/cont-init.d/99-elasticsearch.sh exited 0
cont-init: info: running /etc/cont-init.d/99-ocr.sh
cont-init: info: /etc/cont-init.d/99-ocr.sh exited 0
cont-init: info: running /etc/cont-init.d/99-trusted_domains.sh
[19:56:42] INFO: Currently set trusted domains :
[19:56:42] INFO: Trusted domains set in the configuration. Refreshing domains.
[19:56:42] INFO: ... removing previously added trusted domain (except for first one created)
[19:56:44] INFO: ... alignement with trusted domains list : 
[19:56:44] INFO: ... adding 
[19:56:44] INFO: ... adding 
[19:56:45] INFO: ... adding 1
[19:56:45] INFO: Remaining configurated trusted domains :
[19:56:45] INFO: Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".
cont-init: info: /etc/cont-init.d/99-trusted_domains.sh exited 0
Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".Setting resolver to  127.0.0.11
Setting worker_processes to 4
using keys found in /data/config/keys
cp: cannot create regular file '/data/config/www/nextcloud/config/config.php': No such file or directory

I also get this error in Supervisor log

23-03-20 19:55:23 ERROR (SyncWorker_1) [supervisor.docker.addon] Add-on Nextcloud try to access to blocked device sdb1!

System

Running HassOS on a Raspberry Pi 4 8GB

  • Supervisor version: 2023.03.1
  • Home assistant core: 2023.3.3
  • Host system version: Home Assistant OS 9.5

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (7 by maintainers)

Commits related to this issue

Most upvoted comments

You can indeed! Thank you very much

Thanks for the feedback. Should i close it?

Perfect! And I’ve implanted the code within the addon to avoid potential recurrence, and allow easier updates in the future with a boolean in the addon options

I do really appreciate you trying to help out

So reran and installed this. App directory error now attached below

To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID:    1000
User GID:    1000
───────────────────────────────────────
 Add-on version: 25.0.4-11
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.5  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2023.3.5
 Home Assistant Supervisor: 2023.03.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
 https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-custom_script.sh
[22:01:17] INFO: Execute /config/addons_autoscripts/nextcloud-ocr.sh if existing
[22:01:17] INFO: ... no script found
cont-init: info: /etc/cont-init.d/01-custom_script.sh exited 0
cont-init: info: running /etc/cont-init.d/01-folders.sh
[22:01:18] INFO: Checking permissions
cont-init: info: /etc/cont-init.d/01-folders.sh exited 0
cont-init: info: running /etc/cont-init.d/02-init_steps.sh
Cleaning files
Setting logs
Checking installation
PHP Warning:  require_once(/data/config/www/nextcloud/console.php): Failed to open stream: No such file or directory in /data/config/www/nextcloud/occ on line 11
PHP Fatal error:  Uncaught Error: Failed opening required '/data/config/www/nextcloud/console.php' (include_path='.:/usr/share/php81') in /data/config/www/nextcloud/occ:11
Stack trace:
#0 {main}
  thrown in /data/config/www/nextcloud/occ on line 11
cont-init: info: /etc/cont-init.d/02-init_steps.sh exited 0
cont-init: info: running /etc/cont-init.d/02-mariadb_discovery.sh
[22:01:20] WARNING: MariaDB addon was found! It can't be configured automatically due to the way Nextcloud works, but you can configure it manually when running the web UI for the first time using those values :
Database user : 
Database password : 
Database name : 
Host-name : 
cont-init: info: /etc/cont-init.d/02-mariadb_discovery.sh exited 0
cont-init: info: running /etc/cont-init.d/30-ssl.sh
cont-init: info: /etc/cont-init.d/30-ssl.sh exited 0
cont-init: info: running /etc/cont-init.d/92-local_mounts.sh
cont-init: info: /etc/cont-init.d/92-local_mounts.sh exited 0
cont-init: info: running /etc/cont-init.d/92-smb_mounts.sh
cont-init: info: /etc/cont-init.d/92-smb_mounts.sh exited 0
cont-init: info: running /etc/cont-init.d/99-add_packages.sh
/etc/cont-init.d/99-add_packages.sh: line 18: cd: /data/config/www/nextcloud/apps: No such file or directory
cont-init: info: /etc/cont-init.d/99-add_packages.sh exited 1
cont-init: info: running /etc/cont-init.d/99-elasticsearch.sh
cont-init: info: /etc/cont-init.d/99-elasticsearch.sh exited 0
cont-init: info: running /etc/cont-init.d/99-ocr.sh
cont-init: info: /etc/cont-init.d/99-ocr.sh exited 0
cont-init: info: running /etc/cont-init.d/99-trusted_domains.sh
[22:01:28] INFO: Currently set trusted domains :
PHP Warning:  require_once(/data/config/www/nextcloud/console.php): Failed to open stream: No such file or directory in /data/config/www/nextcloud/occ on line 11
PHP Fatal error:  Uncaught Error: Failed opening required '/data/config/www/nextcloud/console.php' (include_path='.:/usr/share/php81') in /data/config/www/nextcloud/occ:11
Stack trace:
#0 {main}
  thrown in /data/config/www/nextcloud/occ on line 11
[22:01:28] INFO: No trusted domain set yet. The first one will be set when doing initial configuration
[22:01:28] INFO: Trusted domains set in the configuration. Refreshing domains.
[22:01:28] INFO: ... removing previously added trusted domain (except for first one created)
PHP Warning:  require_once(/data/config/www/nextcloud/console.php): Failed to open stream: No such file or directory in /data/config/www/nextcloud/occ on line 11
PHP Fatal error:  Uncaught Error: Failed opening required '/data/config/www/nextcloud/console.php' (include_path='.:/usr/share/php81') in /data/config/www/nextcloud/occ:11
Stack trace:
#0 {main}
  thrown in /data/config/www/nextcloud/occ on line 11
cont-init: info: /etc/cont-init.d/99-trusted_domains.sh exited 255
Setting resolver to  127.0.0.11
Setting worker_processes to 4
using keys found in /data/config/keys
cp: cannot create regular file '/data/config/www/nextcloud/config/config.php': No such file or directory
chown: cannot access '/data/config/www/nextcloud/config/config.php': No such file or directory
# do daily/weekly/monthly maintenance
# min   hour    day     month   weekday command
*/15    *       *       *       *       run-parts /etc/periodic/15min
0       *       *       *       *       run-parts /etc/periodic/hourly
0       2       *       *       *       run-parts /etc/periodic/daily
0       3       *       *       6       run-parts /etc/periodic/weekly
0       5       1       *       *       run-parts /etc/periodic/monthly
# nextcloud cron
*/5     *       *       *       *       (s6-setuidgid abc php -f /data/config/www/nextcloud/cron.php) &>/proc/1/fd/1
[custom-init] No custom files found, skipping...
services-up: info: copying legacy longrun cron (no readiness notification)
[ls.io-init] done.
[22-Mar-2023 22:01:31] NOTICE: fpm is running, pid 493
[22-Mar-2023 22:01:31] NOTICE: ready to handle connections
```

apps directory not found! Please put the Nextcloud apps folder in the Nextcloud folder. You can also configure the location in the config.php file.

No idea, what the problem could be

No problem at all, thanks a lot man. I’ll keep you posted