-
Notifications
You must be signed in to change notification settings - Fork 26
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
General settings in config.ini.php gets overwritten #9
Comments
can you give me the line you used to start the container (without passwords and personal data) |
Here is my docker-compose file. The VIRTUAL_HOST is just for the ngnix reverse proxy docker that i use
|
hey there, it seems like I found and fixes this bug. I was erasing to much lines inside the config with sed. Now I only erase the right lines ;) The new container should currently be build on the docker systems, you can check with the new container in about 15-30 Minutes (don't forget docker pull marvambass/piwik) hope i could help Marvin |
could you notify me or close this if it works now? |
pulled the lastest container, issue still seems the same |
seems like the latest commit didn't trigger a new build on docker - so the version is still buggy started the build manually - takes some time |
so now the latest build is finished - as far as I've testet it, it should definetly work now. |
couldn't test it earlier, but it seems i still have the same issue. even after removing and repulling the complete image |
hey kiina thx for testing again, could you please check if the
is inside of the piwik conf |
nope, the config file is still like above |
could you send me the logoutput? |
thanks, looks pretty normal to me. it would be interesting to find this well hidden bug |
have you tried with a clean database? the problem seems only to exist with a clean db. i tried:
which provides the error. but if i remove the piwik docker after setup and deploy it again:
it works for some reason. edit: guess this is related. seems like you add all the headers and then delete the file |
hey there, well your log looks pretty fine to me. I always use a completely new environment to test. But I use my marvambass/mysql container. thanks for figuring the line out, I just tought about this. I use the mysql client binary to connect to the database. but I've just got an idea to fix this easily |
actually removing the config in the first place doesn't make sense to me 😄 |
/Edit: okay it doesn't work with removing it. It adds the HTTP_X_FORWARDED but doesn't give you a username and password for piwik at initialization. And even if you set a password via env you get the error:
|
yeah i thought so, you would need something like a generator script for the config. the best thing would be to restart the container (destroy and start again) after the initialisation of your container. or maybe i find time to add such a generator - but this could happen in the next 24 months, I ve serveral other things to do at the moment |
I am also still getting this error |
I'm getting this error too. Completely fresh setup. Log output & generated config.ini.php here. Going to have a look, try to solve this myself. Will report back. |
yeah it's still not fixed. you can take a look at #13 to get a bit more details |
Any progress on this one? I would love to get "enable_trusted_host_check=0" to make it into the configuration ;-). |
@michelcve https://github.com/MarvAmBass/docker-piwik/blob/master/config.ini.php#L2 |
@MarvAmBass no, as you mentioned in the issue here, your config is basically never used as it's replaced by the piwik installer. |
🙈 sorry you're right. unfortunately I wasn't able to look into this further but if you fix this I'm happy to merge a bugfix thx |
In version 3.3.0 at least (probably also in 3.2.0, I did not check extensively, thought the console tool is available), it's simply a matter of running the following console command:
I'd suggest in your DB setup part, at the end (after the sleep 5). Perhaps make it optional with environment variables... Could you give that a shot? |
thanks for figuring this out - I might be able to have a look at this - maybe with the console utility everything else gets better as well |
I've made a PR for this #39 |
thanks for adding - it's merged already! 👍 |
Great thanks! Any idea how fast this will hit the docker hub? |
current latest image is already pushed. the tagged version is also already pushed now |
Great, thanks! |
I started the container with minimal config and got the trusted host warning.
I looked into the piwik/config/config.ini.php and it looked like this.
Seems like the enable_trusted_host_check=0 option gets overwritten or something.
The text was updated successfully, but these errors were encountered: