-
Notifications
You must be signed in to change notification settings - Fork 193
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
passbolt.php is ignored #97
Comments
I tried to edit app.php directly, it's not working either ... Even when I completely remove the calls to the EDIT : Found the issue I think. Look at this snippet in docker-entrypoint.sh : tables=$(mysql \
-u "${DATASOURCES_DEFAULT_USERNAME:-passbolt}" \
-h "${DATASOURCES_DEFAULT_HOST:-localhost}" \
-P "${DATASOURCES_DEFAULT_PORT:-3306}" \
-BN -e "SHOW TABLES FROM ${DATASOURCES_DEFAULT_DATABASE:-passbolt}" \
-p"${DATASOURCES_DEFAULT_PASSWORD:-P4ssb0lt}" |wc -l)
app_config="/var/www/passbolt/config/app.php"
Thanks for your time |
Hi @MYDIH Thanks for your feedback and your investigation on the issue! |
I believe I have experienced this too. |
Yeah this logic could be moved out of the container into a shell task inside passbolt_api. It could make more sense than parsing a php file in bash |
Its also inconsistent @dlen as I have setup an env variable for the full base url and pb is still checking the passbolt.php config?
|
Interesting, that looks like a bug in the healthcheck @cedricalfonsi |
The fullBaseUrl is defined with an env variable APP_FULL_BASE_URL, but it can be overridden with the passbolt.php file. The Healthcheck use this variable to access the /healthcheck/status.json entry point. Can you maybe test to access this url directly with your browser and tell us is something is wrong ? What would be interesting is to know what value is returned by `Configure::read('App.fullBaseUrl'). If this value is not well set the links inserted in the email sent by your passbolt should be wrong. |
@cedricalfonsi using the direct entry point ( /healthcheck/status.json) i get this, which would appear to be fine;
While rerunning healthcheck, still gives me this ;
Also, adding new users always uses my correct fqdn and the urls work, allowing the creation of the accounts. Can Configure::read('App.fullBaseUrl') be checked from the command line in some way? Perhaps this can be moved to a new issue if it not related to the OP's issue? I am finding the env variable is taking precidence over the passbolt.php rather than the other way around as you state? or its healthcheck confusing the issue, not sure. |
Just don't try to do a fresh install since we don't need that. See passbolt#97
I'm reopening this, the issue is still here, don't know why I closed it. Surely because I worked around the problem, but now that I updated the docker, same issue arise. Offending lines : passbolt_docker/bin/docker-entrypoint.sh Lines 73 to 78 in 8e1c638
|
Hi @MYDIH , Thanks for reminding this here. Indeed the install task from passbolt_api has changed and it already checks for a previous installation to be present. The fix has been pushed to develop to be released possibly next week. Feel free to test it if you want. |
Hi,
I just migrate my install to V2 and I don't want to use environment variables to transmit passwords to my container. I created a passbolt.php file (by using the template), I put it in the config folder as described, I chown it to the www-data user and group but when I start the container, passbolt just ignores my database settings and tries to locate the MySQL socket.
I will post the passbolt.php file and my dockerfile as soon as possible.
Passbolt.php (anonymised) :
And my Dockerfile :
Thanks
The text was updated successfully, but these errors were encountered: