Get the most out of your Centmin Mod LEMP stack
Become a Member

Nginx Start problem cause /usr/bin/pkttyagent

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by R0rke, Nov 14, 2017.

  1. R0rke

    R0rke Member

    92
    16
    8
    Jun 2, 2016
    Iran
    Ratings:
    +24
    Local Time:
    1:10 AM
    1.11.1
    10.1
    • CentOS Version: CentOS Linux release 7.4.1708 (Core)
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.13.6
    • PHP Version Installed: 5.6.32
    • When was last time updated Centmin Mod code base ? : its latest code
    • Persistent Config:
      cat: /etc/centminmod/custom_config.inc: No such file or directory
    PHP:
    Restarting nginx (via systemctl):  Job for nginx.service failed because the control process exited with error codeSee "systemctl status nginx.service" and "journalctl -xe" for details.
    Nov 14 12:44:39 SomEhOst.co mysqld[11983]: 2017-11-14 12:44:39 140542759934208 [NoteInnoDB:  Percona XtraDB (http://www.percona.com) 5.6.36-82.2 sta
    Nov 14 12:44:39 SomEhOst.co mysqld[11983]: 2017-11-14 12:44:39 140541836650240 [NoteInnoDBDumping buffer pool(snot yet started
    Nov 14 12
    :44:39 SomEhOst.co mysqld[11983]: 2017-11-14 12:44:39 140542759934208 [NotePlugin 'FEEDBACK' is disabled.
    Nov 14 12:44:39 SomEhOst.co mysqld[11983]: 2017-11-14 12:44:39 140542759934208 [NoteServer socket created on IP'::'.
    Nov 14 12:44:39 SomEhOst.co mysqld[11983]: 2017-11-14 12:44:39 140542759934208 [Note] /usr/sbin/mysqldready for connections.
    Nov 14 12:44:39 SomEhOst.co mysqld[11983]: Version'10.1.28-MariaDB'  socket'/var/lib/mysql/mysql.sock'  port3306  MariaDB Server
    Nov 14 12
    :44:39 SomEhOst.co systemd[1]: Started MariaDB database server.
    -- 
    SubjectUnit mariadb.service has finished start-up
    -- Defined-Bysystemd
    -- Supporthttp://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- 
    Unit mariadb.service has finished starting up.
    --
    -- 
    The start-up result is done.
    Nov 14 12:44:39 SomEhOst.co polkitd[630]: Unregistered Authentication Agent for unix-process:11732:10717 (system bus name :1.32object path /org/free
    Nov 14 12
    :44:43 SomEhOst.co polkitd[630]: Registered Authentication Agent for unix-process:12022:11475 (system bus name :1.33 [/usr/bin/pkttyagent --n
    Nov 14 12
    :44:43 SomEhOst.co systemd[1]: Starting SYSVNginx is an HTTP(SserverHTTP(Sreverse proxy and IMAP/POP3 proxy server...
    -- 
    SubjectUnit nginx.service has begun start-up
    -- Defined-Bysystemd
    -- Supporthttp://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- 
    Unit nginx.service has begun starting up.
    Nov 14 12:44:43 SomEhOst.co systemd[1]: nginx.servicecontrol process exitedcode=exited status=5
    Nov 14 12
    :44:43 SomEhOst.co systemd[1]: Failed to start SYSVNginx is an HTTP(SserverHTTP(Sreverse proxy and IMAP/POP3 proxy server.
    -- 
    SubjectUnit nginx.service has failed
    -- Defined-Bysystemd
    -- Supporthttp://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- 
    Unit nginx.service has failed.
    --
    -- 
    The result is failed.
    Nov 14 12:44:43 SomEhOst.co systemd[1]: Unit nginx.service entered failed state.
    Nov 14 12:44:43 SomEhOst.co systemd[1]: nginx.service failed.
    Nov 14 12:44:43 SomEhOst.co polkitd[630]: Unregistered Authentication Agent for unix-process:12022:11475 (system bus name :1.33object path /org/free
    ~
    ~
    Nginx not startin cause : polkitd[630]: Registered Authentication Agent for unix-process:12022:11475 (system bus name :1.33 [/usr/bin/pkttyagent --n

    and

    Nov 14 12:44:39 SomEhOst.co polkitd[630]: Unregistered Authentication Agent for unix-process:11732:10717 (system bus name :1.32, object path /org/free

    have no idea why its happening just installed centmin mod a hour ago via git
     
    Last edited: Nov 14, 2017
  2. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:10 PM
    Nginx 1.13.x
    MariaDB 5.5
    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.2 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Example list /root/centminlogs files in date ascending order and grep for install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    

    example output returns install log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log. Clear your SSH client window/buffer so only output is the contents of the file
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents. But makes sure it's sanitised version of the contents of the initial install log as outlined at How to troubleshoot Centmin Mod initial install issues
     
    • Informative Informative x 1
  3. R0rke

    R0rke Member

    92
    16
    8
    Jun 2, 2016
    Iran
    Ratings:
    +24
    Local Time:
    1:10 AM
    1.11.1
    10.1
    updated post #1
    and send u a centminmod_1.2.3-eva2000.09.008_141117-054145_install.log as private message because pastebin is sucks . its down for heavy traffic
     
    Last edited: Nov 14, 2017
  4. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:10 PM
    Nginx 1.13.x
    MariaDB 5.5
    were there recent yum updates ? check output for
    Code (Text):
    yum history list
    

    could be centos 7.4 related updates which would require a server reboot
     
    • Agree Agree x 1
  5. R0rke

    R0rke Member

    92
    16
    8
    Jun 2, 2016
    Iran
    Ratings:
    +24
    Local Time:
    1:10 AM
    1.11.1
    10.1
    Code:
    Loaded plugins: fastestmirror, priorities, versionlock
    ID     | Command line             | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
       124 | update --disableplugin=p | 2017-11-14 12:41 | Update         |    7 EE
       123 | -y -q install haveged rn | 2017-11-14 06:12 | Install        |    2
       122 | -q -y install pure-ftpd  | 2017-11-14 06:12 | Install        |    3
       121 | -y install yum-plugin-ve | 2017-11-14 06:11 | Install        |    1
       120 | -y install perl-LWP-Prot | 2017-11-14 06:11 | Install        |    2
       119 | -q -y install libmemcach | 2017-11-14 06:10 | Install        |    2
       118 | -q -y install postfix-pe | 2017-11-14 06:09 | Install        |    4
       117 | -y install mailx         | 2017-11-14 06:09 | Install        |    1
       116 | -q -y install libicu lib | 2017-11-14 06:02 | Install        |    2
       115 | -q -y install fio --disa | 2017-11-14 06:02 | Install        |    9
       114 | -y install mytop         | 2017-11-14 06:01 | Install        |    1
       113 | -y install net-snmp --di | 2017-11-14 06:01 | Install        |    1
       112 | -y install postfix --dis | 2017-11-14 06:01 | Install        |    1
       111 | -q -y install perl-DBD-M | 2017-11-14 06:01 | Install        |    1
       110 | -y install MariaDB-clien | 2017-11-14 06:00 | Install        |    8 EE
       109 | -y remove mariadb-libs   | 2017-11-14 06:00 | Erase          |    5 EE
       108 | -y install libuuid-devel | 2017-11-14 06:00 | Install        |    1
       107 | -y install ntp           | 2017-11-14 05:57 | Install        |    3
       106 | -q -y remove axel        | 2017-11-14 05:55 | Erase          |    1
       105 | -y install ImageMagick6  | 2017-11-14 05:55 | Install        |   24
    history list
    i do reboot , but nothin
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:10 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Funny Funny x 1
  7. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:10 PM
    Nginx 1.13.x
    MariaDB 5.5
    if nginx failed to restart run config test to see if nginx reports the issue
    Code (Text):
    nginx -t
    
     
    • Agree Agree x 1
  8. R0rke

    R0rke Member

    92
    16
    8
    Jun 2, 2016
    Iran
    Ratings:
    +24
    Local Time:
    1:10 AM
    1.11.1
    10.1
    yeah its fresh install i do reboot -h now again :
    when i run service nginx restart :

    Code:
     journalctl -xe
    --
    -- Unit session-2.scope has begun starting up.
    Nov 14 14:27:36 localhost.co sshd[1661]: pam_unix(sshd:session): session opened for user root by (uid=
    Nov 14 14:27:40 localhost.co postfix/pickup[1448]: EEA10A9B0F: uid=0 from=<root>
    Nov 14 14:27:40 localhost.co postfix/cleanup[1723]: EEA10A9B0F: message-id=<20171114105740.EEA10A9B0F@
    Nov 14 14:27:40 localhost.co postfix/qmgr[1449]: EEA10A9B0F: from=<root@localhost.co>, size=513, nrcpt=1
    Nov 14 14:27:40 localhost.co postfix/pickup[1448]: F2B9714310A: uid=0 from=<root>
    Nov 14 14:27:40 localhost.co postfix/cleanup[1723]: F2B9714310A: message-id=<20171114105740.F2B9714310
    Nov 14 14:27:40 localhost.co postfix/qmgr[1449]: F2B9714310A: from=<root@localhost.co>, size=515, nrcpt=
    Nov 14 14:27:41 localhost.co postfix/smtp[1725]: Trusted TLS connection established to mta5.am0.yahood
    Nov 14 14:27:41 localhost.co postfix/smtp[1727]: Trusted TLS connection established to mta5.am0.yahood
    Nov 14 14:27:42 localhost.co postfix/smtp[1727]: F2B9714310A: to=<gamer.pa@yahoo.com>, relay=mta5.am0.
    Nov 14 14:27:42 localhost.co postfix/qmgr[1449]: F2B9714310A: removed
    Nov 14 14:27:42 localhost.co postfix/smtp[1725]: EEA10A9B0F: to=<gamer.pa@yahoo.com>, relay=mta5.am0.y
    Nov 14 14:27:42 localhost.co postfix/qmgr[1449]: EEA10A9B0F: removed
    Nov 14 14:27:46 localhost.co polkitd[648]: Registered Authentication Agent for unix-process:1741:4768
    Nov 14 14:27:46 localhost.co systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse pr
    -- Subject: Unit nginx.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit nginx.service has begun starting up.
    Nov 14 14:27:46 localhost.co systemd[1]: nginx.service: control process exited, code=exited status=5
    Nov 14 14:27:46 localhost.co systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) rev
    -- Subject: Unit nginx.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit nginx.service has failed.
    --
    -- The result is failed.
    Nov 14 14:27:46 localhost.co systemd[1]: Unit nginx.service entered failed state.
    Nov 14 14:27:46 localhost.co systemd[1]: nginx.service failed.
    Nov 14 14:27:46 localhost.co polkitd[648]: Unregistered Authentication Agent for unix-process:1741:476
    lines 2499-2532/2532 (END)
    i do but nginx -t :
    -bash: nginx: command not found
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:10 PM
    Nginx 1.13.x
    MariaDB 5.5
    k found the problem as you're not using betainstaller.sh but using betainstaller-latest.sh ? for installing 123.09beta01 ? if using betainstaller-latest.sh then ngx_pagespeed is enabled and you hit ngx_pagespeed 1.13.35.1 beta bug
    Code (Text):
    adding module in ../ngx_pagespeed-1.13.35.1-beta
    mod_pagespeed_dir=../ngx_pagespeed-1.13.35.1-beta/psol/include
    build_from_source=false
    checking for psol ... not found
    ./configure: error: module ngx_pagespeed requires the pagespeed optimization library.
    Look in /svr-setup/nginx-1.13.6/objs/autoconf.err for more details.
    

    as requires new libuuid-devel yum package and my work around fix was for nginx upgrades it seems as initial nginx installs the libuuid-devel package install came later in the routine so nginx fails to install

    updated 123.09beta01 to move libuuid-devel yum to much earlier in initial install routine
     
    • Like Like x 1
  10. R0rke

    R0rke Member

    92
    16
    8
    Jun 2, 2016
    Iran
    Ratings:
    +24
    Local Time:
    1:10 AM
    1.11.1
    10.1
    aha i remeber also i got error last time i installed centminmod Option enabled :
    NGINX_PAGESPEEDGITMASTER='n(changed to y)' # Install ngx_pagespeed from official github master instead
    i got some error when installing Nginx but i do OS reload and fresh install Centminmod till this problem happened .

    fix up initial install ngx_pagespeed
    centminmod committed 26 minutes ago
    - missing libuuid-devel yum package

    fast update

    giphy.gif
     
    Last edited: Nov 14, 2017