•  
      request #13271 Can't forge upgrade
    Infos
    #13271
    Maxim (maxim.b)
    2019-05-03 09:48
    2019-04-16 14:47
    14143
    Details
    Can't forge upgrade
    I'm trying to migrate a Tuleap version 9.8 from one PC with CentOS 6 on a test PC with CentOS 7.
    At first, I have installed a new version of Tuleap 11.0 on the test PC, then I replaced the Database and system folders from the old Tuleap.
    After that, the httpd-service and forge upgrade command does not want to start.
    The text of the error show below.

    1) When I try to run this command:
    "/usr/lib/forgeupgrade/bin/forgeupgrade --config=/etc/tuleap/forgeupgrade/config.ini update",

    I have an error:

    PHP Fatal error: Uncaught System_Command_CommandException: Command execution failure: /usr/bin/systemctl 'reload' 'httpd' (return value: 1):
    Job for httpd.service invalid. in /usr/share/tuleap/src/common/System/Command.class.php:37
    Stack trace:
    #0 /usr/share/tuleap/src/common/System/ServiceControl.php(58): System_Command->exec('/usr/bin/system...')
    #1 /usr/share/tuleap/src/common/System/ApacheServiceControl.php(49): Tuleap\System\ServiceControl->systemctl('httpd', 'reload')
    #2 /usr/share/tuleap/src/common/svn/ApacheConfGenerator.php(59): Tuleap\System\ApacheServiceControl->reload()
    #3 /usr/share/tuleap/src/utils/svn/force_refresh_codendi_svnroot.php(26): Tuleap\Svn\ApacheConfGenerator->generate()
    #4 {main}
    thrown in /usr/share/tuleap/src/common/System/Command.class.php on line 37
    ERROR - An error occurred while updating the SVNRoot file to take into account changes in SVN authentication mode.
    ______________________________
    2) When I try to run this command:
    "service httpd start",

    I have an error:

    Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
    ______________________________
    3) When I try to run this command:
    "systemctl status httpd.service",

    I have an error:
    ● httpd.service - The Apache HTTP Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Вт 2019-04-16 16:25:53 +04; 8min ago
    Docs: man:httpd(8)
    man:apachectl(8)
    Process: 31480 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
    Process: 31478 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
    Main PID: 31478 (code=exited, status=1/FAILURE)

    апр 16 16:25:53 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
    апр 16 16:25:53 localhost.localdomain httpd[31478]: [Tue Apr 16 16:25:53.752266 2019] [so:warn] [pid 31478] AH01574: module perl_module is already loaded, skipping
    апр 16 16:25:53 localhost.localdomain httpd[31478]: AH00526: Syntax error on line 5 of /etc/httpd/conf.d/tuleap-svnroot.conf:
    апр 16 16:25:53 localhost.localdomain httpd[31478]: Can't locate Apache/Tuleap.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 2) line 2.\n
    апр 16 16:25:53 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
    апр 16 16:25:53 localhost.localdomain kill[31480]: kill: cannot find process ""
    апр 16 16:25:53 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
    апр 16 16:25:53 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
    апр 16 16:25:53 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
    апр 16 16:25:53 localhost.localdomain systemd[1]: httpd.service failed.
    ________________
    Please help
    Installation process
    11.0
    EL7 (CentOS|RHEL)
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2019-05-03
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2019-05-03 09:48
    I'm not sure what you mean by "there is no results". You need to, in the Apache configuration, to load the Perl module before loading the tuleap-svnroot.con file. Usually this means the configuration file /etc/httpd/conf.d/perl.conf needs to be included in the main Apache configuration before the tuleap-svnroot.conf file.

    It seems the situation you are in is due to some kind of migration, I'm going to close the request for now.

    • Status changed from Waiting for information to Closed
    • Close date set to 2019-05-03
    User avatar
    Maxim (maxim.b)2019-04-19 09:32
    I tried running Apache outside of the forgeupgrade procedure too, there is no results.
    User avatar
    Maxim (maxim.b)2019-04-17 15:14
    Yes, probably there are some problems with Apache.
    Maybe I will send here the contents of some .conf or .log files or try to run some other commands? Thanks
    User avatar
    Thomas Gerbet (tgerbet)2019-04-17 10:00
    Hello,

    Are you able to restart/reload Apache outside of the forgeupgrade procedure?

    From the stack trace it seems that there is an issue with the Apache configuration. The Perl module is not loaded when it tries to process the tuleap-svnroot.conf file.

    • Status changed from New to Waiting for information