EC2 - Server's setting didn't update / Service Monitor can't restart / Several Issues

byon

Verified User
Joined
Feb 26, 2011
Messages
9
Hi all,

I hope you can help me. Here are several issues during my migration to EC2.

  • Inside Administrator's Setting Page, my NS1/NS2 domain name does not display in full. and my server name which i tried to save 1 minute ago did not appear.


    When i try to restart/reload service at Service Monitor, the error has occurred.


  • When i try to restart DA from console, i get service Failed to stop but successfully started.


  • I also get an error updating the license via License Update page

    But if i update it via console it's fine.


  • I am unable to get DA current version values from control panel


Most of them are related to the web which did not hinder my operations.

Please assist!


Thank you in advance.
 
I can't reload/restart named and sshd services. the error has occured will be shown. :(
 
Hello,

1) If you're on EC2, if my memory is correct, it's setup like a LAN, so when DA binds to the licensed IP for outbound connections, it won't work.

If you need to update the license, do so manually:
http://help.directadmin.com/item.php?id=30

Type:
/sbin/ifconfig

to see which IPs are loaded in the device.
If there are 192.168.x.x IPs (or 10.x.x.x) in the device, then it's on a LAN, and the licensed IP won't be able to function within that network.


2) Regarding the nameservers, that's likely because the hostname needs to be in the form:

server.smusa.org

Change the hostname, and update the ns1/ns2 values.

3) Regarding named not starting up, login to ssh and type:
Code:
killall -9 named
/etc/init.d/named start
to see what errors show up.
Check /var/log/messages for clues.

4) The restart of DA which shows failed likely means the PID file is out of sync. To resolve that, type:
Code:
cd /usr/local/directadmin
killall -9 directadmin
./directadmin d

5) Getting the current version of DA also has to do with running DA on a LAN. DA binds to the licensed IP, which isn't valid within a LAN, hence it can't get the info.

John
 
1) If you're on EC2, if my memory is correct, it's setup like a LAN, so when DA binds to the licensed IP for outbound connections, it won't work.
i have binded directadmin to the licensed IP with a virtual eth, eth0:0

2) Regarding the nameservers, that's likely because the hostname needs to be in the form: server.smusa.org

it is already www.smusa.sg. and inside directadmin.conf i could see that the values are what i clicked save. just that on the web it isn't reflecting the right values in the config file.

3) Regarding named not starting up,
the named server is started, it is that i can't stop the service from Service Monitor

4) The restart of DA which shows failed likely means the PID file is out of sync.

i can't get directadmin started as i can't find it with "ps ux | grep directadmin"
could this be the issue?


5) Getting the current version of DA also has to do with running DA on a LAN. DA binds to the licensed IP, which isn't valid within a LAN, hence it can't get the info.
i binded directadmin to start with eth0:0

thanks John!
 
i would like to update DA via the web whenever possible, however the fd isn't binding to the right socket which i suppose is the crux of the issue. and would be linked to the question below to why my directadmin isn't starting.

I hope my thoughts help.
 
Code:
root@www:/usr/local/directadmin/conf# service directadmin restart
Stopping DirectAdmin: [ OK ]
Starting DirectAdmin: [ OK ]
root@www:/usr/local/directadmin/conf#

i solved this issue by removing bind_address=46.x.x.x in directadmin.conf.
 
Hello,

1) If a 192.168.x.x or 10.x.x.x IP is on eth0, and there is an external IP on eth0:0, then external IP is running on an internal network, so can't be bound to.
DA will still run, there will just be a few things that need to be done manually.

2) Note that www.smusa.sg is a valid hostname, but smusa.sg is not. It needs to have something before the smusa.sg for a valid hostname at:
Admin Level -> Admin Settings -> Servername

3) Once hitting "stop" in the Admin Level -> Services Monitor, login to ssh, and type:
Code:
killall -9 named
which will most definitely kill it. It's important to click "stop" in the Services Monitor, or else the dataskq will just start it up again (should be "OFF" in /usr/local/directadmin/data/admin/services.status)

4) Note that it should be "ps ax | grep directadmin" where the "a" is missing for yours. Without the "a" (all), it only shows your own local processes, instead of all processes from the server.

John
 
Hello,

1) If a 192.168.x.x or 10.x.x.x IP is on eth0, and there is an external IP on eth0:0, then external IP is running on an internal network, so can't be bound to.
DA will still run, there will just be a few things that need to be done manually.
ok binded it to eth0. no issues with administrator's page already.

2) Note that www.smusa.sg is a valid hostname, but smusa.sg is not. It needs to have something before the smusa.sg for a valid hostname at:
Admin Level -> Admin Settings -> Servername
done. no issues here

3) Once hitting "stop" in the Admin Level -> Services Monitor, login to ssh, and type:
Code:
killall -9 named
which will most definitely kill it. It's important to click "stop" in the Services Monitor, or else the dataskq will just start it up again (should be "OFF" in /usr/local/directadmin/data/admin/services.status)
I can't hit "stop" in the Admin Level -> Services Monitor. An error has occured will be displayed.
However i can killall named services inside my ssh. Yes dataskq dispalys the right info if i kill it from ssh.


4) Note that it should be "ps ax | grep directadmin" where the "a" is missing for yours. Without the "a" (all), it only shows your own local processes, instead of all processes from the server.
you are right. still i can't get 'licensing/updates' page to display the current available version.

John


Hi there,

thanks for your reply. replies in blue, hoping to get your reply soon!
 
Hello,

If it is on a LAN, as mentioned, there are certain things that won't work. The "Licenses/Updates" page, the latest DA version won't work.

Also, updates of the license and DA itself won't work through DA. You'll need to use the scripts, eg:
http://help.directadmin.com/item.php?id=30
http://help.directadmin.com/item.php?id=29

Understood. I'll run the updates manually.


Regarding named, if the boot script itself is wrong, check this:
http://help.directadmin.com/item.php?id=40

Thanks. Let me try it!

John

replies in blue
 
Back
Top