[DRE-maint] Bug#819907: gitlab: builds fails, /usr/share/gitlab/builds is not writeable

Libor Klepáč libor.klepac at bcom.cz
Sun Apr 3 18:50:40 UTC 2016


Package: gitlab
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,
builds seems to fail, because it has no dir to write to

Errno::EACCES (Permission denied @ dir_s_mkdir - /usr/share/gitlab/builds):
  /usr/lib/ruby/2.3.0/fileutils.rb:253:in `mkdir'
  /usr/lib/ruby/2.3.0/fileutils.rb:253:in `fu_mkdir'
  /usr/lib/ruby/2.3.0/fileutils.rb:227:in `block (2 levels) in mkdir_p'
  /usr/lib/ruby/2.3.0/fileutils.rb:225:in `reverse_each'
  /usr/lib/ruby/2.3.0/fileutils.rb:225:in `block in mkdir_p'
  /usr/lib/ruby/2.3.0/fileutils.rb:211:in `each'
  /usr/lib/ruby/2.3.0/fileutils.rb:211:in `mkdir_p'
  /usr/share/gitlab/app/models/ci/build.rb:229:in `trace='

etc...

Here is (untested) patch to build system, to create /var/lib/gitlab/builds and create symlink to /usr/share/gitlab/builds

Libor

- -- System Information:
Debian Release: stretch/sid
  APT prefers experimental
  APT policy: (700, 'experimental'), (700, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-rc7-amd64 (SMP w/4 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJXAWX+AAoJEPDvjG7Cn0eOUpEQAJeqzWih80/WgbZvVkfSFG3W
+7eYJQth/M7vA3tcAGd0mr1Uh8yETILltyW3jB5BoDs0xenHI+WbiL6gfXU+U2aW
MDm9+QjPOFJrq/aq9nea5DYxcQkjdEuiyoZU8Q1EJM+iDfqGo1JUtxpXIthBIKxA
rg4aH382btXc9xlnOZPijtWi2Ba84O7Lj6gpXPg6ZntCXkLpos3KUmXMVM0wQOJB
VNgHf2Eue8Ldp2UC9xjtoHTSxHHg4j/u5ZkqPfvQhcS76dpj9Odal5fKiKMrLdtJ
uzS8mmRlNoNIu0xOMmQrTihJO15TPcLQSHdCaGQ1lavR8XGiFRUbv+mafvWfTBqZ
tVmAy3veFRp6c6CP60AroTY/qTDp6o2GCOvNkNskXGlJsu0TyNlKlb4AvT/OsnLI
5ZabfPIScSLA25RZ72VTr5896ghm0ndKd7BwQqvCYfLXj8C0Ea22pXmwKXKAHNpD
qfqVP/na81dwmCnWPO3IBjgCxUaTxIx9KA6Pjt6Z1Ga3ti4KnuYsQ/SRRa6+KEK0
O7ea/kXc2iSh1J2pjjX+12ZVuvhWDU1l3eVub53ZkznBGnRgxcfNnSTvleLd3xET
6LjbA8uj9mKLvPi7Cf0W1B9yIHr6KlEZnLsMVuVVGW8YS7x6pXI/kBCubGVIZwmy
WWXR6AWTwI1AdI1t4hrA
=qPhr
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: builds.patch
Type: text/x-diff
Size: 1161 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20160403/0c057c53/attachment.patch>


More information about the Pkg-ruby-extras-maintainers mailing list