You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @alexbelgium this is likely a user error, or maybe a bit more documentation would've helped?
Have a perfectly working SMB mountpoint (...with 4MB blocks wow) based on your 2.2.1 webtrees addon's startup configuration, but webtrees can't use this mountpoint to create its files? It would've been a perfectly stateless docker image if I got this working.
Inside the container the mount works:
# docker exec -it addon_db21ed7f_webtrees /bin/bash
root@db21ed7f-webtrees:/data/webtrees# cd /mnt/2_uploads/webtrees/data/
root@db21ed7f-webtrees:/mnt/2_uploads/webtrees/data# touch test
root@db21ed7f-webtrees:/mnt/2_uploads/webtrees/data# ls -la
total 0
drwxrwxr-x 2 root root 0 Jan 2 18:21 .
drwxrwxr-x 2 root root 0 Jan 2 16:25 ..
-rwxrwxr-x 1 root root 0 Jan 2 18:21 test
root@db21ed7f-webtrees:/mnt/2_uploads/webtrees/data# mount -l | grep uploads
//192.168.0.250/2_uploads on /mnt/2_uploads type cifs (rw,relatime,vers=3.1.1,cache=strict,username=<username>,domain=192.168.0.250,uid=0,forceuid,gid=0,forcegid,addr=192.168.0.250,file_mode=0775,dir_mode=0775,iocharset=utf8,soft,nounix,serverino,mapposix,nobrl,reparse=nfs,rsize=4194304,wsize=4194304,bsize=1048576,retrans=1,echo_interval=60,actimeo=1,closetimeo=1)
But in the webtrees:
And it defaults back to /share/webtrees/data/ which is going back to the Supervisor's disk.
Let me know if it's a documentation bug or something, maybe I'll send a rookie PR for your markdown...
Reproduction steps
Home Assistant
Core 2024.12.5
Supervisor 2024.12.0
Operating System 14.1
Frontend 20241127.8
1. Clean install of addon, with manual user creation [as in issues/907](https://github.com/alexbelgium/hassio-addons/issues/907#issuecomment-2566974530)
2. Normal boot with CIFS configuration, success
3. Import GEDCOM
4. Try configuring https://<fqdn>:<port>/admin/site-preferences --> Data folder to <mounted-path-from-logs>
5. Receive error `"Cannot write to the folder "<mounted-path-from-logs>"`
Addon Logs
Starting...
/etc/cont-init.d/00-banner.sh: executing
-----------------------------------------------------------
Add-on: Webtrees
web's leading on-line collaborative genealogy application----------------------------------------------------------- Add-on version: 2.2.1 You are running the latest version of this add-on. System: Home Assistant OS 14.1 (aarch64 / raspberrypi4-64) Home Assistant Core: 2024.12.5 Home Assistant Supervisor: 2024.12.0----------------------------------------------------------- Please, share the above information when looking for help or support in, e.g., GitHub, forums----------------------------------------------------------- Provided by: https://github.com/alexbelgium/hassio-addons -----------------------------------------------------------/etc/cont-init.d/00-global_var.sh: executingBASE_URL='<fqdn>'CONFIG_LOCATION='/config/addons_config/webtrees/config.yaml'DB_TYPE='mariadb_addon'certfile='certs/ECC-cert.pem'cifsdomain='192.168.0.250'cifspassword=<password>cifsusername='<username>'keyfile='certs/ECC-privkey.pem'networkdisks='//192.168.0.250/2_uploads'ssl='true'Timezone set from Etc/UTC to Asia/Singapore/etc/cont-init.d/00-local_mounts.sh: executing/etc/cont-init.d/00-smb_mounts.sh: executingMounting smb share(s)...... using domain 192.168.0.250... mounting //192.168.0.250/2_uploads[16:23:04] INFO: ...... //192.168.0.250/2_uploads successfully mounted to /mnt/2_uploads with options rw,file_mode=0775,dir_mode=0775,username=<username>,password=<password>,nobrl,uid=0,gid=0,iocharset=utf8,domain=192.168.0.250/etc/cont-init.d/01-config_yaml.sh: executingSetting permissions for the config.yaml directoryLoad environment variables from /config/addons_config/webtrees/config.yaml if existingIf accessing the file with filebrowser it should be mapped to /homeassistant/addons_config/webtrees/config.yaml---------------------------------------------------------Wiki here on how to use : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables... no env variables found, exiting/etc/cont-init.d/01-custom_script.sh: executingExecute /homeassistant/addons_autoscripts/webtrees.sh if existingWiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation/etc/cont-init.d/99-run.sh: executing[16:23:05] INFO: Defining database[16:23:06] INFO: Using MariaDB addon. Requirements : running MariaDB addon. Discovering values...DB_HOST=core-mariadbDB_PORT=3306DB_NAME=webtreesDB_USER=serviceDB_PASS=<pass>[16:23:08] WARNING: Webtrees is using the Maria DB addon[16:23:08] WARNING: Please ensure this is included in your backups[16:23:08] WARNING: Uninstalling the MariaDB addon will remove any data[16:23:11] INFO: Ssl enabled. If webui don't work, disable ssl or check your certificate paths
[16:23:11] INFO: Launching app, please wait
... update data with image
... update permissions
... make links with data in /share
... linking data
... linking modules_v4
... align base url with latest addon value
Aligning base_url addon config
[16:23:13] INFO: Aligning trusted_headers addon config with cf-connecting-ip
[16:23:13] INFO: Data is stored in /share/webtrees
[16:23:13] INFO: Webui can be accessed at : https://<fqdn>:<port>
[16:23:13] INFO: If it is your first boot, the start-up wizard will open
python3 /docker-entrypoint.py
[NV_INIT] PRETTY_URLS found in environment variables
[NV_INIT] HTTPS found in environment variables
[NV_INIT] HTTPS_REDIRECT found in environment variables
[NV_INIT] SSL_CERT_FILE found in environment variables
[NV_INIT] SSL_CERT_KEY_FILE found in environment variables
[NV_INIT] BASE_URL found in environment variables
[NV_INIT] LANG found in environment variables
[NV_INIT] DB_TYPE found in environment variables
[NV_INIT] DB_HOST found in environment variables
[NV_INIT] DB_PORT found in environment variables
[NV_INIT] DB_USER found in environment variables
[NV_INIT] DB_PASS found in environment variables
[NV_INIT] DB_NAME found in environment variables
[NV_INIT] DB_PREFIX found in environment variables
[NV_INIT] WT_USER found in environment variables
[NV_INIT] WT_NAME found in environment variables
[NV_INIT] WT_PASS found in environment variables
[NV_INIT] WT_EMAIL found in environment variables
[NV_INIT] DB_KEY NOT found in environment variables, using default: None
[NV_INIT] DB_CERT NOT found in environment variables, using default: None
[NV_INIT] DB_CA NOT found in environment variables, using default: None
[NV_INIT] DB_VERIFY NOT found in environment variables, using default: None
[NV_INIT] PHP_MEMORY_LIMIT NOT found in environment variables, using default: 1024M
[NV_INIT] PHP_MAX_EXECUTION_TIME NOT found in environment variables, using default: 90
[NV_INIT] PHP_POST_MAX_SIZE NOT found in environment variables, using default: 50M
[NV_INIT] PHP_UPLOAD_MAX_FILE_SIZE NOT found in environment variables, using default: 50M
[NV_INIT] PUID NOT found in environment variables, using default: 33
[NV_INIT] PGID NOT found in environment variables, using default: 33
[NV_INIT] Setting up folder permissions for uploads
usermod: no changes
[NV_INIT] Updating php.ini
[NV_INIT] Creating php.ini
[NV_INIT] Setting value formemory_limitin php.ini
[NV_INIT] Setting value formax_execution_timein php.ini
[NV_INIT] Setting value forpost_max_sizein php.ini
[NV_INIT] Setting value forupload_max_filesizein php.ini
[NV_INIT] Updating config file
[NV_INIT] Setting value forrewrite_urlsin config
[NV_INIT] Setting value forbase_urlin config
[NV_INIT] Setting value fordbtypein config
[NV_INIT] Setting value fordbhostin config
[NV_INIT] Setting value fordbportin config
[NV_INIT] Setting value fordbuserin config
[NV_INIT] Setting value fordbpassin config
[NV_INIT] Setting value fordbnamein config
[NV_INIT] Setting value fortblpfxin config
[NV_INIT] Configuring HTTPS
[NV_INIT] Adding HTTPS, with HTTPS redirect
[NV_INIT] Disabling site webtrees
[NV_INIT] Enabling site webtrees-ssl
[NV_INIT] Enabling site webtrees-redir
[NV_INIT] Setting up folder permissions for uploads
usermod: no changes
[NV_INIT] Starting Apache
webtrees:80 127.0.0.1 - - [02/Jan/2025:16:23:21 +0800] "GET / HTTP/1.0" 400 618 "-""-"
webtrees:80 127.0.0.1 - - [02/Jan/2025:16:23:51 +0800] "GET / HTTP/1.0" 400 618 "-""-"
webtrees:80 127.0.0.1 - - [02/Jan/2025:16:24:21 +0800] "GET / HTTP/1.0" 400 618 "-""-"
Architecture
aarch64
OS
HAos
The text was updated successfully, but these errors were encountered:
Description
Hi @alexbelgium this is likely a user error, or maybe a bit more documentation would've helped?
Have a perfectly working SMB mountpoint (...with 4MB blocks wow) based on your 2.2.1 webtrees addon's startup configuration, but webtrees can't use this mountpoint to create its files? It would've been a perfectly stateless docker image if I got this working.
Inside the container the mount works:
But in the webtrees:
And it defaults back to
/share/webtrees/data/
which is going back to the Supervisor's disk.Let me know if it's a documentation bug or something, maybe I'll send a rookie PR for your markdown...
Reproduction steps
Addon Logs
Architecture
aarch64
OS
HAos
The text was updated successfully, but these errors were encountered: