Skip to content

Gitlab unable to mirror repository /tmp is noexec

Hey Guys,

I am having issues with repository mirror from another Gitlab EE instance. The error is due to /tmp is in nonexec mode.

I have been looking for a way to change the /tmp path to a path from where Gitlab can execute. But I haven't found a way.

Is there anything I can do to make it work without making /tmp exec, its due to security restrictions.

Parameters: {"namespace_id"=>"ISDLinux", "project_id"=>"rpmpackages-mirror"}
Mirror job scheduled for ISDLinux/rpmpackages-mirror with job ID 36212a2a892ce9b381bef9e6.
Mirror update for ISDLinux/rpmpackages-mirror started. Waiting duration: 0
Fetching remote upstream for repository /var/opt/gitlab/git-data/repositories/ISDLinux/rpmpackages-mirror.git.
Fetching remote upstream for repository /var/opt/gitlab/git-data/repositories/ISDLinux/rpmpackages-mirror.git failed.
Mirror update for ISDLinux/rpmpackages-mirror failed with the following message: fatal: cannot exec '/tmp/gitlab-shell-ssh-wrapper20180416-879-liy9v6': Permission denied
fatal: unable to fork