-
Notifications
You must be signed in to change notification settings - Fork 129
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
Error loading config of additionally installed plugins #220
Comments
After I while I found the root cause. When I do install the plugin using composer like this composer \
--working-dir=/usr/src/roundcubemail/ \
--prefer-dist \
--prefer-stable \
--update-no-dev \
--no-interaction \
--optimize-autoloader \
require \
pimlie/authres_status:* \
; \ it creates an empty default config in |
There's a convention that plugin configs are searched in Roundcube's config folder named the same as the plugin (e.g. authres_status.inc.php). If you want to include the config right in your Docker image, COPY the file into The /var/roundcube/config volume is meant to hold configs that are injected into the container and need to be configured for each deployment. |
Hi A little thing I dont yet understand in the README: Using FROM roundcube/roundcubemail:latest-fpm-alpine
RUN set -ex; \
yes | composer \
--working-dir=/usr/src/roundcubemail/ \
--prefer-dist \
--prefer-stable \
--update-no-dev \
--no-interaction \
--optimize-autoloader \
require \
guzzlehttp/guzzle \
johndoh/globaladdressbook \
kolab/calendar \
kolab/tasklist \
syncgw/roundcube_plugin \
;
COPY ["/plugins/calendar/config.inc.php", "/usr/src/roundcubemail/config/calendar/config.inc.php"]
COPY ["/plugins/tasklist/config.inc.php", "/usr/src/roundcubemail/config/tasklist/config.inc.php"]
COPY ["/plugins/libkolab/libokolab.min.css", "/usr/src/roundcubemail/config/libkolab/skins/elastic/libokolab.min.css"]` With the default roundcube/roundcubemail image, using inside a Thanks a lot for any explanation 🙂 |
Some plugins put files into I cannot reproduce the issue that plugins are not found on a new start of a custom image. If you still have this problem please tell us more details. You copy the plugin configs to the wrong place though, maybe that's why it fails? Plugin configs go to |
@thomascube Can you point me to where this is implemented? Couldn't find it yet. |
I created a Docker image derived from this to install another plugin using composer and install a custom configuration file like this:
COPY --chown=root:root --chmod=644 authres_status/config.inc.php /var/www/html/plugins/authres_status/config.inc.php
In the logs I see a lot of errors about not being able to load the file:
errors: <de821df1> PHP Error: Failed to load config from /var/www/html/plugins/authres_status/config.inc.php in /var/www/html/program/lib/Roundcube/rcube_plugin.php on line 166 (POST /?_task=settings&_action=refresh)
I checked inside the container to confirm the file exists and is readable for www-data:
root@c71f5f951f56:/var/www/html# ls -al /var/www/html/plugins/authres_status total 92 drwxr-xr-x 1 root root 4096 May 24 19:52 . drwxr-xr-x 1 root root 4096 May 24 19:52 .. -rw-r--r-- 1 root root 47 Jan 26 20:07 .gitignore drwxr-xr-x 2 root root 4096 Jan 26 20:07 .tx -rwxr-xr-x 1 root root 697 Jan 26 20:07 LICENSE -rwxr-xr-x 1 root root 2842 Jan 26 20:07 README.md -rwxr-xr-x 1 root root 952 Jan 26 20:07 authres_status.js -rwxr-xr-x 1 root root 22753 Jan 26 20:07 authres_status.php -rwxr-xr-x 1 root root 1444 Jan 26 20:07 composer.json -rw-r--r-- 1 root root 1505 May 24 19:52 config.inc.php -rw-r--r-- 1 root root 1505 Jan 26 20:07 config.inc.php.dist drwxr-xr-x 2 root root 4096 Jan 26 20:07 images drwxr-xr-x 2 root root 4096 Jan 26 20:07 localization -rw-r--r-- 1 root root 217 Jan 26 20:07 phpcs.xml -rw-r--r-- 1 root root 689 Jan 26 20:07 phpunit.xml drwxr-xr-x 15 root root 4096 Jan 26 20:07 skins drwxr-xr-x 2 root root 4096 Jan 26 20:07 tests
Am I missing something obvious?
The text was updated successfully, but these errors were encountered: