Skip to content

Bootsnap failing in production console

Users attempting to run gitlab-rails console on production (e.g. git06) get an error:

The relevant strace shows this:

open("tmp/cache/bootsnap-load-path-cache", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("tmp/cache", 0777)                = -1 ENOENT (No such file or directory)
stat("tmp/cache", 0x7ffc5a99ff40)       = -1 ENOENT (No such file or directory)
mkdir("tmp", 0777)                      = -1 EEXIST (File exists)
stat("tmp", 0x7ffc5a99f7f0)             = -1 ENOENT (No such file or directory)
write(2, "File exists @ dir_s_mkdir - tmp", 31File exists @ dir_s_mkdir - tmp) = 31

/cc: @rspeicher