Want to subscribe to topics you're interested in?
Become a Member

Upgrade Nginx wp_uninstall and nginx not start

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Max, Nov 24, 2018.

  1. Max

    Max Member

    72
    4
    8
    Feb 17, 2018
    Ratings:
    +7
    Local Time:
    8:48 AM

    • Hello
      i remove a subdomain with wp_uninstall script

      but after uninstall a subdomain the server not start anymore.



      Code:
      [17:50                                                                                                                                                                                                           
      [17:51][[email protected] tools]# ./wp_uninstall_app.rvlove.co.sh                                                                                                                                                                                                         
      -------------------------------------------------------------------------                                                                                                                                                                                                     
      Do you want to uninstall/delete WP install for app.rvlove.co                                                                                                                                                                                                                   
      This will delete all data from /home/nginx/domains/app.rvlove.co                                                                                                                                                                                                               
      including any non-wordpress data installed at /home/nginx/domains/app.rvlove.co                                                                                                                                                                                               
      This script will NOT delete the database, you will have to manually remove the                                                                                                                                                                                                 
      database named: wp2450328867db_12615                                                                                                                                                                                                                                           
      Please backup your MySQL database called wp2450328867db_12615 before deleting                                                                                                                                                                                                 
      -------------------------------------------------------------------------
      Uninstall WP Install For app.rvlove.co [y/n]: y
      
      Restarting nginx (via systemctl):                          [  OK  ]
      [17:51][[email protected] tools]# ls
      acme.sh           phpmyadmin_uninstall.sh                        wp_uninstall_rumtreiberin.com.sh  wp_updater_icoore.com.sh.backup-280718-051303                     wp_updater_rumtreiberin.com.sh                       wp_updater_test.com.sh.backup-280718-051303
      bash-crons        phpmyadmin_update.sh                           wp_uninstall_rvlove.co.sh         wp_updater_map.rvlove.co.sh                                       wp_updater_rumtreiberin.com.sh.backup-280718-051303  wp_updater_womojunkie.com.sh
      ex_stats_print.c  wp_uninstall_app.rvlove.co.sh                  wp_uninstall_test.com.sh          wp_updater_maps.rvlove.co.sh.backup-280718-051303                 wp_updater_rvlove.co.sh                              wp_updater_womojunkie.com.sh.backup-280718-051303
      geoip.sh          wp_uninstall_icoore.com.sh                     wp_uninstall_womojunkie.com.sh    wp_updater_meinsardinenurlaub.icoore.com.sh                       wp_updater_rvlove.co.sh.backup-280718-051303
      optimise-images   wp_uninstall_meinsardinenurlaub.icoore.com.sh  wp_updater_icoore.com.sh          wp_updater_meinsardinenurlaub.icoore.com.sh.backup-280718-051303  wp_updater_test.com.sh
      [17:51][[email protected] tools]# ./wp_uninstall_test.com.sh
      -------------------------------------------------------------------------
      Do you want to uninstall/delete WP install for test.com
      This will delete all data from /home/nginx/domains/test.com
      including any non-wordpress data installed at /home/nginx/domains/test.com
      This script will NOT delete the database, you will have to manually remove the
      database named: wp263713222db_2963
      Please backup your MySQL database called wp263713222db_2963 before deleting
      -------------------------------------------------------------------------
      Uninstall WP Install For test.com [y/n]: y
      
      Restarting nginx (via systemctl):  Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
                                                                 [FAILED]
      [17:52][[email protected] tools]# ngxrestart
      Restarting nginx (via systemctl):  Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
                                                                 [FEHLGESCHLAGEN]
      [17:52][[email protected] tools]# systemctl status nginx.service
      ● nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
         Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
         Active: failed (Result: exit-code) since Fr 2018-11-23 17:52:49 CET; 22s ago
           Docs: man:systemd-sysv-generator(8)
        Process: 32077 ExecStop=/etc/rc.d/init.d/nginx stop (code=exited, status=0/SUCCESS)
        Process: 32220 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
       Main PID: 31801 (code=exited, status=0/SUCCESS)
      
      Nov 23 17:52:49 happy.icoore.com systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
      Nov 23 17:52:49 happy.icoore.com nginx[32220]: Starting nginx: nginx: [emerg] unknown "skip_cache" variable
      Nov 23 17:52:49 happy.icoore.com nginx[32220]: [FAILED]
      Nov 23 17:52:49 happy.icoore.com systemd[1]: nginx.service: control process exited, code=exited status=1
      Nov 23 17:52:49 happy.icoore.com systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
      Nov 23 17:52:49 happy.icoore.com systemd[1]: Unit nginx.service entered failed state.
      Nov 23 17:52:49 happy.icoore.com systemd[1]: nginx.service failed.
      [17:53][[email protected] tools]# reboot
      Connection to 81.4.124.92 closed by remote host.
      Connection to 81.4.124.92 closed.
      
      Code:
      ngxrestart
      Restarting nginx (via systemctl):  Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
                                                                 [FEHLGESCHLAGEN]
      
      Code:
      systemctl status nginx.service
      ● nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
         Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
         Active: failed (Result: exit-code) since Fr 2018-11-23 18:05:36 CET; 11min ago
           Docs: man:systemd-sysv-generator(8)
        Process: 27209 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
      
      Nov 23 18:05:36 happy.icoore.com systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
      Nov 23 18:05:36 happy.icoore.com nginx[27209]: Starting nginx: nginx: [emerg] unknown "skip_cache" variable
      Nov 23 18:05:36 happy.icoore.com nginx[27209]: [FAILED]
      Nov 23 18:05:36 happy.icoore.com systemd[1]: nginx.service: control process exited, code=exited status=1
      Nov 23 18:05:36 happy.icoore.com systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
      Nov 23 18:05:36 happy.icoore.com systemd[1]: Unit nginx.service entered failed state.
      Nov 23 18:05:36 happy.icoore.com systemd[1]: nginx.service failed.
      

    • Code:
      journalctl -xe
      Nov 23 19:48:01 happy.icoore.com systemd[1]: Started Session 177 of user root.
      -- Subject: Unit session-177.scope has finished start-up
      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit session-177.scope has finished starting up.
      --
      -- The start-up result is done.
      Nov 23 19:48:01 happy.icoore.com systemd[1]: Starting Session 177 of user root.
      -- Subject: Unit session-177.scope has begun start-up
      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit session-177.scope has begun starting up.
      Nov 23 19:48:01 happy.icoore.com CROND[6019]: (root) CMD (curl -s -H "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64)" https://rvlove.co/wp-cron.php?doing_wp_cron)
      Nov 23 19:48:01 happy.icoore.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:16:3c:4e:6a:3d:00:24:38:9b:52:00:08:00 SRC=196.25.35.245 DST=81.4.124.134 LEN=68 TOS=0x08 PREC=0x20 TTL=113 ID=25121 DF PROTO=TCP SPT=51597 DPT=8080 WINDOW=8192 RES=0x00 SYN URGP=0
      Nov 23 19:48:02 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=26217 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:04 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=26607 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:05 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:b3:e4:b1:08:00 SRC=185.52.3.226 DST=255.255.255.255 LEN=165 TOS=0x00 PREC=0x00 TTL=64 ID=9962 DF PROTO=UDP SPT=36037 DPT=1900 LEN=145
      Nov 23 19:48:07 happy.icoore.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:16:3c:4e:6a:3d:00:24:38:9b:52:00:08:00 SRC=170.185.111.17 DST=81.4.124.134 LEN=48 TOS=0x08 PREC=0x40 TTL=111 ID=17183 DF PROTO=TCP SPT=26722 DPT=8080 WINDOW=8192 RES=0x00 SYN URGP=0
      Nov 23 19:48:07 happy.icoore.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:16:3c:4e:6a:3d:00:24:38:9b:52:00:08:00 SRC=196.25.35.245 DST=81.4.124.134 LEN=48 TOS=0x08 PREC=0x20 TTL=113 ID=25124 DF PROTO=TCP SPT=51597 DPT=8080 WINDOW=8192 RES=0x00 SYN URGP=0
      Nov 23 19:48:08 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=27240 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:10 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=27589 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:11 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:2e:39:45:08:00 SRC=81.4.122.174 DST=255.255.255.255 LEN=303 TOS=0x00 PREC=0x00 TTL=64 ID=22794 DF PROTO=UDP SPT=17500 DPT=17500 LEN=283
      Nov 23 19:48:14 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=28080 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:16 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=28264 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:18 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=28719 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:19 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:d8:49:be:08:00 SRC=185.52.3.218 DST=255.255.255.255 LEN=172 TOS=0x00 PREC=0x00 TTL=64 ID=30698 DF PROTO=UDP SPT=17500 DPT=17500 LEN=152
      Nov 23 19:48:22 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=29215 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:24 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=29541 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:26 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=29809 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:28 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=30089 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:30 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=30287 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:32 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=30408 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:34 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=30552 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:36 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=30766 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:38 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=31171 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      Nov 23 19:48:39 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:b3:e4:b1:08:00 SRC=185.52.3.226 DST=255.255.255.255 LEN=202 TOS=0x00 PREC=0x00 TTL=64 ID=17278 DF PROTO=UDP SPT=47847 DPT=1900 LEN=182
      Nov 23 19:48:41 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:2e:39:45:08:00 SRC=81.4.122.174 DST=255.255.255.255 LEN=303 TOS=0x00 PREC=0x00 TTL=64 ID=25395 DF PROTO=UDP SPT=17500 DPT=17500 LEN=283
      Nov 23 19:48:42 happy.icoore.com polkitd[516]: Registered Authentication Agent for unix-process:6094:682143 (system bus name :1.391 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8)
      Nov 23 19:48:42 happy.icoore.com systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
      -- 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 23 19:48:42 happy.icoore.com nginx[6100]: Starting nginx: nginx: [emerg] unknown "skip_cache" variable
      Nov 23 19:48:42 happy.icoore.com nginx[6100]: [FAILED]
      Nov 23 19:48:42 happy.icoore.com systemd[1]: nginx.service: control process exited, code=exited status=1
      Nov 23 19:48:42 happy.icoore.com systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
      -- 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 23 19:48:42 happy.icoore.com systemd[1]: Unit nginx.service entered failed state.
      Nov 23 19:48:42 happy.icoore.com systemd[1]: nginx.service failed.
      Nov 23 19:48:42 happy.icoore.com polkitd[516]: Unregistered Authentication Agent for unix-process:6094:682143 (system bus name :1.391, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8) (disconnected from bus)
      Nov 23 19:48:43 happy.icoore.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:16:3c:4e:6a:3d:00:24:38:9b:52:00:08:00 SRC=46.17.101.248 DST=81.4.124.92 LEN=40 TOS=0x00 PREC=0x00 TTL=250 ID=60583 PROTO=TCP SPT=44521 DPT=11111 WINDOW=1024 RES=0x00 SYN URGP=0
      Nov 23 19:48:43 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:57:f2:f9:08:00 SRC=81.4.101.47 DST=255.255.255.255 LEN=202 TOS=0x00 PREC=0x00 TTL=64 ID=9794 DF PROTO=UDP SPT=33604 DPT=1900 LEN=182
      Nov 23 19:48:46 happy.icoore.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3c:1c:9f:72:08:00 SRC=81.4.122.239 DST=255.255.255.255 LEN=98 TOS=0x00 PREC=0x00 TTL=64 ID=31859 DF PROTO=UDP SPT=8008 DPT=8008 LEN=78
      

    • CentOS Version: CentOS 7 64bit ?
    • Nginx Version Installed: 1.15.6
    • PHP Version Installed: 7.2.5
     
    Last edited: Nov 24, 2018
  2. Max

    Max Member

    72
    4
    8
    Feb 17, 2018
    Ratings:
    +7
    Local Time:
    8:48 AM
    conf error in redis?

    Code:
    Starting nginx: nginx: [emerg] unknown "skip_cache" variable
     
  3. eva2000

    eva2000 Administrator Staff Member

    37,231
    8,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,523
    Local Time:
    6:48 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    when you can't restart do a nginx config check via command
    Code (Text):
    nginx -t
    
     
  4. Max

    Max Member

    72
    4
    8
    Feb 17, 2018
    Ratings:
    +7
    Local Time:
    8:48 AM
    had it going again.
    for some reason the # was set there
    #include /usr/local/nginx/conf/wpincludes/rvlove.co/rediscache_rvlove.co.conf;

    i set include /usr/local/nginx/conf/wpincludes/rvlove.co/rediscache_rvlove.co.conf;

    and all works :)
     
    • Informative Informative x 1
  5. Max

    Max Member

    72
    4
    8
    Feb 17, 2018
    Ratings:
    +7
    Local Time:
    8:48 AM
    nginx -t
    nginx: [emerg] unknown "skip_cache" variable
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
     
  6. Max

    Max Member

    72
    4
    8
    Feb 17, 2018
    Ratings:
    +7
    Local Time:
    8:48 AM
    close
     
  7. eva2000

    eva2000 Administrator Staff Member

    37,231
    8,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,523
    Local Time:
    6:48 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Good to hear :)
     
..