docker-redmine: Gemfile: Too many levels of symbolic links

I have tried to install redmine with external PostgreSQL, but it doesn’t work for me with the logs below. Seems the problem is:

redmine | bundler: failed to load command: rake (/usr/bin/rake) redmine | Bundler::Dsl::DSLError:

Can someone tell me how to make it work?

Logs

redmine | Initializing logdir… redmine | Initializing datadir… redmine | Symlinking dotfiles… redmine | Installing configuration templates… redmine | Configuring redmine… redmine | Configuring redmine::database redmine | Configuring redmine::unicorn… redmine | Configuring redmine::secret_token… redmine | Configuring redmine::max_concurrent_ajax_uploads… redmine | Configuring redmine::sudo_mode… redmine | Configuring redmine::autologin_cookie… redmine | Configuring redmine::backups… redmine | Configuring nginx… redmine | Configuring nginx::redmine… redmine | New redmine version. Clearing cache redmine | Migrating database. Please be patient, this could take a while… redmine | bundler: failed to load command: rake (/usr/bin/rake) redmine | Bundler::Dsl::DSLError: redmine | [!] There was an error parsing Gemfile: Too many levels of symbolic links - /home/redmine/redmine/vendor/bundle/ruby/2.4.0/specifications. Bundler cannot continue. redmine | redmine | # from /home/redmine/redmine/Gemfile:45 redmine | # ------------------------------------------- redmine | # require ‘erb’ redmine | > require ‘yaml’ redmine | # database_file = File.join(File.dirname(FILE), “config/database.yml”) redmine | # ------------------------------------------- redmine | redmine | /usr/lib/ruby/2.4.0/rubygems/specification.rb:752:in []' redmine | /usr/lib/ruby/2.4.0/rubygems/specification.rb:752:in gemspec_stubs_in’ redmine | /usr/lib/ruby/2.4.0/rubygems/specification.rb:777:in block in map_stubs' redmine | /usr/lib/ruby/2.4.0/rubygems/specification.rb:774:in each’ redmine | /usr/lib/ruby/2.4.0/rubygems/specification.rb:774:in flat_map' redmine | /usr/lib/ruby/2.4.0/rubygems/specification.rb:774:in map_stubs’ redmine | /usr/lib/ruby/2.4.0/rubygems/specification.rb:766:in installed_stubs' redmine | /usr/lib/ruby/2.4.0/rubygems/specification.rb:853:in stubs_for’ redmine | /usr/lib/ruby/2.4.0/rubygems/dependency.rb:279:in matching_specs' redmine | /usr/lib/ruby/2.4.0/rubygems/dependency.rb:300:in to_specs’ redmine | /usr/lib/ruby/2.4.0/rubygems/dependency.rb:320:in to_spec' redmine | /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_gem.rb:65:in gem’ redmine | /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:47:in require' redmine | /usr/lib/ruby/2.4.0/yaml.rb:6:in <top (required)>’ redmine | /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require' redmine | /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require’ redmine | /home/redmine/redmine/Gemfile:45:in eval_gemfile' redmine | /var/lib/gems/2.4.0/gems/bundler-2.1.3/lib/bundler/dsl.rb:47:in instance_eval’ redmine | /var/lib/gems/2.4.0/gems/bundler-2.1.3/lib/bundler/dsl.rb:47:in eval_gemfile' redmine | /var/lib/gems/2.4.0/gems/bundler-2.1.3/lib/bundler/dsl.rb:12:in evaluate’ redmine | /var/lib/gems/2.4.0/gems/bundler-2.1.3/lib/bundler/definition.rb:34:in build' redmine | /var/lib/gems/2.4.0/gems/bundler-2.1.3/lib/bundler.rb:195:in definition’ redmine | /var/lib/gems/2.4.0/gems/bundler-2.1.3/lib/bundler.rb:143:in setup' redmine | /var/lib/gems/2.4.0/gems/bundler-2.1.3/lib/bundler/setup.rb:20:in block in <top (required)>’ redmine | /var/lib/gems/2.4.0/gems/bundler-2.1.3/lib/bundler/ui/shell.rb:136:in with_level' redmine | /var/lib/gems/2.4.0/gems/bundler-2.1.3/lib/bundler/ui/shell.rb:88:in silence’ redmine | /var/lib/gems/2.4.0/gems/bundler-2.1.3/lib/bundler/setup.rb:20:in `<top (required)>’

Here is my docker-compose file:

redmine: container_name: redmine image: sameersbn/redmine:4.1.0 environment: - DB_ADAPTER=postgresql - DB_ENCODING=utf8 - DB_HOST=172.16.8.10 - DB_PORT=5432 - DB_NAME=redmine - DB_USER=redmine - DB_PASS=redmine - TZ=Asia/Shanghai - REDMINE_PORT=10083 - REDMINE_HTTPS=false - REDMINE_SECRET_TOKEN=000000000 restart: always ports: - “10083:10083” volumes: - type: bind source: /opt/dockers/redmine/data target: /home/redmine/data

About this issue

Most upvoted comments

I see. I hope the above fix works for you.

On Tue, Feb 18, 2020 at 10:38 PM hchungi notifications@github.com 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 https://github.com/sameersbn/docker-redmine/issues/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