•  
      request #11821 Cannot not attach file in Tracker
    Infos
    #11821
    Alexander Ishmuradov (chewits)
    2018-10-05 08:51
    2018-07-12 17:15
    12438
    Details
    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: 10.73.12.147, server: tuleap, request: "POST /plugins/tracker/?aid=4&func=artifact-update HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", 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™ 10.1.99.104

    Trackers
    10.1
    EL7 (CentOS|RHEL)
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2018-10-05
    Attachments
    Empty
    References
    Referencing request #11821
    Referenced by request #11821

    Artifact Tracker v5

    rel #12154 10.6

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2018-10-05 08:51
    Fix integrated in Tuleap 10.5.99.126.

    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2018-10-05
    User avatar
    Thomas Gerbet (tgerbet)2018-07-13 17:34
    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
    Thomas Gerbet (tgerbet)2018-07-12 19:01
    Hello,

    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