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
.docksal/etc/mysql/my.cnf not respected #207
Comments
Thanks for reporting issues! Could you check db container logs with Update from your output log in #209 I see that this is exactly the case.
|
@achekulaev - I want to note that I do not see the world writable config error when I go directly through So then my question is, is the |
Do you have a properly formatted
If it did not look like this. You need to edit it and perform
|
@achekulaev - there are a few comments in the file that I left in, but that is basically what it looks like. It looks properly formatted to me. Here is a complete paste:
Also, you are saying there is no difference between using MySQL from within |
|
fin logs db
|
Looks included to me. I tried your config on Windows and it worked fine. Does the file And how do you check that it's not working? |
@achekulaev - the my.cnf file has linux line endings. I describe the way I am testing if it works in my initial report above. Basically, I have a large sql file that I'm trying to import. It will fail very quickly if max_allowed_packet is not increased. I am also able to I guess it is seeming likely that the root of this problem is simply that the extra config file is ignored due to file permissions, which we can see clearly in the logs. The only thing I cannot reconcile is that |
My initial supposition about permissions was wrong because I forgot how we made |
Two things:
|
Hmm. I suspect that you might have an older version of |
|
Thanks for that tip! Apologies if my lack of understanding for the general Docker architecture has made more of a mess here. So if I run So I am thinking that the issue is what I mentioned above - docker/docksal appears to be doing it's job, but since the primary my.cnf file is ignored, Here is the output of
|
I guess you're right about the root cause but I still can't figure out why it happens. Your Could you show your UPDATE: and could you also log into |
Here's the
By the way, I tried changing the perms from within
and after a Here's fin config
|
I don't see a single reason why that file would have those permissions inside I'll keep it open. In case you see it again please don't hesitate to post here. |
It might be related to the need of health check before proceeding with starting other services. We have #225 opened for that. I'm closing this for now in favor of that one. In case someone has similar issue please comment. |
Description
I'm trying to override the
max_allowed_packet
mysql variable by setting it in .docksal/etc/mysql/my.cnf, but it doesn't seem to work. I have triedfin restart
andfin reset
with no success.Steps to reproduce the issue:
fin sqli <filename>
- SUCCESSmax_allowed_packet = 1024M
to my.cnf.fin restart
, try import again - FAIL.fin reset
, try import again - FAILfin bash
, open mysql console, runSET GLOBAL max_allowed_packet=1073741824;
. Import again - SUCCESSAlso worth noting: I'm using the 'acquia' DOCKSAL_STACK. Everything else is default.
The text was updated successfully, but these errors were encountered: