request #11821 Cannot not attach file in Tracker
    Alexander Ishmuradov (chewits)
    2018-10-05 08:51
    2018-07-12 17:15
    Cannot not attach file in Tracker

    Trying to attach a file (image) to an artifact in Tracker I've got an error:

        2018/07/11 13:16:04 [error] 3553#0: *1299 FastCGI sent in stderr: "PHP message: PHP Warning:  mkdir(): Permission denied in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php on line 955
        PHP message: PHP Warning:  chown(): Operation not permitted in /usr/share/tuleap/src/common/backend/Backend.class.php on line 185
        PHP message: PHP Warning:  chgrp(): Operation not permitted in /usr/share/tuleap/src/common/backend/Backend.class.php on line 222
        PHP message: PHP Warning:  move_uploaded_file(/var/lib/tuleap/tracker/447/105): failed to open stream: No such file or directory in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php on line 966
        PHP message: PHP Warning:  move_uploaded_file(): Unable to move '/tmp/phpinBdbP' to '/var/lib/tuleap/tracker/447/105' in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php on line 966" while reading response header from upstream, client:, server: tuleap, request: "POST /plugins/tracker/?aid=4&func=artifact-update HTTP/2.0", upstream: "fastcgi://", host: "tuleap", referrer: "https://tuleap/plugins/tracker/?aid=4"

    The artifact is updated without visible errors in GUI, but the changeset is empty, the image is not displayed.  

    I followed the full installation process when set up Tuleap (no Docker).  
    SELinux is disabled as suggested in this guide.

    CentOS 7, Tuleap™

    CentOS 7

    List of items referenced by or referencing this item.

    Artifact Tracker v5


    • User avatar
      Fix integrated in Tuleap

      • Status changed from Under review to Closed
      • Connected artifacts
      • Close date set to 2018-10-05
    • User avatar
      • Status changed from Acknowledged to Under review
    • User avatar

      Fix under review in gerrit #12793

      Thanks for the report

    • User avatar
      Executing the following command should fix your issue:
      chown -R codendiadm:codendiadm /var/lib/tuleap/tracker/

      It looks like an issue with setup script or packaging that needs to be fixed.
    • User avatar
      [root@localhost ~]# ls -la /var/lib/tuleap/
      total 20
      drwxr-xr-x   7 codendiadm codendiadm  153 Jul  9 08:51 .
      drwxr-xr-x. 66 root       root       4096 Jun  9 13:22 ..
      -rw-r--r--   1 codendiadm codendiadm   18 Apr 10 20:53 .bash_logout
      -rw-r--r--   1 codendiadm codendiadm  193 Apr 10 20:53 .bash_profile
      -rw-r--r--   1 codendiadm codendiadm  231 Apr 10 20:53 .bashrc
      -rw-rw-r--   1 codendiadm codendiadm   56 Jun  9 11:56 .gitconfig
      drwxr-xr-x   5 root       root         78 Jun  9 11:56 gitolite
      drwxr-----   3 codendiadm codendiadm   19 Jul  9 08:51 .pki
      drwxr-x---   2 codendiadm codendiadm   66 Jun  9 11:56 .ssh
      drwxr-x---   2 codendiadm codendiadm    6 Jun  8 11:41 svn_plugin
      drwxr-xr-x   2 root       root          6 Jun  8 11:41 tracker


    • User avatar

      Can you please share the result of the following command executed on your server?

      ls -la /var/lib/tuleap/

      • Status changed from New to Acknowledged