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-04-27, 15:45:53

Author Topic: Error 400 after submitting Add Let's Encrypt SSL  (Read 6559 times)

0 Members and 1 Guest are viewing this topic.

Offline postcd

  • Junior Member
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Error 400 after submitting Add Let's Encrypt SSL
« on: 2017-04-15, 16:01:40 »
Hello,

in KloxoMR 7.0.0.c-2017031002 (on CentOS 6.8 32bit) i submitted form to Add Let's Encrypt certificate to my domain (KloxoMR / Domains / my domain / SSL ceritifcates / Add lets encrypt)

It returned Error 400

Also i was unable to access Kloxo at all.. So i logged in SSH and found file /var/log/acme.sh/acme.sh.log

it do not show any error inside it, here is its content: https://pastebin.com/Rv8AqhiP

So i restarted all services by command: sh /script/restart-all

And then Kloxo started working and domain got working SSL certificate.  :D

That is nice, excpet i would like to ask for help on how to prevent Error 400 so i do not need to login SSH and do restart of services?

If you want me to execute some commands to shed more light on this, please kindly let me know. Thx

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #1 on: 2017-04-15, 16:13:31 »
Inform here 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline postcd

  • Junior Member
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #2 on: 2017-04-15, 16:17:48 »
Inform here 'sh /script/sysinfo'.

Quote
# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017031002
   - Web: hiawatha-10.5.0-f.2.mr.el6.i686
   - PHP: php56s-5.6.30-1.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) i686
   - Hostname: adopzwkk
C. Services:
   1. MySQL: MariaDB-server-10.0.30-1.el6.i686
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.30-1.ius.centos6.i686
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.5.0-f.2.mr.el6.i686
     - Lighttpd: lighttpd-1.4.45-1.el6.i686
     - Nginx: nginx-1.11.10-1.el6.ngx.i386
     - Apache: httpd24u-2.4.25-3.ius.centos6.i686
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.i386
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.i686
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - spam: bogofilter-1.2.4-1.el6.i686
   7. Stats: awstats
D. Memory:
             total       used       free     shared    buffers     cached
Mem:           768        368        399          0          0        175
-/+ buffers/cache:        192        575
Swap:          256          0        256
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs      7.9G  1.8G  6.1G  23% /


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

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #3 on: 2017-04-15, 16:32:15 »
Update with 'yum clean all; yum update -y; sh /script/cleanup'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline postcd

  • Junior Member
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #4 on: 2017-04-15, 17:23:30 »
Update with 'yum clean all; yum update -y; sh /script/cleanup'.

First two commands finished (it updated around 300 packages), third one failed:
Quote
# sh /script/cleanup
sh: /script/cleanup: No such file or directory
# ls -l /script
lrwxrwxrwx 1 root root 31 Apr 15 11:11 /script -> /usr/local/lxlabs/kloxo/pscript
# ls -l /script/
total 44
-rw-r--r-- 1 lxlabs lxlabs  616 Apr 10 10:59 disable-firewall
drwxr-xr-x 2 lxlabs lxlabs 4096 Apr 15 11:12 filter
-rw-r--r-- 1 lxlabs lxlabs   68 Apr 10 10:59 fix-ipaddress
-rw-r--r-- 1 lxlabs lxlabs  940 Apr 10 10:59 fix-sysctl
-rw-r--r-- 1 lxlabs lxlabs 1543 Apr 10 10:59 functions.inc
-rw-r--r-- 1 lxlabs lxlabs  918 Apr 10 10:59 php-branch-installer
-rw-r--r-- 1 lxlabs lxlabs  922 Apr 10 10:59 php-branch-installer.inc
-rw-r--r-- 1 lxlabs lxlabs  204 Apr 10 10:59 php-branch-updater
-rw-r--r-- 1 lxlabs lxlabs  417 Apr 10 10:59 select-kloxo-wrapper
-rw-r--r-- 1 lxlabs lxlabs   81 Apr 10 10:59 set-initial-services
-rw-r--r-- 1 lxlabs lxlabs 1112 Apr 10 10:59 setup-djbdns
Before update the /script directory was there with all the scripts.. What to do please?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #5 on: 2017-04-15, 17:43:02 »
Run 'yum reinstall kloxomr7 -y; sh /script/cleanup'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline postcd

  • Junior Member
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #6 on: 2017-04-15, 17:49:22 »
Run 'yum reinstall kloxomr7 -y;
Please will this erase my configuration in KloxoMR (mysql), i already configured websites, mailboxes, SSL etc inside KloxoMR so would like to keep these settings. Will this overwite it? If yes, how can i backup/restore? Thx

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #7 on: 2017-04-15, 17:50:38 »
No erase. 'yum reinstall' just reinstall rpm file. Data still no change.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline postcd

  • Junior Member
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #8 on: 2017-04-15, 18:18:02 »
Run 'yum reinstall kloxomr7 -y; sh /script/cleanup'.
Thx, it successfully reinstalled it and cleanup finished

At KloxoMR login page i see "Warning: session_start(): Session data file is not created by your uid in /usr/local/lxlabs/kloxo/httpdocs/login/index.php on line 4"
Restarting services does not help.

And the index.php file in websites folder (/home/admin/mysite.tld/) got new line added into it:
<?php header("X-Hiawatha-Cache: 5"); ?>
Thanks to this that ioncube encoded file is somehow corrupted even when i remove that line. Moreover Kloxo added index.html default page to my site.
Please how can i fix that Kloxo error above mentioned? THx

Update: it might be cache issue, in other browser error does not appear. I will test that SSL and update this topic. Thank You Mustafa for help.
« Last Edit: 2017-04-15, 18:28:52 by postcd »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #9 on: 2017-04-15, 18:28:52 »
1. Delete session files with 'rm -f /usr/local/lxlabs/kloxo/session/*'
2. To disable 'X-Hiawatha-Cache: 5', set to '-1' for 'microcache' in 'web features' for your domain
3. Yes, index.html already create if not exists.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline postcd

  • Junior Member
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #10 on: 2017-04-18, 15:24:50 »
Thx, i think this error 400 - bad request issue is not SSL related.
Because this error repeatedly appears when i do this action: KloxoMR/Domains/my domain here/Manage DNS/Add A/

and i type lets say:

Hostname: test
Value: myserverIPhere

Submit and always error 400 bad request appears.

Then i no longer can access any Kloxo pages, i see blank page.

When i do:
# service kloxo-web restart
Stopping kloxo-hiawatha:                                   [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]

And refresh kloxo webpage, i see "DNS Record was added successfully." and see newly added record and all OK.

So something with Kloxo itself?

My VPS RAM is not superb, but i do not see why it should be problem when there is enough vswap (openvz) space:
Code: [Select]
# free -mht
             total       used       free     shared    buffers     cached
Mem:          256M       228M        27M       560K         0B       109M
-/+ buffers/cache:       119M       136M
Swap:         256M        43M       212M
Total:        512M       271M       240M

Can i show any log file so we find the cause please or turn on some debugging mode? Thx
PS: currently running: 7.0.0.c-2017041002 (yum clean all, yum update, cleanup already executed)
« Last Edit: 2017-04-18, 15:27:52 by postcd »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #11 on: 2017-04-18, 15:27:02 »
Inform here 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline postcd

  • Junior Member
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #12 on: 2017-04-18, 15:30:55 »
Inform here 'sh /script/sysinfo'.
Here it is please: https://pastebin.com/mVpL5cp1

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error 400 after submitting Add Let's Encrypt SSL
« Reply #13 on: 2017-04-19, 00:30:14 »
1. Make sure select 'php-fpm_event' for 'php type' in 'webserver configure'
2. Run 'sh /script/select-kloxo-wrapper kloxo.exe; sh /script/restart'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.057 seconds with 22 queries.

web stats analysis