alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.58k stars 225 forks source link

[Nextcloud] Nextcloud doesn't start with samba share mount configured #751

Closed sandervs1979 closed 1 year ago

sandervs1979 commented 1 year ago

Which addon?

Describe the bug

Hi Alex, Addon will not start. Last line in log informs about correct samba mounting. When I remove mounting option from configuration, addon is starting properly. It looks like a similar issue which was reported for Calibre, but I couldn't figure out how that was solved in the end.

To Reproduce

Full addon log

[migrations] started
cont-init: info: running /etc/cont-init.d/00-banner.sh
[migrations] 01-nginx-site-confs-default: skipped
[migrations] done
-----------------------------------------------------------
 Add-on: Nextcloud
 Nextcloud for Home Assistant
-----------------------------------------------------------
───────────────────────────────────────
      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║      
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 
   Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID:    1000
User GID:    1000
───────────────────────────────────────
 Add-on version: 25.0.4-nginx_optimizations
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.5  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2023.3.1
 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/00-nginx_correct.sh
cont-init: info: /etc/cont-init.d/00-nginx_correct.sh exited 0
cont-init: info: running /etc/cont-init.d/01-custom_script.sh
[21:45:12] INFO: Execute /config/addons_autoscripts/nextcloud-ocr.sh if existing
[21:45:12] 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
[21:45:13] INFO: Checking permissions
cont-init: info: /etc/cont-init.d/01-folders.sh exited 0
cont-init: info: running /etc/cont-init.d/02-mariadb_discovery.sh
[21:45:15] 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 : service
Database password : zoh0bei4shiNg2eithaht1Ahcoo3fei4aed7Tielie4ax2eetidei9kee8iZiGau
Database name : nextcloud
Host-name : core-mariadb:3306
cont-init: info: /etc/cont-init.d/02-mariadb_discovery.sh exited 0
cont-init: info: running /etc/cont-init.d/30-ssl.sh
[21:45:16] INFO: Using referenced ssl certificates...
... checking if referenced files exist
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
Mounting smb share(s)...
Using PUID 1000 and PGID 1000
[21:45:20] INFO: ... //192.168.1.69/Media successfully mounted to /mnt/Media with options 
[21:45:21] INFO: ... //192.168.1.69/Documents successfully mounted to /mnt/Documents with options 
[21:45:21] INFO: ... //192.168.1.69/Fotos successfully mounted to /mnt/Fotos with options 
[21:45:21] INFO: ... //192.168.1.69/Nextcloud successfully mounted to /mnt/Nextcloud with options

Full addon config

Full_Text_Search: false OCR: false OCRLANG: fra PGID: 1000 PUID: 1000 additional_apps: inotify-tools certfile: fullchain.pem elasticsearch_server: keyfile: privkey.pem trusted_domains: nc.sandervs.duckdns.org use_own_certs: true data_directory: /mnt/Nextcloud cifsusername: xxxxxxx cifspassword: xxxxxxx TZ: Europe/Amsterdam networkdisks: >- //192.168.1.69/Media, //192.168.1.69/Documents, //192.168.1.69/Fotos, //192.168.1.69/Nextcloud

System Raspberry Pi 4B Home Assistant 2023.3.1 Supervisor 2023.03.1 Operating System 9.5 Frontend-versie: 20230302.0 - latest

alexbelgium commented 1 year ago

Sorry, new version pushed

sandervs1979 commented 1 year ago

Wow, that's amazingly quick! Solved! Thanks!

alexbelgium commented 1 year ago

Thanks!