-
Notifications
You must be signed in to change notification settings - Fork 498
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
Gemfile: Too many levels of symbolic links #412
Comments
Could you upload your compose file as a file? I've just spent 10 minutes trying to fix all the syntax errors from copy pasting it. |
I'm also not sure why having an external postgres would cause you issues running rake. I'm wondering if something got corrupted in the container. Make sure to run docker-compose down to delete the container. |
Here is my docker-compose file: I use docker-compose ps -a to see containers, seems docker doesn't create a container when it happened. |
Running your example, I made some changes but redmine can't connect to the database. It doesn't look like the mysql container creates a default database for redmine...
The redmine container can contact the server but it doesn't have a redmine database.
Changes to docker-compose $ diff -u docker-compose.yml.orig docker-compose.yml
--- docker-compose.yml.orig 2020-02-17 10:57:19.204089312 -0500
+++ docker-compose.yml 2020-02-17 11:06:17.818574084 -0500
@@ -33,10 +33,10 @@
- "3306:3306"
volumes:
- type: bind
- source: /opt/usc/mysql/data
+ source: /srv/docker/redmine/mysql
target: /var/lib/mysql
- type: bind
- source: /opt/usc/mysql/logs
+ source: /srv/docker/redmine/mysql-logs
target: /var/log/mysql
redmine:
container_name: redmine
@@ -44,8 +44,8 @@
environment:
- DB_ADAPTER=postgresql
- DB_ENCODING=utf8
- - DB_HOST=172.16.8.55
- - DB_PORT=5432
+ - DB_HOST=mysql
+ - DB_PORT=3306
- DB_NAME=redmine
- DB_USER=redmine
- DB_PASS=password
@@ -58,5 +58,5 @@
- "10083:10083"
volumes:
- type: bind
- source: /opt/usc/redmine/data
+ source: /srv/docker/redmine/redmine/
target: /home/redmine/data I tried configuring the mysql container to create the database and user but i can't seem to connect using the redmine user. mysql:
container_name: mysql
image: mysql:8
environment:
- MYSQL_ROOT_PASSWORD=password
+ - MYSQL_DATABASE=redmine
+ - MYSQL_USER=redmine
+ - MYSQL_PASS=password
- TZ=Asia/Shanghai
Since you aren't using our standard mysql container and I'm struggling to get yours working, can you provide details on how to get it set up so I spend my time looking at your problem and not fighting with mysql? |
Another problem is that you set your example db to postgres - - DB_ADAPTER=postgresql
+ - DB_ADAPTER=mysql2 |
I was able to reproduce your problem after switching back to the normal mysql container. I then deleted the redmine data directory and tried to up the docker. And I got stuck in a Gemfile Too many symlinks loop. And looking in the data tmp directory, there is indeed a symlink loop.
Note this bug can be avoided by properly bring the container down after deleting the redmine directory. Although just deleting the tmp directory would have worked too.
My current version of your compose file. Although this can be reproduced using the example docker files.
Note that it is not expected for the data directory to be deleted and the container to not be deleted at the same time. In general, this project was set up with the expectation that the container would be destroyed or brought "down" whenever it is stopped. Although as long as the data directory is left alone, you don't have to destroy the container. |
At this point, I consider this to be a low priority bug. To recover from this scenario, it should be sufficient to delete the tmp directory in the redmine data directory and bring down and up the docker. |
Thanks for spending your time to figure this out. Here is my infrastructure:
|
I see. I hope the above fix works for you.
…On Tue, Feb 18, 2020 at 10:38 PM hchungi ***@***.***> wrote:
Thanks for spending your time to figure this out.
Actually, there is a mysql container in the docker-compose file. But I do
have a postgre db on another machine (172.16.8.55), which is different then
redmine used.
Here is my infrastructure:
- Machine A (172.16.8.56) - Redmine, MySql and other containers.
- Machine B (172.16.8.55) - PostgreSQL
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#412?email_source=notifications&email_token=ABK2RGIQ7WPJ6B5QA3WS4G3RDSSUPA5CNFSM4KUJJK6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMGHN4I#issuecomment-588019441>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABK2RGJFAV23W2MX7CGDDXTRDSSUPANCNFSM4KUJJK6A>
.
--
Jonathan Cormier
Software Engineer
Voice: 315.425.4045 x222
http://www.CriticalLink.com <http://www.criticallink.com/>
6712 Brooklawn Parkway, Syracuse, NY 13211
<https://www.linkedin.com/company/critical-link-llc>
<https://twitter.com/Critical_Link>
|
Should I close this issue or leave it?
|
No, I think the bug does exist. I just don't have the time to track it down and fix it. And we have a workaround for now. |
Have the same issue on windows 10. After installation, it was OK, but after a reboot became broken. Any ideas about how to fix it without purging the database? |
If you are consistently getting into this state after reboots. Then we need to investigate further as this is not normal behavior. I've not used this container on Windows but for my Linux service script, I call docker-compose down on shutdown and docker-compose up on startup. |
Same problem, tmp directory removal doesn't help because bundle -> /home/redmine/data/tmp/bundle symlink re-creates every start of container. Any ideas? |
You need to destroy the container. WIth docker-compose this is done with
"docker-compose down"
…On Sun, Aug 9, 2020 at 2:08 PM gmsalex ***@***.***> wrote:
Same problem, tmp directory removal doesn't help because bundle ->
/home/redmine/data/tmp/bundle symlink re-creates every start of container.
Any ideas?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#412 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABK2RGMDL2OMFOPLQDI77CDR73QYDANCNFSM4KUJJK6A>
.
--
Jonathan Cormier
Software Engineer
Voice: 315.425.4045 x222
http://www.CriticalLink.com <http://www.criticallink.com/>
6712 Brooklawn Parkway, Syracuse, NY 13211
<https://www.linkedin.com/company/critical-link-llc>
<https://twitter.com/Critical_Link>
|
If problem still persist, this solved for me |
I have tried to install redmine with external PostgreSQL, but it doesn't work for me with the logs below.
Seems the problem is:
Can someone tell me how to make it work?
Logs
Here is my docker-compose file:
The text was updated successfully, but these errors were encountered: