Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 21:18:52

Author Topic: 500 Internal server error. Berhenti lama di fix domainkeys  (Read 23206 times)

0 Members and 1 Guest are viewing this topic.

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Mendadak web2 di VPS 500 internal server error.
Saya cek log manager hasilnya

Quote
"/home/ikarholaz/ikarholaz.com/ikarholaz.com.1fake"] [ikarholaz.com]
[Sat Nov 02 19:42:17 2019] [fastcgi:error] [pid 3563] [mod_fastcgi.c(1419):] [FastCGI: failed to connect to server "/home/ikarholaz/ikarholaz.com/ikarholaz.com.1fake": connect() failed] [ikarholaz.com]
[Sat Nov 02 19:42:17 2019] [fastcgi:error] [pid 3563] [mod_fastcgi.c(2450):] [FastCGI: incomplete headers (0 bytes) received from server "/home/ikarholaz/ikarholaz.com/ikarholaz.com.1fake"] [ikarholaz.com]

Jika cleanup akan berhenti lama diproses ini, kadang sampe bikin disconnect
Quote
Create domain backup dirs
- Create process
- Create OS system user admin
- User admin exists
Fix php.ini
- Fix process
Fix Domainkeys
- Fix process

Kenapa ya? mohon petunjuk. TErima kasih banyak

sysinfo
Quote
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2019070501
   - Web: hiawatha-10.9.0-f.2.mr.el7.x86_64
   - PHP: php56s - 5.6.40-1.ius.el7 (fpm mode)
B. Plateform:
   - OS: CentOS Linux release 7.7.1908 (Core) x86_64
   - Hostname: usa50.m2net.asia
C. Services:
   1. MySQL: MariaDB-server-10.0.38-1.el7.centos.x86_64
   2. PHP:
      - Installed:
        - Branch: php73-cli-7.3.11-1.el7.ius.x86_64
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: hiawathaproxy
     - Hiawatha: hiawatha-10.9.0-f.2.mr.el7.x86_64
     - Lighttpd: lighttpd-1.4.54-1.el7.x86_64
     - Nginx: nginx-1.17.5-1.el7.ngx.x86_64
     - Apache: httpd24u-2.4.41-1.el7.ius.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.9-1.mr.el7.x86_64
     - DJBDns: djbdns-1.05-17.4.mr.el7.x86_64
     - NSD: nsd-4.2.2-1.el7.x86_64
     - PowerDNS: pdns-4.1.8-1.el7.MIND.x86_64
     - Yadifa: yadifa-2.3.9-1.el7.x86_64
   6. Mail: qmail-toaster-1.03-1.3.57.mr.el7.x86_64
      - pop3/imap4: dovecot-toaster-2.2.24-1.mr.el7.x86_64
      - smtp: qmail-toaster-1.03-1.3.57.mr.el7.x86_64
      - spam: bogofilter-1.2.3-6.el7.x86_64
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.49-1.mr.el7.x86_64
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.7-1.mr.noarch
D. Memory:
              total        used        free      shared  buff/cache   available
Mem:           4096         777        2003          18        1315        3299
Swap:          4096           3        4092
E. Disk Space:
Filesystem         Size  Used Avail Use% Mounted on
/dev/ploop10814p1   99G   19G   76G  20% /


*** Process Time: 00:00:01:00.60210 (dd:hh:mm:ss:xxxxxx) ***


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #1 on: 2019-11-02, 14:23:50 »
Disable saja dengan mengganti \call_with_flag("fix_domainkey");' menjadi '//call_with_flag("fix_domainkey");' pada '/usr/local/lxlabs/kloxo/httpdocs/lib/html/updatelib.php'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #2 on: 2019-11-03, 00:18:11 »
kalau boleh tahu domenkey itu proses apa?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #3 on: 2019-11-03, 01:52:17 »
Penting utk perifikasi email. Dicatat melalui dns settings.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #4 on: 2019-11-03, 01:53:15 »
Alternative nmenjalankan domainkeys adalah 'sh /script/fix-domainkeys'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #5 on: 2019-11-05, 04:29:22 »
sekarang yg lama pro ftpd. saat restart-all ada warning:

Quote
Restarting pure-ftpd (via systemctl):  Job for pure-ftpd.service failed because a timeout was exceeded. See "systemctl status pure-ftpd.service" and "journalctl -xe" for details.

Sempat normal setelah saya cleanup berulang. tapi error 500 lagi.

Pada log manager :
Quote
failed to connect to server "/home/mimika/xxxxx.com/xxxxx.com.1fake": connect() failed] [alumniits.com]
[Tue Nov 05 10:26:54 2019] [fastcgi:error] [pid 4751] [mod_fastcgi.c(2450):] [FastCGI: incomplete headers (0 bytes) received from server "/home/mimika/xxxxxx.com/xxxxxx.com.1fake"] [alumniits.com]

Mohon panduannya. terima kasih

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #6 on: 2019-11-05, 05:25:42 »
saya cek via htop proses tinggi di clamscan. apakah ada ketidakwajaran dari proses tsb?

Quote
  1  [|||||||||||||||||||||||||||||                                        37.4%]   Tasks: 102, 700 thr; 2 running
  2  [||||||||||||                                                         14.8%]   Load average: 1.14 1.59 1.77
  3  [||||||||||||||||||||||||||                                           33.1%]   Uptime: 00:23:03
  4  [|||||                                                                 5.8%]
  Mem[||||||||||||||||||||||||||||||||||||||                          908M/4.00G]
  Swp[                                                                  0K/4.00G]

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
 8032 root       38  18  738M  602M  3104 R 89.2 14.7  1:25.42 /usr/bin/clamscan --max-filesize=6947618 --max-scansize=13895236 -d /usr/local/maldetect/tmp/.runtime.use
 4546 root       20   0 19732  2920  1376 R  1.9  0.1  0:10.37 htop
  974 apache     20   0 2331M 27952  1640 S  0.6  0.7  0:25.04 /usr/sbin/hiawatha
   89 root       20   0  252M 50136 49820 S  0.6  1.2  0:04.49 /usr/lib/systemd/systemd-journald
 1615 lxlabs     20   0  124M  2056  1100 S  0.6  0.0  0:00.03 /usr/local/lxlabs/kloxo/init/kloxo-hiawatha -c /usr/local/lxlabs/kloxo/init

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #7 on: 2019-11-06, 04:29:24 »
Coba tambahkan file '/usr/local/lxlabs/kloxo/etc/process/pure-ftpd' dengan isi:
Code: [Select]
#!/bin/sh

echo "*** Process for Pure-FTPD service ***"

if [ "$(pgrep ^pure-upload)" == "" ] ; then
pure-uploadscript -B -r /etc/pure-ftpd/clamscan.sh
fi

prog='pure-ftpd'

service $prog stop

if [ "$(pgrep ^$prog)" != "" ] ; then
killall -9 $prog
fi

service $prog start

dan kemudian lakukan reboot.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #8 on: 2019-11-06, 04:37:36 »
terima kasih pak MR utk solusi soal pureftp.

btw, setelah saya cek lebih lanjut ternyata PHP-FPM failed, mungkin itu penyebab error 500, karena setelah saya ganti ke type php FCGID web kembali normal.
Bagaimana cara memulihkan phpfpm? sepertinya koq lebih bagus pake type tsb daripada fcgid.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #9 on: 2019-11-06, 11:16:40 »
Coba jalankan 'sh /script/fixphp; sh /script/fixweb; sh /script/restart-web'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #10 on: 2019-11-08, 05:31:28 »
setelah pake perintah tsb saya coba cek "service php-fpm status" hasilnya koq spt masih ada errornya. tapi web sudah normal. ada pengaruhnya kah? takutnya cuma normal sementara saja.

Quote
[root@usa50 ~]# service php-fpm status
Redirecting to /bin/systemctl status php-fpm.service
* php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2019-11-08 11:15:46 WIB; 9min ago
 Main PID: 27750 (php-fpm)
   Status: "Processes active: 0, idle: 3, Requests: 47, slow: 0, Traffic: 0.5req/sec"
   CGroup: /system.slice/php-fpm.service
           |-27750 php-fpm: master process (/opt/configs/php-fpm/conf/php/php...
           |-32184 php-fpm: pool php-mimika
           |-32190 php-fpm: pool php-mimika
           `-32192 php-fpm: pool php-mimika

Nov 08 11:15:23 usa50.m2net.asia systemd[1]: Starting The PHP FastCGI Proces....
Nov 08 11:15:46 usa50.m2net.asia systemd[1]: Started The PHP FastCGI Process....
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: php-fpm.service: main process e...L
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: Failed to fork: Cannot allocate...y
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: php-fpm.service failed to run '...y
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: Unit php-fpm.service entered fa....
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: php-fpm.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@usa50 ~]# service php-fpm restart
Redirecting to /bin/systemctl restart php-fpm.service

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #11 on: 2019-11-08, 12:46:32 »
Coba saja lihat hasil 'systemctl status php-fpm -l'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #12 on: 2019-11-08, 13:15:36 »
[root@usa50 ~]# systemctl status php-fpm -l
* php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2019-11-08 11:26:19 WIB; 7h ago
  Process: 32758 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS)
  Process: 32761 ExecStartPre=/usr/bin/rm -f /opt/configs/php-fpm/sock/php-*.sock >/dev/null 2>&1 (code=exited, status=0/SUCCESS)
 Main PID: 32762 (php-fpm)
   Status: "Processes active: 0, idle: 1, Requests: 3692, slow: 1, Traffic: 0.1req/sec"
   CGroup: /system.slice/php-fpm.service
           |-26731 php-fpm: pool php-mimika                                     
           `-32762 php-fpm: master process (/opt/configs/php-fpm/conf/php/php-fpm.conf)

Nov 08 11:26:19 usa50.m2net.asia systemd[1]: Starting The PHP FastCGI Process Manager...
Nov 08 11:26:19 usa50.m2net.asia systemd[1]: Started The PHP FastCGI Process Manager.
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: php-fpm.service: main process exited, code=killed, status=9/KILL
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: Failed to fork: Cannot allocate memory
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: php-fpm.service failed to run 'stop' task: Cannot allocate memory
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: Unit php-fpm.service entered failed state.
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: php-fpm.service failed.
[root@usa50 ~]#

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #13 on: 2019-11-09, 03:14:53 »
Ada masalah berupa 'Failed to fork: Cannot allocate memory'. Coba lakukan reboot. Jika BUKAN OpenVZ coba lakukan 'sh /script/clearcache3'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: 500 Internal server error. Berhenti lama di fix domainkeys
« Reply #14 on: 2019-11-09, 03:53:00 »
sudah saya clearcache trs reboot. kmdn sya test lagi. hasilnya tetep

Quote
[root@usa50 ~]# systemctl status php-fpm -l
* php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
   Active: failed (Result: timeout) since Sat 2019-11-09 09:35:42 WIB; 4min 1s ago
  Process: 373 ExecStart=/usr/sbin/php-fpm -y /opt/configs/php-fpm/conf/php/php-fpm.conf --nodaemonize (code=killed, signal=TERM)
  Process: 360 ExecStartPre=/usr/bin/rm -f /opt/configs/php-fpm/sock/php-*.sock >/dev/null 2>&1 (code=exited, status=0/SUCCESS)
 Main PID: 373 (code=killed, signal=TERM)

Nov 09 09:35:42 usa50.m2net.asia systemd[1]: php-fpm.service start operation timed out. Terminating.
Nov 09 09:35:42 usa50.m2net.asia systemd[1]: Failed to start The PHP FastCGI Process Manager.
Nov 09 09:35:42 usa50.m2net.asia systemd[1]: Unit php-fpm.service entered failed state.
Nov 09 09:35:42 usa50.m2net.asia systemd[1]: php-fpm.service failed.
Nov 09 07:46:14 usa50.m2net.asia mimika[16859]: sendmail: CALLER="php-fpm: pool php-mimika" PWD="/home/mimika/omov.alumniits.com" BAN="no"
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: php-fpm.service: main process exited, code=killed, status=9/KILL
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: Failed to fork: Cannot allocate memory
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: php-fpm.service failed to run 'stop' task: Cannot allocate memory
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: Unit php-fpm.service entered failed state.
Nov 01 22:40:26 usa50.m2net.asia systemd[1]: php-fpm.service failed.
[root@usa50 ~]#

sysinfo:
Quote
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2019070501
   - Web: hiawatha-10.9.0-f.2.mr.el7.x86_64
   - PHP: php56s - 5.6.40-1.ius.el7 (fpm mode)
B. Plateform:
   - OS: CentOS Linux release 7.7.1908 (Core) x86_64
   - Hostname: usa50.m2net.asia
C. Services:
   1. MySQL: MariaDB-server-10.0.38-1.el7.centos.x86_64
   2. PHP:
      - Installed:
        - Branch: php73-cli-7.3.11-1.el7.ius.x86_64
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: hiawathaproxy
     - Hiawatha: hiawatha-10.9.0-f.2.mr.el7.x86_64
     - Lighttpd: lighttpd-1.4.54-1.el7.x86_64
     - Nginx: nginx-1.17.5-1.el7.ngx.x86_64
     - Apache: httpd24u-2.4.41-1.el7.ius.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.9-1.mr.el7.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.57.mr.el7.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el7.x86_64
      - smtp: qmail-toaster-1.03-1.3.57.mr.el7.x86_64
      - spam: bogofilter-1.2.3-6.el7.x86_64
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.49-1.mr.el7.x86_64
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.7-1.mr.noarch
D. Memory:
              total        used        free      shared  buff/cache   available
Mem:           4096         221        3315           0         558        3873
Swap:          4096           0        4096
E. Disk Space:
Filesystem         Size  Used Avail Use% Mounted on
/dev/ploop10814p1   99G   19G   76G  20% /


 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.032 seconds with 22 queries.

web stats analysis