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, 22:11:22

Author Topic: nginx doesn't start(Address family not supported by protocol))  (Read 2715 times)

0 Members and 1 Guest are viewing this topic.

Offline xamer

  • Valuable Member
  • *
  • Posts: 61
  • Karma: +0/-0
    • View Profile
nginx doesn't start with error msg - [::]:80 failed (97: Address family not supported by protocol)
As i understand it is because of vserver doesn't support ipv6.
So? what shuold I do to run Nginx or nginxproxy?


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Inform here 'ifconfig; cat /etc/hosts'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline xamer

  • Valuable Member
  • *
  • Posts: 61
  • Karma: +0/-0
    • View Profile
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:276 errors:0 dropped:0 overruns:0 frame:0
          TX packets:276 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15503 (15.1 KiB)  TX bytes:15503 (15.1 KiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:8128 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8402 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:649704 (634.4 KiB)  TX bytes:973867 (951.0 KiB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:194.135.82.60  P-t-P:194.135.82.60  Bcast:194.135.82.60  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

### begin - add by Kloxo-MR


### end - add by Kloxo-MR

127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
194.135.82.60 25742.s.t4vps.eu  25742
::1 localhost.localdomain localhost

___
also it is new vserver with latest kloxo-mr, installed today
« Last Edit: 2016-09-23, 13:02:21 by xamer »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Inform here 'cat /etc/sysconfig/network'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline xamer

  • Valuable Member
  • *
  • Posts: 61
  • Karma: +0/-0
    • View Profile
NETWORKING="yes"
GATEWAYDEV="venet0"
HOSTNAME="25742.s.t4vps.eu"

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Add 'NETWORKING_IPV6=yes' to /etc/sysconfig/network and then reboot.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline xamer

  • Valuable Member
  • *
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Done, but it didn't help.
Also I changed to httpd and then back to nginx.
Still "socket() [::]:80 failed (97: Address family not supported by protocol)"

May I try to reinstall whole system again?
« Last Edit: 2016-09-23, 19:36:16 by xamer »

Offline xamer

  • Valuable Member
  • *
  • Posts: 61
  • Karma: +0/-0
    • View Profile
I fully reinstalled Kloxo-MR.
Still have error "socket() [::]:80 failed (97: Address family not supported by protocol)"

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Did you add domain(s)?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline xamer

  • Valuable Member
  • *
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Sure.
I added DNS tpl, resourse plan, one custumer and domain

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Copy all listen*.conf to custom.listen*.conf inside /opt/configs/nginx/conf/globals/ (example listen_ssl_back.conf to custom.listen_ssl_back.conf) and then change 'listen [::]' to '#listen [::]'.

And then run 'sh /script/fixweb; sh /script/restart-web'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline xamer

  • Valuable Member
  • *
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Done
There ara two lines it that files
listen 8080;
#listen [::]:8080;
I changed only one line #listen [::]:8080; in all files listen*.conf

It helps. Site works now.
So. Should i leave it as it is now and work futher?
Is it because of ipv6?

 


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

Page created in 0.031 seconds with 21 queries.

web stats analysis