Closed leojonathanoh closed 1 year ago
hey @the-djmaze, thanks for the fix. It seems to no longer produce an exception, but the data folder is still not populated, and config file not generated:
$ docker run --rm -it leojonathanoh/snappymail:pr-1-65533f9 sh
/snappymail # apk add tree
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
(1/1) Installing tree (2.0.4-r0)
Executing busybox-1.35.0-r29.trigger
OK: 105 MiB in 85 packages
/snappymail # cd /var/lib/snappymail/
/var/lib/snappymail # tree .
.
├── README.md
└── VERSION
0 directories, 2 files
/var/lib/snappymail # /entrypoint.sh
[INFO] Secure cookies activated
[INFO] Snappymail version: 2.27.3
[INFO] Setting permissions on /var/lib/snappymail
[INFO] Creating default Snappymail configuration: /var/lib/snappymail/_data_/_default_/configs/application.ini
[INFO] Overriding values in snappymail configuration: /var/lib/snappymail/_data_/_default_/configs/application.ini
sed: /var/lib/snappymail/_data_/_default_/configs/application.ini: No such file or directory
/var/lib/snappymail # tree .
.
├── INSTALLED
├── README.md
├── SALT.php
├── VERSION
├── _data_
│ └── _default_
│ ├── configs
│ ├── domains
│ │ ├── 1ae2c02f3722.json
│ │ ├── default.json
│ │ └── disabled
│ ├── plugins
│ └── storage
├── index.html
└── index.php
6 directories, 9 files
/var/lib/snappymail #
Correct, as there is a problem due to Nextcloud crashing that conflicts here. Will try to find a workaround.
hmm ok, i guess we'll have to wait and see for a fix.
This commit has changes for it https://github.com/the-djmaze/snappymail/commit/ad07c5b472276c1fd63018bdaa60f4f2be34e432
hmm let me try it
it actually works now, thanks for the fix! :)
Describe the bug
2.27.3 throws exception when executed on command line on the first-time fresh installation with the snappymail data directory unpopulated, whereas it worked on <=
2.27.2
. Discovered in #44Seems to be caused by dd74759adc61af9672f7da6e06d96c9ea50d501c. This prevents the config file from being generated the first time in docker #965.
To Reproduce Steps to reproduce the behavior:
Expected behavior
No exception
Screenshots
On 2.27.3:
Contrast with
2.27.2
which works:Please complete the following information:
Debug/logging information Place them here (few lines) or as attachments (many lines)
Additional context Add any other context about the problem here.