MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.117.75.53
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /var/softaculous/omeka/../jcow/../wp64/../domainmod/../../log/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //var/softaculous/omeka/../jcow/../wp64/../domainmod/../../log/switch_apache_and_haproxy_ports.log
++ hostname
+ hostname=md-in-35.webhostbox.net
+ slowroll_folder=/etc/slowroll
+ flag_folder=/etc/slowroll/flags
+ main_backup_folder=/etc/slowroll/apache_haproxy_port_switch_backups
+ apache_backup_folder=/etc/slowroll/apache_haproxy_port_switch_backups/apache_backups
+ haproxy_backup_folder=/etc/slowroll/apache_haproxy_port_switch_backups/haproxy_backups
+ firewall_backup_folder=/etc/slowroll/apache_haproxy_port_switch_backups/firewall_backups
+ flag_switch_apache=/etc/slowroll/flags/switch_apache
+ flag_switch_haproxy=/etc/slowroll/flags/switch_haproxy
+ flag_switch_firewall=/etc/slowroll/flags/switch_firewall
+ inform_hipchat_start
+ /usr/bin/curl -d '{"color":"yellow","message":"@Rigved Switching Apache and HAProxy ports on md-in-35.webhostbox.net","notify":false,"message_format":"text"}' -H 'Content-Type: application/json' 'https://eigi.hipchat.com/v2/room/3653520/notification?auth_token=oVHkuZMtJCn5XbE0ejiFyXpPOtguv4XmbdoqMKv3'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0   139      0    149 --:--:-- --:--:-- --:--:--   149
  0     0    0     0    0   139      0    107 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0   139      0    107 --:--:--  0:00:01 --:--:--     0
+ initialise
+ /bin/mkdir -p /etc/slowroll/flags
+ /bin/mkdir -p /etc/slowroll/apache_haproxy_port_switch_backups/apache_backups
+ /bin/mkdir -p /etc/slowroll/apache_haproxy_port_switch_backups/haproxy_backups
+ /bin/mkdir -p /etc/slowroll/apache_haproxy_port_switch_backups/firewall_backups
+ echo bypass_varnish
+ /usr/bin/pkill puppetd
+ /bin/sleep 5
+ /usr/bin/pkill puppetd
+ /usr/bin/puppetstatus --disable 'Stopped for switching HAProxy and Apache ports'
Disabled puppet with reason:
Stopped for switching HAProxy and Apache ports (rigved.r)
+ switch_apache_ports
+ [[ ! -f /etc/slowroll/apache_haproxy_port_switch_backups/apache_backups/cpanel.config.template ]]
+ /bin/cp /var/cpanel/cpanel.config.template /etc/slowroll/apache_haproxy_port_switch_backups/apache_backups/
+ [[ ! -f /etc/slowroll/apache_haproxy_port_switch_backups/apache_backups/cpanel.config ]]
+ /bin/cp /var/cpanel/cpanel.config /etc/slowroll/apache_haproxy_port_switch_backups/apache_backups/
+ [[ ! -f /etc/slowroll/apache_haproxy_port_switch_backups/apache_backups/main.local ]]
+ /bin/cp /var/cpanel/templates/apache2/main.local /etc/slowroll/apache_haproxy_port_switch_backups/apache_backups/
+ [[ ! -f /etc/slowroll/apache_haproxy_port_switch_backups/apache_backups/vhost.local ]]
+ /bin/cp /var/cpanel/templates/apache2/vhost.local /etc/slowroll/apache_haproxy_port_switch_backups/apache_backups/
+ [[ ! -f /etc/slowroll/apache_haproxy_port_switch_backups/apache_backups/httpd.conf ]]
+ /bin/cp /usr/local/apache/conf/httpd.conf /etc/slowroll/apache_haproxy_port_switch_backups/apache_backups/
+ [[ ! -f /etc/slowroll/flags/switch_apache ]]
++ /usr/local/cpanel/cpanel -V
++ cut -d. -f1
+ cpanel_version=62
++ /bin/hostname
++ cut -d- -f1
+ product=md
+ /usr/bin/chattr -i /var/cpanel/cpanel.config.template /var/cpanel/cpanel.config /var/cpanel/templates/apache2/main.local /var/cpanel/templates/apache2/vhost.local /usr/local/apache/conf/httpd.conf
+ [[ 0 -eq 0 ]]
+ /bin/cp /usr/local/scripts/apache_haproxy_port_switch_data/cpanel.config.11.62.md /var/cpanel/cpanel.config.template
+ [[ 0 -eq 0 ]]
+ /bin/sed -i s/:80/:8080/g /var/cpanel/templates/apache2/main.local /var/cpanel/templates/apache2/vhost.local
+ [[ 0 -eq 0 ]]
+ touch /etc/slowroll/flags/switch_apache
+ [[ 0 -eq 0 ]]
+ /usr/local/scripts/cron/check_n_fix_crons/whostmgr_updatetweaksettings.sh
+ [[ 0 -eq 0 ]]
+ /scripts/rebuildhttpdconf
Built /usr/local/apache/conf/httpd.conf OK
+ [[ 0 -eq 0 ]]
+ /usr/sbin/httpd -t
[Tue Sep 26 14:56:58 2017] [warn] module h264_streaming_module is already loaded, skipping
[Tue Sep 26 14:56:58 2017] [warn] module flvx_module is already loaded, skipping
Warning: DocumentRoot [/home/pentaret/public_html/chakravarthishop/upload] does not exist
Warning: DocumentRoot [/home/copysrnp/public_html/cse.copystarexport.com/public] does not exist
Warning: DocumentRoot [/home/entnatin/public_html/public_htm/hthnew] does not exist
Warning: DocumentRoot [/home/skyvabcy/public_html/bloomingminds/public] does not exist
Syntax OK
+ [[ 0 -eq 0 ]]
+ /sbin/service httpd stop
[Tue Sep 26 14:56:59 2017] [warn] module h264_streaming_module is already loaded, skipping
[Tue Sep 26 14:56:59 2017] [warn] module flvx_module is already loaded, skipping
Warning: DocumentRoot [/home/pentaret/public_html/chakravarthishop/upload] does not exist
Warning: DocumentRoot [/home/copysrnp/public_html/cse.copystarexport.com/public] does not exist
Warning: DocumentRoot [/home/entnatin/public_html/public_htm/hthnew] does not exist
Warning: DocumentRoot [/home/skyvabcy/public_html/bloomingminds/public] does not exist
+ /bin/sleep 5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0   164      0     91 --:--:--  0:00:01 --:--:--    91
  0    80    0    80    0   164     36     74 --:--:--  0:00:02 --:--:--     0
  0    80    0    80    0   164     36     74 --:--:--  0:00:02 --:--:--     0
{"event":"success","description":"event successfully queued to the event queue"}+ /usr/bin/pkill lsphp
+ /bin/sleep 5
+ /sbin/service httpd stop
[Tue Sep 26 14:57:10 2017] [warn] module h264_streaming_module is already loaded, skipping
[Tue Sep 26 14:57:10 2017] [warn] module flvx_module is already loaded, skipping
Warning: DocumentRoot [/home/pentaret/public_html/chakravarthishop/upload] does not exist
Warning: DocumentRoot [/home/copysrnp/public_html/cse.copystarexport.com/public] does not exist
Warning: DocumentRoot [/home/entnatin/public_html/public_htm/hthnew] does not exist
Warning: DocumentRoot [/home/skyvabcy/public_html/bloomingminds/public] does not exist
httpd (no pid file) not running
+ /bin/sleep 5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0   164      0    149 --:--:--  0:00:01 --:--:--   149
  0    80    0    80    0   164     56    115 --:--:--  0:00:01 --:--:--     0
{"event":"success","description":"event successfully queued to the event queue"}+ /sbin/service httpd start
[Tue Sep 26 14:57:16 2017] [warn] module h264_streaming_module is already loaded, skipping
[Tue Sep 26 14:57:16 2017] [warn] module flvx_module is already loaded, skipping
Warning: DocumentRoot [/home/pentaret/public_html/chakravarthishop/upload] does not exist
Warning: DocumentRoot [/home/copysrnp/public_html/cse.copystarexport.com/public] does not exist
Warning: DocumentRoot [/home/entnatin/public_html/public_htm/hthnew] does not exist
Warning: DocumentRoot [/home/skyvabcy/public_html/bloomingminds/public] does not exist
+ [[ 0 -ne 0 ]]
+ [[ ! -f /etc/slowroll/flags/switch_apache ]]
+ switch_haproxy_ports
+ [[ ! -f /etc/slowroll/apache_haproxy_port_switch_backups/haproxy_backups/haproxy.cfg ]]
+ /bin/cp /etc/haproxy/haproxy.cfg /etc/slowroll/apache_haproxy_port_switch_backups/haproxy_backups/
+ [[ ! -f /etc/slowroll/flags/switch_haproxy ]]
+ /usr/bin/chattr -i /etc/haproxy/haproxy.cfg
+ [[ 0 -eq 0 ]]
+ /bin/sed -i s/:80/:8080/ /etc/haproxy/haproxy.cfg
+ [[ 0 -eq 0 ]]
+ /bin/sed -i 's/bind :808083/bind :80/' /etc/haproxy/haproxy.cfg
+ [[ 0 -eq 0 ]]
+ /bin/sed -i '/server varnish/ s/:8080/:80/' /etc/haproxy/haproxy.cfg
+ [[ 0 -eq 0 ]]
+ touch /etc/slowroll/flags/switch_haproxy
+ [[ 0 -eq 0 ]]
+ /sbin/service haproxy check
Configuration file is valid
+ [[ 0 -eq 0 ]]
+ /sbin/service haproxy restart
Shutting down haproxy: [  OK  ]
Starting haproxy: [  OK  ]
+ [[ 0 -ne 0 ]]
+ /bin/netstat -pantu
+ /bin/grep ':8083 '
+ /bin/grep -q haproxy
+ [[ 0 -eq 0 ]]
+ /sbin/service haproxy stop
Shutting down haproxy: [  OK  ]
+ /bin/sleep 5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0   166      0    124 --:--:--  0:00:01 --:--:--   124
  0    80    0    80    0   166     45     93 --:--:--  0:00:01 --:--:--     0
  0    80    0    80    0   166     45     93 --:--:--  0:00:01 --:--:--     0
{"event":"success","description":"event successfully queued to the event queue"}+ /usr/bin/pkill haproxy
+ /bin/sleep 5
+ /sbin/service haproxy start
Starting haproxy: [  OK  ]
+ [[ 0 -ne 0 ]]
+ [[ ! -f /etc/slowroll/flags/switch_haproxy ]]
+ update_firewall
+ [[ ! -f /etc/slowroll/apache_haproxy_port_switch_backups/firewall_backups/fw ]]
+ /bin/cp /etc/fw/fw /etc/slowroll/apache_haproxy_port_switch_backups/firewall_backups/
+ [[ ! -f /etc/slowroll/flags/switch_firewall ]]
++ /usr/bin/facter -p colo
+ colo=gpx-mum
+ /usr/bin/chattr -i /etc/fw/fw
+ [[ 0 -eq 0 ]]
+ /bin/cp /usr/local/scripts/apache_haproxy_port_switch_data/fw.gpx-mum /etc/fw/fw
+ [[ 0 -eq 0 ]]
+ touch /etc/slowroll/flags/switch_firewall
+ [[ 0 -eq 0 ]]
+ /etc/fw/fw restart
Starting/Restarting custom firewall...iptables: Setting chains to policy ACCEPT: mangle nat raw filter [  OK  ]
iptables: Flushing firewall rules: [  OK  ]
iptables: Unloading modules: [  OK  ]
[  OK  ]
+ [[ 0 -eq 0 ]]
+ /sbin/service phreld restart
Stopping phreld:[  OK  ]
Starting phreld:[  OK  ]
+ /usr/bin/fail2ban-client stop
Shutdown successful
+ /usr/bin/fail2ban-client start
WARNING 'syslogsocket' not defined in 'Definition'. Using default one: 'auto'
WARNING 'dbfile' not defined in 'Definition'. Using default one: '/var/lib/fail2ban/fail2ban.sqlite3'
WARNING 'dbpurgeage' not defined in 'Definition'. Using default one: 86400
2017-09-26 14:57:59,814 fail2ban.server         [608526]: INFO    Starting Fail2ban v0.9.3
2017-09-26 14:57:59,814 fail2ban.server         [608526]: INFO    Starting in daemon mode
ERROR  NOK: ('Invalid log level',)
+ [[ ! -f /etc/slowroll/flags/switch_firewall ]]
+ double_check_services
+ /bin/sleep 5
+ /usr/bin/curl -I http://directi.con.md-in-35.webhostbox.net/uptimechecker.php
+ grep -q 'HTTP/1.1 200 OK'
+ [[ 0 -ne 0 ]]
+ /usr/bin/puppetstatus --enable
Removed lockfile (/var/lib/puppet/state/puppetdlock)
+ inform_hipchat_end
+ /usr/bin/curl -d '{"color":"green","message":"@Rigved Successfully switched Apache and HAProxy ports on md-in-35.webhostbox.net","notify":false,"message_format":"text"}' -H 'Content-Type: application/json' 'https://eigi.hipchat.com/v2/room/3653520/notification?auth_token=oVHkuZMtJCn5XbE0ejiFyXpPOtguv4XmbdoqMKv3'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0   150      0    161 --:--:-- --:--:-- --:--:--   161
  0     0    0     0    0   150      0    113 --:--:--  0:00:01 --:--:--     0

MMCT - 2023