Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajenti V Crash - could not bind error #424

Closed
cmpsoares91 opened this issue Jun 15, 2014 · 24 comments
Closed

Ajenti V Crash - could not bind error #424

cmpsoares91 opened this issue Jun 15, 2014 · 24 comments

Comments

@cmpsoares91
Copy link

Hi everyone, I just installed some monitoring plugins and the when Ajenti got restarted it didn't get back up... It crashes...

cat ajenti.log
2014-06-16 00:14:31,664 INFO     registry.register_crypt_handler(): registered crypt handler 'sha512_crypt': <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
2014-06-16 00:14:31,758 INFO     core.run(): Ajenti 1.2.21.8 running on platform: debian
2014-06-16 00:14:31,823 WARNING  __init__.load():  *** [memcache] skipping due to BinaryDependency (memcached)
2014-06-16 00:14:31,833 WARNING  __init__.load():  *** [elements] Plugin error: format error
2014-06-16 00:14:31,841 WARNING  __init__.load():  *** [openvpn] skipping due to BinaryDependency (openvpn)
2014-06-16 00:14:31,856 WARNING  __init__.load():  *** [ctdb] skipping due to BinaryDependency (ctdb)
2014-06-16 00:14:31,859 WARNING  __init__.load():  *** [samba] skipping due to BinaryDependency (smbd)
2014-06-16 00:14:31,864 WARNING  __init__.load():  *** [csf] skipping due to BinaryDependency (csf)
2014-06-16 00:14:31,873 WARNING  __init__.load():  *** [dhcpd] skipping due to BinaryDependency (dhcpd)
2014-06-16 00:14:31,884 WARNING  __init__.load():  *** [apache] skipping due to BinaryDependency (apache2)
2014-06-16 00:14:31,888 WARNING  __init__.load():  *** [nsd] skipping due to BinaryDependency (nsd)
2014-06-16 00:14:31,891 WARNING  __init__.load():  *** [apcups] skipping due to BinaryDependency (apcaccess)
2014-06-16 00:14:31,895 WARNING  __init__.load():  *** [netatalk] skipping due to BinaryDependency (afpd)
2014-06-16 00:14:31,903 WARNING  __init__.load():  *** [exports] skipping due to BinaryDependency (nfsstat)
2014-06-16 00:14:31,907 WARNING  __init__.load():  *** [psql] skipping due to BinaryDependency (psql)
2014-06-16 00:14:31,919 WARNING  __init__.load():  *** [smartctl] skipping due to BinaryDependency (smartctl)
2014-06-16 00:14:31,928 WARNING  __init__.load():  *** [megaraid] skipping due to FileDependency (/opt/MegaRAID/MegaCli/MegaCli)
2014-06-16 00:14:31,936 WARNING  __init__.load():  *** [munin] skipping due to BinaryDependency (munin-cron)
2014-06-16 00:14:31,943 WARNING  __init__.load():  *** [mysql] skipping due to BinaryDependency (mysqld_safe)
2014-06-16 00:14:32,593 INFO     core.run(): Starting server on (u'ajenti.quantbull.com', 8000)
2014-06-16 00:14:32,603 ERROR    core.run(): Could not bind to (u'ajenti.quantbull.com', 8000)
2014-06-16 00:14:32,603 ERROR   : Could not bind to (u'ajenti.quantbull.com', 8000)

Any help debugging?

@cmpsoares91 cmpsoares91 changed the title Ajenti V Crash Ajenti V Crash - could not bind error Jun 15, 2014
@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2014

That's not a crash. This means another process took the 8000 port. Check with netstat -tlnp | grep 8000

@cmpsoares91
Copy link
Author

Nothing is listening on port 8000:

$sudo netstat -tlnp 
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      1341/node
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1161/nginx
tcp        0      0 0.0.0.0:35729           0.0.0.0:*               LISTEN      1225/gulp
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      990/named
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      846/sshd
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      990/named
tcp6       0      0 :::993                  :::*                    LISTEN      1106/couriertcpd
tcp6       0      0 :::143                  :::*                    LISTEN      1078/couriertcpd
tcp6       0      0 :::22                   :::*                    LISTEN      846/sshd
tcp6       0      0 :::3128                 :::*                    LISTEN      987/squid3
tcp6       0      0 ::1:953                 :::*                    LISTEN      990/named

But Ajenti isn't running:

$sudo service ajenti restart
Stopping Ajenti:
 * not running
Starting Ajenti:
16.06.2014 15:35 INFO  Using config file /etc/ajenti/config.json
 * started
$sudo service ajenti status
 * Ajenti is not running

@cmpsoares91
Copy link
Author

Tried checking if somehow the port got closed but isn't the case:
When using https:// I get this:

$nc -l 8000
▒▒▒I▒[▒ࡻ%&▒▒V▒_▒n▒I▒4▒!Ë▒<(▒+▒/▒▒▒▒
▒       ▒▒▒▒329▒/5
e▒

With a normal request I get this:

nc -l 8000
GET / HTTP/1.1
Host: 195.154.240.241:8000
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
Accept-Encoding: gzip,deflate,sdch
Accept-Language: pt-PT,pt;q=0.8,en-US;q=0.6,en;q=0.4,nl;q=0.2
Cookie: sid=s%3AxLyY1Psd3PALgKsI3VTE5TkH.9ddQVnD2rBdqPnb%2BsxCGnzGSuV8vGqBGrchHFK7vHGY; ajenti-theme=light; session=d1d1a45b74a7966eee0c58654023c9c7295978ba; mp_b5e6ddf58b2d02245a7a19005d1cec48_mixpanel=%7B%22distinct_id%22%3A%20%221469c00646a17f-011b7b525-4e48002f-100200-1469c00646b717%22%2C%22%24initial_referrer%22%3A%20%22http%3A%2F%2F195.154.240.241%3A8000%2F%22%2C%22%24initial_referring_domain%22%3A%20%22195.154.240.241%3A8000%22%7D

Also:

ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether bc:30:5b:d0:20:68 brd ff:ff:ff:ff:ff:ff
    inet 195.154.240.241/24 brd 195.154.240.255 scope global eth0
    inet6 fe80::be30:5bff:fed0:2068/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether bc:30:5b:d0:20:69 brd ff:ff:ff:ff:ff:ff

What can this be? Has to be something with Ajenti...

@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2014

Sorry I didn't notice the domain the the log. You should use IP address, not the domain. You can fix it directly in /etc/ajenti/config.json

@cmpsoares91
Copy link
Author

But should I use IP always? But how then I get to the question that I want to redirect subdomain? Do I redirect it to the IP address?

@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2014

Your Ajenti will be listening on https://*:8000. For the redirection, you have an NGINX vhost which redirects http://ajenti.quantbull.com to https://quantbull.com:8000, which is Ajenti

@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2014

The TCP bind/listen specifications don't have anything to do with HTTP routing, they only specify which network interfaces will receive the connections.

@cmpsoares91
Copy link
Author

I get a Eugene.

My config file is:

{
    "users": {
        "root": {
            "configs": {
                "ajenti.plugins.notepad.notepad.Notepad": "{\"bookmarks\": [], \"root\": \"/\"}",
                "ajenti.plugins.terminal.main.Terminals": "{\"shell\": \"sh -c $SHELL || bash\"}",
                "ajenti.users.UserManager": "{\"sync-provider\": \"\"}",
                "ajenti.plugins.dashboard.dash.Dash": "{\"widgets\": [{\"index\": 0, \"config\": null, \"container\": \"1\", \"class\": \"ajenti.plugins.sensors.memory.MemoryWidget\"}, {\"index\": 1, \"config\": null, \"container\": \"1\", \"class\": \"ajenti.plugins.se$
                "ajenti.plugins.fm.fm.FileManager": "{\"start\": \"/\", \"root\": \"/\"}",
                "ajenti.plugins.tasks.manager.TaskManager": "{\"task_definitions\": []}"
            },
            "password": "sha512|$6$rounds=40000$./kaRvxB.QjAiGLs$kcZ8ecTqNCqBTTIHl8pMhjM5eYQGMXviAcNRoUjs1.R/B.EgZB3wYssc/Xoe84K6TAHkAfoc6B8zJ0II6lzyO1",
            "email": "admin@quantbull.com",
            "permissions": []
        }
    },
    "language": "en_US",
    "bind": {
        "host": "https://195.154.240.241/",
        "port": 8000
    },
    "enable_feedback": true,
    "ssl": {
        "enable": true,
        "certificate_path": "/etc/ajenti/ajenti.pem"
    },
    "authentication": true,
    "installation_id": 50488
}

Ajenti.log:

$cat /var/log/ajenti/ajenti.log
2014-06-16 18:01:17,705 INFO     registry.register_crypt_handler(): registered crypt handler 'sha512_crypt': <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
2014-06-16 18:01:17,801 INFO     Traceback (most recent call last):
  File "/usr/bin/ajenti-panel", line 125, in <module>
    core.run()
  File "/usr/lib/pymodules/python2.7/ajenti/core.py", line 93, in run
    addrs = socket.getaddrinfo(bind_spec[0], bind_spec[1], socket.AF_INET6, 0, socket.SOL_TCP)
  File "/usr/lib/python2.7/dist-packages/gevent/socket.py", line 748, in getaddrinfo
    for res in resolve_ipv6(host, evdns_flags)[1]:
  File "/usr/lib/python2.7/dist-packages/gevent/dns.py", line 73, in resolve_ipv6
    raise DNSError(result)
DNSError: [Errno 3] name does not exist
yDependency (smbd)
2014-06-16 18:01:17,907 WARNING  __init__.load():  *** [csf] skipping due to BinaryDependency (csf)
2014-06-16 18:01:17,915 WARNING  __init__.load():  *** [dhcpd] skipping due to BinaryDependency (dhcpd)
2014-06-16 18:01:17,926 WARNING  __init__.load():  *** [apache] skipping due to BinaryDependency (apache2)
2014-06-16 18:01:17,930 WARNING  __init__.load():  *** [nsd] skipping due to BinaryDependency (nsd)
2014-06-16 18:01:17,934 WARNING  __init__.load():  *** [apcups] skipping due to BinaryDependency (apcaccess)
2014-06-16 18:01:17,938 WARNING  __init__.load():  *** [netatalk] skipping due to BinaryDependency (afpd)
2014-06-16 18:01:17,946 WARNING  __init__.load():  *** [exports] skipping due to BinaryDependency (nfsstat)
2014-06-16 18:01:17,950 WARNING  __init__.load():  *** [psql] skipping due to BinaryDependency (psql)
2014-06-16 18:01:17,962 WARNING  __init__.load():  *** [smartctl] skipping due to BinaryDependency (smartctl)
2014-06-16 18:01:17,970 WARNING  __init__.load():  *** [megaraid] skipping due to FileDependency (/opt/MegaRAID/MegaCli/MegaCli)
2014-06-16 18:01:17,978 WARNING  __init__.load():  *** [munin] skipping due to BinaryDependency (munin-cron)
2014-06-16 18:01:17,986 WARNING  __init__.load():  *** [mysql] skipping due to BinaryDependency (mysqld_safe)
2014-06-16 18:01:18,722 ERROR    core.handle_crash(): Fatal crash occured
2014-06-16 18:01:18,921 INFO     connectionpool._new_conn(): Starting new HTTP connection (1): ajenti.org
2014-06-16 18:01:19,037 ERROR    core.handle_crash(): Crash report written to /root/ajenti-crash.txt
2014-06-16 18:01:19,038 ERROR    core.handle_crash(): Please submit it to https://github.com/Eugeny/ajenti/issues/new
2014-06-16 18:01:19,038 ERROR   : Please submit it to https://github.com/Eugeny/ajenti/issues/new

Crash report:
sudo cat /root/ajenti-crash.txt

Ajenti bug report

Info Value
Ajenti 1.2.21.8
Platform debian / ubuntu / Ubuntu 12.04.4 LTS
Architecture x86_64 x86_64
Python 2.7.3
Installation 65609806
Debug False
Catcher report http://ajenti.org/catcher/view/19802
Loaded plugins ajenti_org, bind9, codemirror, configurator, cron, dashboard, db_common, fm, fstab, hddtemp, hdparm, hosts, ipmi, iptables, lm_sensors, logs, main, network, nginx, notepad, packages, plugins, power, raid, resolv, resources, scripts, sensors, services, squid, supervisor, taskmgr, tasks, terminal, users, vh, vh-mail, vh-nginx, vh-nodejs, webserver_common
Library Version
gevent 0.13.6
greenlet 0.4.0
reconfigure 0.1.50
requests 1.1.0
psutil 0.6.1
Traceback (most recent call last):
  File "/usr/bin/ajenti-panel", line 125, in <module>
    core.run()
  File "/usr/lib/pymodules/python2.7/ajenti/core.py", line 93, in run
    addrs = socket.getaddrinfo(bind_spec[0], bind_spec[1], socket.AF_INET6, 0, socket.SOL_TCP)
  File "/usr/lib/python2.7/dist-packages/gevent/socket.py", line 748, in getaddrinfo
    for res in resolve_ipv6(host, evdns_flags)[1]:
  File "/usr/lib/python2.7/dist-packages/gevent/dns.py", line 73, in resolve_ipv6
    raise DNSError(result)
DNSError: [Errno 3] name does not exist

Log content:

2014-06-16 18:01:17,592 INFO     ajenti-panel.<module>(): Using config file /etc/ajenti/config.json
2014-06-16 18:01:17,705 INFO     registry.register_crypt_handler(): registered crypt handler 'sha512_crypt': <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
2014-06-16 18:01:17,755 DEBUG    compat.Popen(): Popen: git describe --tags 2> /dev/null
2014-06-16 18:01:17,762 DEBUG    compat.Popen(): Popen: ['lsb_release', '-sd']
2014-06-16 18:01:17,801 INFO     core.run(): Ajenti 1.2.21.8 running on platform: debian
2014-06-16 18:01:17,802 DEBUG    __init__.load(): Loading plugin services
2014-06-16 18:01:17,802 DEBUG    __init__.load_recursive(): Preloading plugin dependency: main
2014-06-16 18:01:17,803 DEBUG    __init__.load(): Loading plugin main
2014-06-16 18:01:17,810 DEBUG    __init__.load(): Loading plugin services
2014-06-16 18:01:17,810 DEBUG    __init__.load_recursive(): Preloading plugin dependency: dashboard
2014-06-16 18:01:17,810 DEBUG    __init__.load(): Loading plugin dashboard
2014-06-16 18:01:17,812 DEBUG    __init__.load(): Loading plugin services
2014-06-16 18:01:17,820 DEBUG    __init__.load(): Loading plugin ajenti_org
2014-06-16 18:01:17,820 DEBUG    __init__.load(): Loading plugin db_common
2014-06-16 18:01:17,821 DEBUG    __init__.load(): Loading plugin tasks
2014-06-16 18:01:17,821 DEBUG    __init__.load_recursive(): Preloading plugin dependency: cron
2014-06-16 18:01:17,821 DEBUG    __init__.load(): Loading plugin cron
2014-06-16 18:01:17,821 DEBUG    compat.Popen(): Popen: ['which', 'crontab']
2014-06-16 18:01:17,826 DEBUG    __init__.load(): Loading plugin tasks
2014-06-16 18:01:17,827 DEBUG    __init__.load(): Loading plugin plugins
2014-06-16 18:01:17,828 DEBUG    __init__.load(): Loading plugin network
2014-06-16 18:01:17,851 DEBUG    __init__.load(): Loading plugin fstab
2014-06-16 18:01:17,853 DEBUG    __init__.load(): Loading plugin terminal
2014-06-16 18:01:17,862 DEBUG    __init__.load(): Loading plugin memcache
2014-06-16 18:01:17,862 DEBUG    compat.Popen(): Popen: ['which', 'memcached']
2014-06-16 18:01:17,866 WARNING  __init__.load():  *** [memcache] skipping due to BinaryDependency (memcached)
2014-06-16 18:01:17,866 DEBUG    __init__.load(): Loading plugin iptables
2014-06-16 18:01:17,867 DEBUG    __init__.load(): Loading plugin codemirror
2014-06-16 18:01:17,868 DEBUG    __init__.load(): Loading plugin squid
2014-06-16 18:01:17,868 DEBUG    compat.Popen(): Popen: ['which', 'squid3']
2014-06-16 18:01:17,872 DEBUG    __init__.load(): Loading plugin ipmi
2014-06-16 18:01:17,872 DEBUG    compat.Popen(): Popen: ['which', 'ipmitool']
2014-06-16 18:01:17,876 DEBUG    __init__.load(): Loading plugin elements
2014-06-16 18:01:17,876 WARNING  __init__.load():  *** [elements] Plugin error: format error
2014-06-16 18:01:17,877 DEBUG    __init__.load(): Loading plugin users
2014-06-16 18:01:17,877 DEBUG    __init__.load(): Loading plugin webserver_common
2014-06-16 18:01:17,878 DEBUG    __init__.load(): Loading plugin scripts
2014-06-16 18:01:17,881 DEBUG    __init__.load(): Loading plugin openvpn
2014-06-16 18:01:17,881 DEBUG    compat.Popen(): Popen: ['which', 'openvpn']
2014-06-16 18:01:17,884 WARNING  __init__.load():  *** [openvpn] skipping due to BinaryDependency (openvpn)
2014-06-16 18:01:17,885 DEBUG    __init__.load(): Loading plugin fm
2014-06-16 18:01:17,887 DEBUG    __init__.load(): Loading plugin hosts
2014-06-16 18:01:17,887 DEBUG    __init__.load(): Loading plugin power
2014-06-16 18:01:17,888 DEBUG    compat.Popen(): Popen: ['which', 'systemctl']
2014-06-16 18:01:17,891 DEBUG    compat.Popen(): Popen: ['which', 'pm-hibernate']
2014-06-16 18:01:17,895 DEBUG    __init__.load(): Loading plugin ctdb
2014-06-16 18:01:17,895 DEBUG    compat.Popen(): Popen: ['which', 'ctdb']
2014-06-16 18:01:17,898 WARNING  __init__.load():  *** [ctdb] skipping due to BinaryDependency (ctdb)
2014-06-16 18:01:17,899 DEBUG    __init__.load(): Loading plugin samba
2014-06-16 18:01:17,899 DEBUG    compat.Popen(): Popen: ['which', 'smbd']
2014-06-16 18:01:17,902 WARNING  __init__.load():  *** [samba] skipping due to BinaryDependency (smbd)
2014-06-16 18:01:17,903 DEBUG    __init__.load(): Loading plugin taskmgr
2014-06-16 18:01:17,903 DEBUG    __init__.load(): Loading plugin csf
2014-06-16 18:01:17,903 DEBUG    compat.Popen(): Popen: ['which', 'csf']
2014-06-16 18:01:17,907 WARNING  __init__.load():  *** [csf] skipping due to BinaryDependency (csf)
2014-06-16 18:01:17,907 DEBUG    __init__.load(): Loading plugin nginx
2014-06-16 18:01:17,907 DEBUG    compat.Popen(): Popen: ['which', 'nginx']
2014-06-16 18:01:17,911 DEBUG    __init__.load(): Loading plugin configurator
2014-06-16 18:01:17,912 DEBUG    __init__.load(): Loading plugin dhcpd
2014-06-16 18:01:17,912 DEBUG    compat.Popen(): Popen: ['which', 'dhcpd']
2014-06-16 18:01:17,915 WARNING  __init__.load():  *** [dhcpd] skipping due to BinaryDependency (dhcpd)
2014-06-16 18:01:17,916 DEBUG    __init__.load(): Loading plugin sensors
2014-06-16 18:01:17,917 DEBUG    __init__.load(): Loading plugin notepad
2014-06-16 18:01:17,918 DEBUG    __init__.load(): Loading plugin lm_sensors
2014-06-16 18:01:17,919 DEBUG    compat.Popen(): Popen: ['which', 'sensors']
2014-06-16 18:01:17,923 DEBUG    __init__.load(): Loading plugin apache
2014-06-16 18:01:17,923 DEBUG    compat.Popen(): Popen: ['which', 'apache2']
2014-06-16 18:01:17,926 WARNING  __init__.load():  *** [apache] skipping due to BinaryDependency (apache2)
2014-06-16 18:01:17,927 DEBUG    __init__.load(): Loading plugin nsd
2014-06-16 18:01:17,927 DEBUG    compat.Popen(): Popen: ['which', 'nsd']
2014-06-16 18:01:17,930 WARNING  __init__.load():  *** [nsd] skipping due to BinaryDependency (nsd)
2014-06-16 18:01:17,930 DEBUG    __init__.load(): Loading plugin apcups
2014-06-16 18:01:17,931 DEBUG    compat.Popen(): Popen: ['which', 'apcaccess']
2014-06-16 18:01:17,934 WARNING  __init__.load():  *** [apcups] skipping due to BinaryDependency (apcaccess)
2014-06-16 18:01:17,934 DEBUG    __init__.load(): Loading plugin netatalk
2014-06-16 18:01:17,935 DEBUG    compat.Popen(): Popen: ['which', 'afpd']
2014-06-16 18:01:17,938 WARNING  __init__.load():  *** [netatalk] skipping due to BinaryDependency (afpd)
2014-06-16 18:01:17,938 DEBUG    __init__.load(): Loading plugin raid
2014-06-16 18:01:17,939 DEBUG    compat.Popen(): Popen: ['which', 'mdadm']
2014-06-16 18:01:17,942 DEBUG    __init__.load(): Loading plugin exports
2014-06-16 18:01:17,943 DEBUG    compat.Popen(): Popen: ['which', 'nfsstat']
2014-06-16 18:01:17,946 WARNING  __init__.load():  *** [exports] skipping due to BinaryDependency (nfsstat)
2014-06-16 18:01:17,946 DEBUG    __init__.load(): Loading plugin psql
2014-06-16 18:01:17,947 DEBUG    compat.Popen(): Popen: ['which', 'psql']
2014-06-16 18:01:17,950 WARNING  __init__.load():  *** [psql] skipping due to BinaryDependency (psql)
2014-06-16 18:01:17,950 DEBUG    __init__.load(): Loading plugin bind9
2014-06-16 18:01:17,951 DEBUG    compat.Popen(): Popen: ['which', 'named']
2014-06-16 18:01:17,954 DEBUG    __init__.load(): Loading plugin hdparm
2014-06-16 18:01:17,955 DEBUG    compat.Popen(): Popen: ['which', 'hdparm']
2014-06-16 18:01:17,958 DEBUG    __init__.load(): Loading plugin smartctl
2014-06-16 18:01:17,959 DEBUG    compat.Popen(): Popen: ['which', 'smartctl']
2014-06-16 18:01:17,962 WARNING  __init__.load():  *** [smartctl] skipping due to BinaryDependency (smartctl)
2014-06-16 18:01:17,962 DEBUG    __init__.load(): Loading plugin supervisor
2014-06-16 18:01:17,963 DEBUG    compat.Popen(): Popen: ['which', 'supervisord']
2014-06-16 18:01:17,966 DEBUG    __init__.load(): Loading plugin packages
2014-06-16 18:01:17,968 DEBUG    __init__.load(): Loading plugin resources
2014-06-16 18:01:17,969 DEBUG    __init__.load(): Loading plugin logs
2014-06-16 18:01:17,970 DEBUG    __init__.load(): Loading plugin megaraid
2014-06-16 18:01:17,970 WARNING  __init__.load():  *** [megaraid] skipping due to FileDependency (/opt/MegaRAID/MegaCli/MegaCli)
2014-06-16 18:01:17,971 DEBUG    __init__.load(): Loading plugin hddtemp
2014-06-16 18:01:17,971 DEBUG    compat.Popen(): Popen: ['which', 'hddtemp']
2014-06-16 18:01:17,975 DEBUG    __init__.load(): Loading plugin munin
2014-06-16 18:01:17,975 DEBUG    compat.Popen(): Popen: ['which', 'munin-cron']
2014-06-16 18:01:17,978 WARNING  __init__.load():  *** [munin] skipping due to BinaryDependency (munin-cron)
2014-06-16 18:01:17,979 DEBUG    __init__.load(): Loading plugin resolv
2014-06-16 18:01:17,979 DEBUG    __init__.load(): Loading plugin mysql
2014-06-16 18:01:17,980 DEBUG    compat.Popen(): Popen: ['which', 'mysql']
2014-06-16 18:01:17,983 DEBUG    compat.Popen(): Popen: ['which', 'mysqld_safe']
2014-06-16 18:01:17,986 WARNING  __init__.load():  *** [mysql] skipping due to BinaryDependency (mysqld_safe)
2014-06-16 18:01:17,987 DEBUG    __init__.load(): Loading plugin vh-nginx
2014-06-16 18:01:17,987 DEBUG    __init__.load_recursive(): Preloading plugin dependency: vh
2014-06-16 18:01:17,987 DEBUG    __init__.load(): Loading plugin vh
2014-06-16 18:01:17,990 DEBUG    __init__.load(): Loading plugin vh-nginx
2014-06-16 18:01:17,992 DEBUG    __init__.load(): Loading plugin vh-mail
2014-06-16 18:01:17,994 DEBUG    __init__.load(): Loading plugin vh-nodejs
2014-06-16 18:01:18,053 DEBUG    __init__.instantiate(): Root context instantiated [Inflater] <ajenti.ui.inflater.Inflater object at 0x264d310>
2014-06-16 18:01:18,055 DEBUG    __init__.instantiate(): Root context instantiated [UI] <ajenti.ui.UI object at 0x2652410>
2014-06-16 18:01:18,055 DEBUG    inflater.precache(): Precaching layout main:passwd-main
2014-06-16 18:01:18,057 DEBUG    inflater.precache(): Precaching layout main:file-dialog-save
2014-06-16 18:01:18,058 DEBUG    inflater.precache(): Precaching layout main:input-dialog
2014-06-16 18:01:18,059 DEBUG    inflater.precache(): Precaching layout main:file-dialog
2014-06-16 18:01:18,059 DEBUG    inflater.precache(): Precaching layout dashboard:welcome
2014-06-16 18:01:18,059 DEBUG    inflater.precache(): Precaching layout dashboard:text
2014-06-16 18:01:18,060 DEBUG    inflater.precache(): Precaching layout dashboard:dash
2014-06-16 18:01:18,063 DEBUG    inflater.precache(): Precaching layout services:main
2014-06-16 18:01:18,066 DEBUG    inflater.precache(): Precaching layout services:bar
2014-06-16 18:01:18,066 DEBUG    inflater.precache(): Precaching layout services:widget
2014-06-16 18:01:18,068 DEBUG    inflater.precache(): Precaching layout ajenti_org:config
2014-06-16 18:01:18,068 DEBUG    inflater.precache(): Precaching layout ajenti_org:main
2014-06-16 18:01:18,070 DEBUG    inflater.precache(): Precaching layout db_common:main
2014-06-16 18:01:18,075 DEBUG    inflater.precache(): Precaching layout cron:main
2014-06-16 18:01:18,084 DEBUG    inflater.precache(): Precaching layout tasks:params-execute
2014-06-16 18:01:18,085 DEBUG    inflater.precache(): Precaching layout tasks:main
2014-06-16 18:01:18,097 DEBUG    inflater.precache(): Precaching layout tasks:params-deletedir
2014-06-16 18:01:18,103 DEBUG    inflater.precache(): Precaching layout tasks:params-copydir
2014-06-16 18:01:18,113 DEBUG    inflater.precache(): Precaching layout tasks:params-rsync
2014-06-16 18:01:18,126 DEBUG    inflater.precache(): Precaching layout plugins:main
2014-06-16 18:01:18,135 DEBUG    inflater.precache(): Precaching layout network:main
2014-06-16 18:01:18,138 DEBUG    inflater.precache(): Precaching layout network:bit-linux-dhcp
2014-06-16 18:01:18,139 DEBUG    inflater.precache(): Precaching layout network:bit-linux-ipv4
2014-06-16 18:01:18,141 DEBUG    inflater.precache(): Precaching layout network:bit-linux-ifupdown
2014-06-16 18:01:18,142 DEBUG    inflater.precache(): Precaching layout network:bit-linux-basic
2014-06-16 18:01:18,143 DEBUG    inflater.precache(): Precaching layout network:widget
2014-06-16 18:01:18,144 DEBUG    inflater.precache(): Precaching layout fstab:main
2014-06-16 18:01:18,155 DEBUG    inflater.precache(): Precaching layout fstab:free-widget
2014-06-16 18:01:18,156 DEBUG    inflater.precache(): Precaching layout fstab:iio-widget
2014-06-16 18:01:18,157 DEBUG    inflater.precache(): Precaching layout fstab:widget
2014-06-16 18:01:18,158 DEBUG    inflater.precache(): Precaching layout terminal:config
2014-06-16 18:01:18,159 DEBUG    inflater.precache(): Precaching layout terminal:main
2014-06-16 18:01:18,160 DEBUG    inflater.precache(): Precaching layout iptables:option-reject-with
2014-06-16 18:01:18,161 DEBUG    inflater.precache(): Precaching layout iptables:option-ports
2014-06-16 18:01:18,162 DEBUG    inflater.precache(): Precaching layout iptables:option
2014-06-16 18:01:18,162 DEBUG    inflater.precache(): Precaching layout iptables:main
2014-06-16 18:01:18,167 DEBUG    inflater.precache(): Precaching layout iptables:option-custom
2014-06-16 18:01:18,169 DEBUG    inflater.precache(): Precaching layout iptables:option-match
2014-06-16 18:01:18,169 DEBUG    inflater.precache(): Precaching layout iptables:option-interface
2014-06-16 18:01:18,170 DEBUG    inflater.precache(): Precaching layout iptables:option-address
2014-06-16 18:01:18,170 DEBUG    inflater.precache(): Precaching layout iptables:option-port
2014-06-16 18:01:18,171 DEBUG    inflater.precache(): Precaching layout iptables:option-state
2014-06-16 18:01:18,172 DEBUG    inflater.precache(): Precaching layout iptables:option-protocol
2014-06-16 18:01:18,172 DEBUG    inflater.precache(): Precaching layout squid:main
2014-06-16 18:01:18,183 DEBUG    inflater.precache(): Precaching layout squid:options-editor
2014-06-16 18:01:18,183 DEBUG    inflater.precache(): Precaching layout squid:port-template
2014-06-16 18:01:18,184 DEBUG    inflater.precache(): Precaching layout ipmi:widget
2014-06-16 18:01:18,185 DEBUG    inflater.precache(): Precaching layout users:user-list
2014-06-16 18:01:18,192 DEBUG    inflater.precache(): Precaching layout users:main
2014-06-16 18:01:18,204 DEBUG    inflater.precache(): Precaching layout webserver_common:main
2014-06-16 18:01:18,207 DEBUG    inflater.precache(): Precaching layout scripts:widget
2014-06-16 18:01:18,214 DEBUG    inflater.precache(): Precaching layout fm:config
2014-06-16 18:01:18,215 DEBUG    inflater.precache(): Precaching layout fm:main
2014-06-16 18:01:18,227 DEBUG    inflater.precache(): Precaching layout hosts:main
2014-06-16 18:01:18,229 DEBUG    inflater.precache(): Precaching layout power:widget
2014-06-16 18:01:18,231 DEBUG    inflater.precache(): Precaching layout taskmgr:main
2014-06-16 18:01:18,235 DEBUG    inflater.precache(): Precaching layout configurator:ldap-sync-config
2014-06-16 18:01:18,236 DEBUG    inflater.precache(): Precaching layout configurator:main
2014-06-16 18:01:18,249 DEBUG    inflater.precache(): Precaching layout configurator:licensing
2014-06-16 18:01:18,251 DEBUG    inflater.precache(): Precaching layout configurator:ad-sync-config
2014-06-16 18:01:18,252 DEBUG    inflater.precache(): Precaching layout sensors:cpu-widget
2014-06-16 18:01:18,253 DEBUG    inflater.precache(): Precaching layout sensors:cpu-line
2014-06-16 18:01:18,254 DEBUG    inflater.precache(): Precaching layout sensors:progressbar-widget
2014-06-16 18:01:18,255 DEBUG    inflater.precache(): Precaching layout sensors:value-widget
2014-06-16 18:01:18,256 DEBUG    inflater.precache(): Precaching layout notepad:config
2014-06-16 18:01:18,257 DEBUG    inflater.precache(): Precaching layout notepad:main
2014-06-16 18:01:18,270 DEBUG    inflater.precache(): Precaching layout notepad:listitem
2014-06-16 18:01:18,270 DEBUG    inflater.precache(): Precaching layout lm_sensors:widget
2014-06-16 18:01:18,291 DEBUG    inflater.precache(): Precaching layout raid:main
2014-06-16 18:01:18,294 DEBUG    inflater.precache(): Precaching layout bind9:main
2014-06-16 18:01:18,302 DEBUG    inflater.precache(): Precaching layout hdparm:widget
2014-06-16 18:01:18,303 DEBUG    inflater.precache(): Precaching layout supervisor:main
2014-06-16 18:01:18,306 DEBUG    __init__.instantiate(): Root context instantiated [UpstartServiceManager] <ajenti.plugins.services.sm_upstart.UpstartServiceManager object at 0x27c3650>
2014-06-16 18:01:18,307 DEBUG    __init__.instantiate(): Root context instantiated [SysVInitServiceManager] <ajenti.plugins.services.sm_sysvinit.SysVInitServiceManager object at 0x27c3710>
2014-06-16 18:01:18,307 DEBUG    __init__.instantiate(): Root context instantiated [SupervisorServiceManager] <ajenti.plugins.supervisor.client.SupervisorServiceManager object at 0x27c3390>
2014-06-16 18:01:18,307 DEBUG    __init__.instantiate(): Root context instantiated [ServiceMultiplexor] <ajenti.plugins.services.api.ServiceMultiplexor object at 0x27b4f50>
2014-06-16 18:01:18,495 DEBUG    compat.Popen(): Popen: [u'/etc/init.d/supervisor', 'status']
2014-06-16 18:01:18,502 DEBUG    compat.Popen(): Popen: [u'/etc/init.d/supervisor', 'status']
2014-06-16 18:01:18,523 DEBUG    inflater.precache(): Precaching layout packages:main
2014-06-16 18:01:18,531 DEBUG    inflater.precache(): Precaching layout packages:row
2014-06-16 18:01:18,531 DEBUG    inflater.precache(): Precaching layout packages:installer
2014-06-16 18:01:18,531 DEBUG    inflater.precache(): Precaching layout packages:headers
2014-06-16 18:01:18,531 DEBUG    inflater.precache(): Precaching layout logs:main
2014-06-16 18:01:18,544 DEBUG    inflater.precache(): Precaching layout hddtemp:widget
2014-06-16 18:01:18,545 DEBUG    inflater.precache(): Precaching layout resolv:main
2014-06-16 18:01:18,547 DEBUG    inflater.precache(): Precaching layout vh:main-backend-params-python-wsgi
2014-06-16 18:01:18,553 DEBUG    inflater.precache(): Precaching layout vh:not-configured
2014-06-16 18:01:18,554 DEBUG    inflater.precache(): Precaching layout vh:main-website
2014-06-16 18:01:18,590 DEBUG    inflater.precache(): Precaching layout vh:main-backend-params-php-fcgi
2014-06-16 18:01:18,598 DEBUG    inflater.precache(): Precaching layout vh:main-backend-params-fcgi
2014-06-16 18:01:18,598 DEBUG    inflater.precache(): Precaching layout vh:main
2014-06-16 18:01:18,602 DEBUG    inflater.precache(): Precaching layout vh:main-backend-params-ruby-puma
2014-06-16 18:01:18,603 DEBUG    inflater.precache(): Precaching layout vh:main-backend-params-static
2014-06-16 18:01:18,604 DEBUG    inflater.precache(): Precaching layout vh:main-backend-params-proxy
2014-06-16 18:01:18,605 DEBUG    inflater.precache(): Precaching layout vh:main-website-location
2014-06-16 18:01:18,606 DEBUG    inflater.precache(): Precaching layout vh:main-backend-params-nodejs
2014-06-16 18:01:18,607 DEBUG    inflater.precache(): Precaching layout vh:main-backend-params-ruby-unicorn
2014-06-16 18:01:18,608 DEBUG    inflater.precache(): Precaching layout vh:ext-processes
2014-06-16 18:01:18,623 DEBUG    inflater.precache(): Precaching layout vh-mail:not-configured
2014-06-16 18:01:18,623 DEBUG    inflater.precache(): Precaching layout vh-mail:main
2014-06-16 18:01:18,722 ERROR    core.handle_crash(): Fatal crash occured

@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2014

Use 195.154.240.241 instead of https://195.154.240.241/. You only need a hostname there. BTW using a domain name didn't work because the A record for domain (184.168.221.20) you used doesn't match the IP of your server's network interface (195.154.240.241) - thus, a machine can't bind to an IP it doesn't know.

@cmpsoares91
Copy link
Author

Where did you see my A record? But the domain.com I'm redirecting to www subdomain which is sent to launchrock and all the other subdomains are sent to 195.154.240.241 when I check it on godaddy...

@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2014

ajenti.quantbull.com.   3184    IN      CNAME   quantbull.com.
quantbull.com.          3184    IN      A       184.168.221.20

@cmpsoares91
Copy link
Author

Where do you see that? Got me curious?

BTW. Seemed like when I set both http://quantbull.com and http://www.quantbull.com it got changed to another IP address and as ajenti subdomain was pointing to A it got changed too.

I know created a A record called server and pointed the intended subdomains to server and let's see what happens.

@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2014

You can use any DNS lookup tool to query the DNS zone. I just used dig which outputs result in zonefile-like format

@cmpsoares91
Copy link
Author

Last question: Should host in Ajenti always be the IP address? Or are there possibilities to go around it?

@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2014

It can be a domain name. But your problem was that the domain name wasn't resolved to an IP that belongs to the machine, so it couldn't listen on that address. (Of course you can just use 0.0.0.0 to bind to all IPs)

@cmpsoares91
Copy link
Author

ah ok... And subdomain name? Does that make any difference?

@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2014

There's no real difference between domains and subdomains. Your domain is a subdomain of .com anyway.

@cmpsoares91
Copy link
Author

Ah ok... I'me sorry, but it's all quite new for me... Never hosted a website before... All I did was fooling around on localhost.

@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2014

It will only give a different result if your subdomain resolved to a different IP. Actually what happens is that domain is resolved on start, and the resulting IP is used to bind. Domain name is then discarded.

@cmpsoares91
Copy link
Author

Ah ok. So in that case using the IP or a domain that points to it should do?

@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2014

Right

@cmpsoares91
Copy link
Author

For debugging problems is there a way I can check if DNS updated my changes?

@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2014

For example: https://www.whatsmydns.net/

@Eugeny Eugeny closed this as completed Jun 16, 2014
@cmpsoares91
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants