bitnami / containers

Bitnami container images
https://bitnami.com
Other
3.46k stars 4.92k forks source link

[bitnami/redmine] #75115

Closed BMT-Schommer closed 1 week ago

BMT-Schommer commented 1 week ago

Name and Version

bitnami/redmine:5

What architecture are you using?

amd64

What steps will reproduce the bug?

Hi, we run Redmine internally with the docker compose file below and as of today we get ruby install error which prevent Redmine from starting up

services:
  db:
    image: mysql:8.0
    container_name: db
    restart: always
    ports:
      - 3306:3306
    env_file: docker/db/.env
    volumes:
      - dbdata:/var/lib/mysql
    healthcheck:
      test: ["CMD", "mysqladmin' ,"ping", "-h", "localhost"]
      timeout: 10s
      retries: 4
  redmine:
    image: redmine:5
    container_name: redmine
    restart: always
    env_file: docker/redmine/.env
    depends_on:
      db:
        condition: service_healthy
    volumes:
      - redminedata:/usr/src/redmine
      - ./patches/application_helper.rb:/usr/src/redmine/app/helpers/application_helper.rb
      - ./files:/usr/src/redmine/files
      - ./git-repos:/opt/redmine/git-repos
      - ./plugins:/usr/src/redmine/plugins
      - ./public/themes:/usr/src/redmine/public/themes
      - ./public/_schommer:/usr/src/redmines/public/_schommer
      - ./config/configuration.yml:/usr/src/redmine/config/configuration.yml
    healthcheck:
      test: ["CMD", "curl -f http://0.0.0.0:3000 || exit 1"]
      timeout: 10s
      retries: 4

any help/suggestions are appreciated

What is the expected behavior?

No Ruby Install Failures

What do you see instead?

Ruby dependency errors.

Additional information

{"log":"Your Gemfile lists the gem puma (\u003e= 0) more than once.\n","stream":"stderr","time":"2024-11-22T11:37:16.784471818Z"}
{"log":"You should probably keep only one of them.\n","stream":"stderr","time":"2024-11-22T11:37:16.784526233Z"}
{"log":"Remove any duplicate entries and specify the gem only once.\n","stream":"stderr","time":"2024-11-22T11:37:16.784536064Z"}
{"log":"While it's not a problem now, it could cause errors if you change the version of one of them later.\n","stream":"stderr","time":"2024-11-22T11:37:16.784542885Z"}
{"log":"The following gems are missing\n","stream":"stderr","time":"2024-11-22T11:37:16.828195332Z"}
{"log":" * rails (6.1.7.7)\n","stream":"stderr","time":"2024-11-22T11:37:16.828226874Z"}
{"log":" * sanitize (6.1.0)\n","stream":"stderr","time":"2024-11-22T11:37:16.828234541Z"}
{"log":" * puma (6.4.2)\n","stream":"stderr","time":"2024-11-22T11:37:16.828241237Z"}
{"log":" * actioncable (6.1.7.7)\n","stream":"stderr","time":"2024-11-22T11:37:16.828247796Z"}
{"log":" * actionmailbox (6.1.7.7)\n","stream":"stderr","time":"2024-11-22T11:37:16.828259193Z"}
{"log":" * actionmailer (6.1.7.7)\n","stream":"stderr","time":"2024-11-22T11:37:16.828282739Z"}
{"log":" * actionpack (6.1.7.7)\n","stream":"stderr","time":"2024-11-22T11:37:16.828289859Z"}
{"log":" * actiontext (6.1.7.7)\n","stream":"stderr","time":"2024-11-22T11:37:16.828297293Z"}
{"log":" * actionview (6.1.7.7)\n","stream":"stderr","time":"2024-11-22T11:37:16.828303592Z"}
{"log":" * activestorage (6.1.7.7)\n","stream":"stderr","time":"2024-11-22T11:37:16.828310792Z"}
{"log":" * railties (6.1.7.7)\n","stream":"stderr","time":"2024-11-22T11:37:16.828317328Z"}
{"log":" * sprockets-rails (3.4.2)\n","stream":"stderr","time":"2024-11-22T11:37:16.828348449Z"}
{"log":" * racc (1.7.3)\n","stream":"stderr","time":"2024-11-22T11:37:16.828365423Z"}
{"log":" * date (3.3.4)\n","stream":"stderr","time":"2024-11-22T11:37:16.828375876Z"}
{"log":" * nio4r (2.7.3)\n","stream":"stderr","time":"2024-11-22T11:37:16.828382873Z"}
{"log":" * loofah (2.22.0)\n","stream":"stderr","time":"2024-11-22T11:37:16.828390848Z"}
{"log":"Install missing gems with `bundle install`\n","stream":"stderr","time":"2024-11-22T11:37:16.828442183Z"}
{"log":"Your Gemfile lists the gem puma (\u003e= 0) more than once.\n","stream":"stderr","time":"2024-11-22T11:37:17.284725031Z"}
{"log":"You should probably keep only one of them.\n","stream":"stderr","time":"2024-11-22T11:37:17.284766903Z"}
{"log":"Remove any duplicate entries and specify the gem only once.\n","stream":"stderr","time":"2024-11-22T11:37:17.284775738Z"}
{"log":"While it's not a problem now, it could cause errors if you change the version of one of them later.\n","stream":"stderr","time":"2024-11-22T11:37:17.284782416Z"}
{"log":"Fetching gem metadata from https://rubygems.org/.........\n","stream":"stdout","time":"2024-11-22T11:37:23.2390892Z"}
{"log":"Installing racc 1.7.3 with native extensions\n","stream":"stdout","time":"2024-11-22T11:37:23.405328364Z"}
{"log":"Installing date 3.3.4 with native extensions\n","stream":"stdout","time":"2024-11-22T11:37:23.408131579Z"}
{"log":"Installing nio4r 2.7.3 with native extensions\n","stream":"stdout","time":"2024-11-22T11:37:23.418851705Z"}
{"log":"Bundler::DirectoryRemovalError: Could not delete previous installation of\n","stream":"stderr","time":"2024-11-22T11:37:23.427801343Z"}
{"log":"`/usr/local/bundle/gems/racc-1.7.3`.\n","stream":"stderr","time":"2024-11-22T11:37:23.427834094Z"}
{"log":"The underlying error was ArgumentError: parent directory is world writable,\n","stream":"stderr","time":"2024-11-22T11:37:23.42787048Z"}
{"log":"Bundler::FileUtils#remove_entry_secure does not work; abort:\n","stream":"stderr","time":"2024-11-22T11:37:23.427885948Z"}
{"log":"\"/usr/local/bundle/gems/racc-1.7.3\" (parent directory mode 40777), with\n","stream":"stderr","time":"2024-11-22T11:37:23.42789929Z"}
{"log":"backtrace:\n","stream":"stderr","time":"2024-11-22T11:37:23.42791372Z"}
{"log":"/usr/local/lib/ruby/3.2.0/bundler/vendor/fileutils/lib/fileutils.rb:1387:in\n","stream":"stderr","time":"2024-11-22T11:37:23.427926992Z"}
{"log":"`remove_entry_secure'\n","stream":"stderr","time":"2024-11-22T11:37:23.427940858Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler.rb:332:in `rm_rf'\n","stream":"stderr","time":"2024-11-22T11:37:23.427953986Z"}
{"log":"/usr/local/lib/ruby/3.2.0/bundler/rubygems_gem_installer.rb:111:in\n","stream":"stderr","time":"2024-11-22T11:37:23.427981964Z"}
{"log":"`strict_rm_rf'\n","stream":"stderr","time":"2024-11-22T11:37:23.427988444Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/rubygems_gem_installer.rb:19:in `install'\n","stream":"stderr","time":"2024-11-22T11:37:23.427994676Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/source/rubygems.rb:202:in `install'\n","stream":"stderr","time":"2024-11-22T11:37:23.428001139Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/installer/gem_installer.rb:54:in `install'\n","stream":"stderr","time":"2024-11-22T11:37:23.428007886Z"}
{"log":"/usr/local/lib/ruby/3.2.0/bundler/installer/gem_installer.rb:16:in\n","stream":"stderr","time":"2024-11-22T11:37:23.428014255Z"}
{"log":"`install_from_spec'\n","stream":"stderr","time":"2024-11-22T11:37:23.428020737Z"}
{"log":"/usr/local/lib/ruby/3.2.0/bundler/installer/parallel_installer.rb:156:in\n","stream":"stderr","time":"2024-11-22T11:37:23.428026931Z"}
{"log":"`do_install'\n","stream":"stderr","time":"2024-11-22T11:37:23.428033301Z"}
{"log":"/usr/local/lib/ruby/3.2.0/bundler/installer/parallel_installer.rb:147:in\n","stream":"stderr","time":"2024-11-22T11:37:23.428039485Z"}
{"log":"`block in worker_pool'\n","stream":"stderr","time":"2024-11-22T11:37:23.428045831Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/worker.rb:62:in `apply_func'\n","stream":"stderr","time":"2024-11-22T11:37:23.428052084Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/worker.rb:57:in `block in process_queue'\n","stream":"stderr","time":"2024-11-22T11:37:23.428058394Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/worker.rb:54:in `loop'\n","stream":"stderr","time":"2024-11-22T11:37:23.428064782Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/worker.rb:54:in `process_queue'\n","stream":"stderr","time":"2024-11-22T11:37:23.428071099Z"}
{"log":"/usr/local/lib/ruby/3.2.0/bundler/worker.rb:90:in `block (2 levels) in\n","stream":"stderr","time":"2024-11-22T11:37:23.428077494Z"}
{"log":"create_threads'\n","stream":"stderr","time":"2024-11-22T11:37:23.428100714Z"}
{"log":"\n","stream":"stderr","time":"2024-11-22T11:37:23.428108102Z"}
{"log":"Bundler Error Backtrace:\n","stream":"stderr","time":"2024-11-22T11:37:23.428114355Z"}
{"log":"/usr/local/lib/ruby/3.2.0/bundler/rubygems_gem_installer.rb:115:in `rescue in\n","stream":"stderr","time":"2024-11-22T11:37:23.428120522Z"}
{"log":"strict_rm_rf'\n","stream":"stderr","time":"2024-11-22T11:37:23.428126874Z"}
{"log":"/usr/local/lib/ruby/3.2.0/bundler/rubygems_gem_installer.rb:110:in\n","stream":"stderr","time":"2024-11-22T11:37:23.428133072Z"}
{"log":"`strict_rm_rf'\n","stream":"stderr","time":"2024-11-22T11:37:23.428139386Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/rubygems_gem_installer.rb:19:in `install'\n","stream":"stderr","time":"2024-11-22T11:37:23.428145446Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/source/rubygems.rb:202:in `install'\n","stream":"stderr","time":"2024-11-22T11:37:23.428151651Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/installer/gem_installer.rb:54:in `install'\n","stream":"stderr","time":"2024-11-22T11:37:23.428157944Z"}
{"log":"/usr/local/lib/ruby/3.2.0/bundler/installer/gem_installer.rb:16:in\n","stream":"stderr","time":"2024-11-22T11:37:23.428164535Z"}
{"log":"`install_from_spec'\n","stream":"stderr","time":"2024-11-22T11:37:23.428170814Z"}
{"log":"/usr/local/lib/ruby/3.2.0/bundler/installer/parallel_installer.rb:156:in\n","stream":"stderr","time":"2024-11-22T11:37:23.428177224Z"}
{"log":"`do_install'\n","stream":"stderr","time":"2024-11-22T11:37:23.428183678Z"}
{"log":"/usr/local/lib/ruby/3.2.0/bundler/installer/parallel_installer.rb:147:in\n","stream":"stderr","time":"2024-11-22T11:37:23.428191157Z"}
{"log":"`block in worker_pool'\n","stream":"stderr","time":"2024-11-22T11:37:23.428198019Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/worker.rb:62:in `apply_func'\n","stream":"stderr","time":"2024-11-22T11:37:23.428204277Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/worker.rb:57:in `block in process_queue'\n","stream":"stderr","time":"2024-11-22T11:37:23.428210508Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/worker.rb:54:in `loop'\n","stream":"stderr","time":"2024-11-22T11:37:23.428216947Z"}
{"log":"  /usr/local/lib/ruby/3.2.0/bundler/worker.rb:54:in `process_queue'\n","stream":"stderr","time":"2024-11-22T11:37:23.428223064Z"}
{"log":"/usr/local/lib/ruby/3.2.0/bundler/worker.rb:90:in `block (2 levels) in\n","stream":"stderr","time":"2024-11-22T11:37:23.428229373Z"}
{"log":"create_threads'\n","stream":"stderr","time":"2024-11-22T11:37:23.428235665Z"}
{"log":"\n","stream":"stderr","time":"2024-11-22T11:37:23.428241787Z"}
{"log":"An error occurred while installing racc (1.7.3), and Bundler cannot continue.\n","stream":"stderr","time":"2024-11-22T11:37:23.428247828Z"}
{"log":"\n","stream":"stderr","time":"2024-11-22T11:37:23.428254116Z"}
{"log":"In Gemfile:\n","stream":"stderr","time":"2024-11-22T11:37:23.428260318Z"}
{"log":"  rails was resolved to 6.1.7.7, which depends on\n","stream":"stderr","time":"2024-11-22T11:37:23.428266618Z"}
{"log":"    actioncable was resolved to 6.1.7.7, which depends on\n","stream":"stderr","time":"2024-11-22T11:37:23.428272943Z"}
{"log":"      actionpack was resolved to 6.1.7.7, which depends on\n","stream":"stderr","time":"2024-11-22T11:37:23.428279263Z"}
{"log":"        actionview was resolved to 6.1.7.7, which depends on\n","stream":"stderr","time":"2024-11-22T11:37:23.428285619Z"}
{"log":"          rails-dom-testing was resolved to 2.2.0, which depends on\n","stream":"stderr","time":"2024-11-22T11:37:23.428292019Z"}
{"log":"            nokogiri was resolved to 1.15.6, which depends on\n","stream":"stderr","time":"2024-11-22T11:37:23.428298327Z"}
{"log":"              racc\n","stream":"stderr","time":"2024-11-22T11:37:23.428304641Z"}