•  
      request #10803 Error when restarting Tuleap in docker
    Infos
    #10803
    Martial COUTY (martial.couty)
    2017-11-13 12:19
    2017-11-08 10:54
    11033
    Details
    Error when restarting Tuleap in docker
    The container docker Tuleap starts well the first time.
    At the restart of the container, Tuleap no longer works: issues # 35, # 33 ...

    After several tests, I fixed the problem as follows:

    1) - for Mysql: modification of the my.cnf file located in /data/etc :
    #datadir=/var/lib/mysql
    datadir=/data/lib/mysql
    socket=/var/lib/mysql/mysql.sock
    #socket=/data/lib/mysql/mysql.sock

    Indeed the paths point by default in / var / lib / mysql at the restart of the container: the sources tuleap-bin.000 ***, directory tuleap, ... are not present and the server mysql can not start.
    The default mysql.sock in persistent data /data/lib/mysql/mysql.sock does not seem to work for docking, or replacing the socket in /var/lib/mysql/mysql.sock
    ---------------------------------------------------------------------------------------------
    2) Once the mysql problem is fixed, it's apache's turn.
    Similar concern, the system expects confs at /etc/httpd/conf and /etc/httpd/conf.d, by default these reboot directories no longer exist.

    The "wrongdoers": boot-fixpath.sh
    [-d /etc/httpd/conf] && rm -rf /etc/httpd/conf
    [-d /etc/httpd/conf.d] && rm -rf /etc/httpd/conf.d

    with errors on symbolic links already created
    cd /etc/pki/tls/private
    ln -s /data/etc/pki/tls/private/localhost.key localhost.key
    ...
    => it would have been nice to test the existence of these symbolic links to avoid errors

    The instructions following these errors are therefore not:
    cd /etc/httpd
    ln -s /data/etc/httpd/conf conf
    ln -s /data/etc/httpd/conf.d conf.d

    By moving the instruction before the error, the tuleap container restarts and everything works.

    Based on my analysis, if you could incorporate permanent fixes into your future shipments on the docker hub, this would allow everyone to test and use Tuleap stably with docker.


    Thank you Best regards
    Docker images
    9.13
    CentOS 6
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2017-11-13
    Attachments
    Empty
    References
    Referencing request #10803
    Referenced by request #10803

    Artifact Tracker v5

    rel #10588 9.15

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2017-11-13 12:19
    Updated Docker image is building, let's close this.

    • Status changed from Under implementation to Closed
    • Close date set to 2017-11-13
    User avatar
    Thomas Gerbet (tgerbet)2017-11-13 08:55
    Ok so the fix made into gerrit #9896 (and integrated into Tuleap 9.14.99.5) should fix the issue once the Docker image is updated.

    • Status changed from New to Under implementation
    • Connected artifacts
    User avatar
    The initial problem was to restart mysql then apache.
    The maturity of problem identification is not in my original publication.

    The aliases localhost.crt and localhost.key already exist, which blocks the following instructions in boot-fixpath.sh: for mysql and apache.
    If you test this alias creation, this solves all the problems.
    User avatar

    While I do confirm the issues related to apache on restart, I don't understand why you needed to do the modifications for mysql