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-05-14, 20:13:55

Author Topic: Unable to start Hiawtha  (Read 5651 times)

0 Members and 1 Guest are viewing this topic.

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Unable to start Hiawtha
« on: 2015-08-16, 15:25:28 »
I tried to swtich to Nginxproxy, which doesn't work at all, and back to Hiawathaproxy.
Now i can't start it:

[root@mail ~]# /etc/init.d/hiawatha start
Starting Hiawatha web server:                              [  OK  ]
listen(http(s)): Address already in use
[root@mail ~]#

[root@mail ~]# netstat -plant | grep :443
[root@mail ~]#

@Mustafa, we need to fix this issue. There are many threads about this, but never any solution to the problem.

Only thing that works is to switch back to Apache alone, but i don't want slow Apache to serve out clients.
Main reason i switched to Kloxo-MR was to use Hiawathaproxy/Nginxproxy, but none of them work with SSL. Nginxproxy doesn't even work for non-SSL sites.
After switching to Nginxproxy, /etc/nginx.conf etc was empty.

Did even restsart the server to no avail!

 
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to start Hiawtha
« Reply #1 on: 2015-08-16, 15:27:44 »
Try switch to 'none' and then switch to what's you want.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Unable to start Hiawtha
« Reply #2 on: 2015-08-16, 15:35:04 »
tried None and after 4 minutes back to Hiawathaproxy:
[root@mail conf]# sh /script/restart-web

*** Process for PHP-FPM service ***
  - Process: reload
Reloading php54m-fpm:                                      [  OK  ]
-------------------------------------------------------------------

*** Process for HIAWATHA service ***
  - No need started
  - Process: reload
Reloading configuration:                                   [FAILED]
-------------------------------------------------------------------

*** Process for HTTPD service ***
  - No need started
  - Process with 'httpd': restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'
[root@mail conf]# /etc/init.d/hiawatha start
Starting Hiawatha web server:                              [  OK  ]
listen(http(s)): Address already in use



Try switch to 'none' and then switch to what's you want.
Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Unable to start Hiawtha
« Reply #3 on: 2015-08-16, 15:40:31 »
Tried Nginxproxy again and now i see content in /etc/nginx/nginx.conf, but all line are commented out in
/etc/nginx/conf.d/default.conf



[root@mail conf]# /etc/init.d/nginx start
Starting nginx: nginx: [emerg] duplicate location "/$var_std_protectpath/(.*)$" in /opt/configs/nginx/conf/globals/dirprotect_standard.conf:1
                                                           [FAILED]
[root@mail conf]#

[root@mail conf]# cat /opt/configs/nginx/conf/globals/dirprotect_standard.conf
    location /$var_std_protectpath/(.*)$ {
          satisfy any;
          auth_basic $var_std_protectauthname;
          auth_basic_user_file /home/httpd/$var_domain/__dirprotect/$var_std_protectfile;
    }[root@mail conf]#

Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Unable to start Hiawtha
« Reply #4 on: 2015-08-16, 15:43:54 »
[root@mail conf]# ll /opt/configs/nginx/conf/proxies/
total 0
[root@mail conf]#

So Nginxproxy isn't ready with Kloxo-MR?
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to start Hiawtha
« Reply #5 on: 2015-08-16, 15:58:47 »
Try switch to none and then apache and then nginx-proxy. After that, run 'pkill -9 httpd; sh /script/restart-web -y'.

Sometimes, switch to proxy still trouble in apache services.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Unable to start Hiawtha
« Reply #6 on: 2015-09-05, 14:30:26 »
I did exactly this and got:
[root@mail ~]# pkill -9 httpd; sh /script/restart-web -y

Stopping php54m-fpm:                                       [  OK  ]
Starting php54m-fpm:                                       [  OK  ]
-------------------------------------------------------------------

nginx: [emerg] duplicate location "/$var_std_protectpath/(.*)$" in /opt/configs/nginx/conf/globals/dirprotect_standard.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
-------------------------------------------------------------------

Stopping httpd:                                            [FAILED]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'
[root@mail ~]#


Try switch to none and then apache and then nginx-proxy. After that, run 'pkill -9 httpd; sh /script/restart-web -y'.

Sometimes, switch to proxy still trouble in apache services.
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to start Hiawtha
« Reply #7 on: 2015-09-05, 14:34:16 »
I did exactly this and got:
[root@mail ~]# pkill -9 httpd; sh /script/restart-web -y

Stopping php54m-fpm:                                       [  OK  ]
Starting php54m-fpm:                                       [  OK  ]
-------------------------------------------------------------------

nginx: [emerg] duplicate location "/$var_std_protectpath/(.*)$" in /opt/configs/nginx/conf/globals/dirprotect_standard.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
-------------------------------------------------------------------

Stopping httpd:                                            [FAILED]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'
[root@mail ~]#


Try switch to none and then apache and then nginx-proxy. After that, run 'pkill -9 httpd; sh /script/restart-web -y'.

Sometimes, switch to proxy still trouble in apache services.
Try switch to 'none' and then switch back to nginx-proxy.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Unable to start Hiawtha
« Reply #8 on: 2015-09-05, 20:52:37 »
Didn't help, same problem unfortunately.

But as you can see the problem is very clear:
nginx: [emerg] duplicate location "/$var_std_protectpath/(.*)$" in /opt/configs/nginx/conf/globals/dirprotect_standard.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

So what i did was to remove  /opt/configs/nginx/conf/globals/dirprotect_standard.conf and just touch  /opt/configs/nginx/conf/globals/dirprotect_standard.conf (create an empty file). Then i could start Nginx and it works as reverse proxy serving TLS sites too :)
But TLS certifcate chaining is wrong for Nginx!


But what it that file supposed to do? I tried to grep for '$var_std_protectpath' all the relevant folders, but i can't find anywhere it's being 'included'ed?
 





Try switch to 'none' and then switch back to nginx-proxy.
« Last Edit: 2015-09-05, 23:53:02 by fossxplorer (formerly 'Mella') »
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to start Hiawtha
« Reply #9 on: 2015-09-06, 05:32:33 »
Remove dirprotect_standard.conf. Maybe it's waste file where at previous you use dirprotect.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Unable to start Hiawtha
« Reply #10 on: 2015-09-06, 18:02:11 »
You can't remove it since this file is 'include'ed from every domain conf files.
So the workaround is to empty it. But at next upgrade/fixweb etc, it will be created with content by Kloxo and same will come again.
Should be fixed properly by Kloxo-MR.


Remove dirprotect_standard.conf. Maybe it's waste file where at previous you use dirprotect.
Kloxo-MR!

 


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

Page created in 0.043 seconds with 21 queries.

web stats analysis