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-28, 10:08:23

Author Topic: Trying to switch to hiawatha proxy, fails  (Read 14478 times)

0 Members and 1 Guest are viewing this topic.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Trying to switch to hiawatha proxy, fails
« Reply #15 on: 2014-05-03, 00:06:46 »
IT IS DUE TO SSL BINDING / port 443.  Proof.  I deleted the conf file from hiawatha/conf/domains for the domain which has the ssl.  Hiawatha started perfectly.

Ran fixweb to recreate the domain with ssl.  Hiawatha FAILS!

SSH transcript:
Code: [Select]
[root@cc-server domains]# rm convictionshosting.com.conf
rm: remove regular file `convictionshosting.com.conf? y
[root@cc-server domains]# sh /script/restart-web
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Stopping Hiawatha web server:                              [FAILED]
Starting Hiawatha web server:                              [  OK  ]
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]
[root@cc-server domains]# sh /script/restart-web
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Stopping Hiawatha web server:                              [  OK  ]
Starting Hiawatha web server:                              [  OK  ]
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]
[root@cc-server domains]# sh /script/fixweb

- For help, type '/script/fixweb --help'
- No argument supplied. Defaulting to localhost (master) servers

Fixing Web server config
- 'defaults' pages at 'localhost'
- 'cc-server.us' ('admin') at 'localhost'
- '.htaccess' for 'cc-server.us' ('admin') at 'localhost'
- 'convictionshosting.com' ('admin') at 'localhost'
- '.htaccess' for 'convictionshosting.com' ('admin') at 'localhost'
[root@cc-server domains]# sh /script/restart-web
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Stopping Hiawatha web server:                              [  OK  ]
Starting Hiawatha web server:                              [  OK  ]
listen(http(s)): Address already in use
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]
[root@cc-server domains]# sh /script/restart-web
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Stopping Hiawatha web server:                              [FAILED]
Starting Hiawatha web server:                              [  OK  ]
listen(http(s)): Address already in use
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]
[root@cc-server domains]#

Hiawatha fails with a domain with SSL.   It is through admin and IP (old way).

Please investigate and fix,
« Last Edit: 2014-05-03, 00:08:19 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Trying to switch to hiawatha proxy, fails
« Reply #16 on: 2014-05-03, 06:58:38 »
Using latest version of Kloxo-MR 6.5.1.b and ssl self-assign?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Trying to switch to hiawatha proxy, fails
« Reply #17 on: 2014-05-03, 15:12:06 »
Yes, latest KloxoMR 6.5.1b.  The SSL is assigned through old way (admin ->IP->SSL) because it has been assigned for nearly half a year running Apache no proxy.

So there is a IP assigned to this domain as well.  I was reading on Hiawatha forums this error normally happens when using the 'interface' option under binding - but don't know for sure.

I just know that Hiawatha will not start.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Trying to switch to hiawatha proxy, fails
« Reply #18 on: 2014-05-04, 12:16:21 »
Try not using .ca file if using self-assign (not ssl from thirdparty) in /home/kloxo/httpd/ssl.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Trying to switch to hiawatha proxy, fails
« Reply #19 on: 2014-05-04, 17:08:01 »
It is a rapidSSL and the intermediate file (ca) is required.  It could also be the additional IP - there are different reasons for that error to be displayed - BUT, they all are due to configuration errors.

Something is wrong.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Trying to switch to hiawatha proxy, fails
« Reply #20 on: 2014-05-05, 04:42:30 »
Check your /home/hiawatha/tpl/domains.conf.tpl. In previous you will see 'if (file_exists("{$certname}.ca")) {' and also using '.pem' instead '.crt'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Trying to switch to hiawatha proxy, fails
« Reply #21 on: 2014-05-05, 05:18:21 »
I switched back to pure Apache.   This is a live site, and customers use it.  I reported all of this because there is a obvious error in the Hiawatha configuration.

I don't know if it is due to the additional IP or the ssl, but I am sure it's wrong.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Trying to switch to hiawatha proxy, fails
« Reply #22 on: 2014-05-06, 17:36:37 »
Have you found the cause of this error ?
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Trying to switch to hiawatha proxy, fails
« Reply #23 on: 2014-05-07, 02:55:53 »
Because I didn't have thirdparty ssl certificate, I don't know what's happen for your ssl.

If you permit, send to my PM your thirdparty ssl certificate.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline GentZu

  • Senior Member
  • *
  • Posts: 323
  • Karma: +0/-0
  • Gender: Male
  • yare yare...
    • View Profile
Re: Trying to switch to hiawatha proxy, fails
« Reply #24 on: 2014-05-07, 18:34:31 »
try

yum remove hiawatha -y
yum install hiawatha -y
service restart hiawatha

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Trying to switch to hiawatha proxy, fails
« Reply #25 on: 2014-05-07, 18:56:02 »
try

yum remove hiawatha -y
yum install hiawatha -y
service restart hiawatha
If you try this commands, '/etc/hiawatha/hiawatha.conf' file is from hiawatha.rpm ('generic' hiawatha.conf). Kloxo-MR use 'special' hiawatha and taken from '/home/hiawatha/etc/conf/hiawatha.conf'.

As we know, other services (like apache, nginx, lighttpd and others) also using 'special' config.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Trying to switch to hiawatha proxy, fails
« Reply #26 on: 2014-05-16, 06:34:37 »
I am not sure this is related to the CA file.  I think it has to do with additional IP and ssl.  I am not sure.  I can not get Hiawatha to start.  I have no idea why the configuration is wrong.

Sorry, I can not give you a copy of my ssl.

This actually is a serious problem.  Add a ssl and IP to Hiawatha and it stops working.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Trying to switch to hiawatha proxy, fails
« Reply #27 on: 2014-05-16, 06:45:10 »
Try update Kloxo-MR and then run 'sh /script/cleanup'.

I am not sure, but try install polarssl with 'yum install polarssl'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Trying to switch to hiawatha proxy, fails
« Reply #28 on: 2014-05-16, 18:13:15 »
running latest 6.5.1b, installed polarssl, same error.

Code: [Select]
listen(http(s)): Address already in use

In Hiawatha forums this error is due to incorrect binding.  I use an additional IP with this site, could that be a problem.

I changed all my servers to Hiawatha proxy, if a customer wants ssl, is everything going to break?

This is a critical bug in the configuration of Hiawatha.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Trying to switch to hiawatha proxy, fails
« Reply #29 on: 2014-05-16, 19:19:39 »
Found the problem.  It is not because of the SSL, it is because of the IP set for that domain.

From Creator of Hiawatha:
Quote
Hugo Leisink

When not specifying an interface in a Binding block, Hiawatha will bind all available interfaces. When a second block has the interface option, that interface is already binded by the previous binding block. To solve this, specify an interface in the first binding block.

In Hiawatha defaults init.conf you don't use the interface option, you bind Hiawatha to all IP's.  In my website, I added exclusive IP, and you use interface option in binding it.  But, it is already bound to first init.conf binding id port_443.

You have to list all available ip's in the init.conf, using interface option.

This is a critical bug in KloxoMR and adding any exclusive IP to a website will break Hiawatha.

Please fix.  Thank you.
« Last Edit: 2014-05-16, 19:22:34 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.048 seconds with 18 queries.

web stats analysis