Artifacts broken after upgrading to 11.5.0
Jobs that have artifact dependency are completely broken due to a date mismatch and Gitlab not being able to find artifacts in the right path.
after investigating in the logs I found the following error:
Started GET "/PlayGround/dispatch/-/jobs/94398/trace.json?state=eyJvZmZzZXQiOjE0NTY3LCJuX29wZW5fdGFncyI6MCwiZmdfY29sb3IiOm51bGwsImJnX2NvbG9yIjpudWxsLCJzdHlsZV9tYXNrIjowfQ%3D%3D" for 10.28.10.211 at 2018-11-27 13:50:27 -0600
Processing by Projects::JobsController#trace as JSON
Parameters: {"state"=>"eyJvZmZzZXQiOjE0NTY3LCJuX29wZW5fdGFncyI6MCwiZmdfY29sb3IiOm51bGwsImJnX2NvbG9yIjpudWxsLCJzdHlsZV9tYXNrIjowfQ==", "namespace_id"=>"PlayGround", "project_id"=>"dispatch", "id"=>"94398"}
Completed 500 Internal Server Error in 46ms (ActiveRecord: 7.6ms)
Errno::ENOENT (No such file or directory @ rb_sysopen - /home/git/data/shared/artifacts/0f/41/0f4121d0ef1df4c86854c7ebb47ae1c93de8aec8f944035eeaa6495dd71a0678/2018_11_28/94398/143992/job.log):
app/uploaders/gitlab_uploader.rb:87:in `initialize'
app/uploaders/gitlab_uploader.rb:87:in `open'
app/uploaders/gitlab_uploader.rb:87:in `open'
app/models/ci/job_artifact.rb:76:in `open'
lib/gitlab/ci/trace.rb:70:in `block in read'
lib/gitlab/ci/trace/stream.rb:20:in `initialize'
lib/gitlab/ci/trace.rb:68:in `new'
lib/gitlab/ci/trace.rb:68:in `read'
app/controllers/projects/jobs_controller.rb:73:in `trace'
lib/gitlab/i18n.rb:55:in `with_locale'
lib/gitlab/i18n.rb:61:in `with_user_locale'
app/controllers/application_controller.rb:426:in `set_locale'
lib/gitlab/middleware/multipart.rb:101:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
lib/gitlab/middleware/go.rb:17:in `call'
lib/gitlab/etag_caching/middleware.rb:11:in `call'
lib/gitlab/middleware/read_only/controller.rb:38:in `call'
lib/gitlab/middleware/read_only.rb:16:in `call'
lib/gitlab/middleware/basic_health_check.rb:25:in `call'
lib/gitlab/request_context.rb:20:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
lib/gitlab/middleware/release_env.rb:10:in `call'
So today is 2018_11_27
(at time of writing) but Gitlab is looking in 2018_11_28
. Dont know how to fix this, it was working just before the upgrade.
some details im running Gitlab inside Docker containers using sameersbn/docker-gitlab, and yes im sharing the /etc/localtime inside the container so the container has the same date as the host
some other details I was updating from 11.0.1 to 11.5.0
Edited by 🤖 GitLab Bot 🤖