Domains doesn't create/delete correctly

Equand

Verified User
Joined
Feb 27, 2006
Messages
38
It's a system-wide problem.
I'm using an admin as the main user.
So some days earlier it started to be a little buggy. It has an Apache/1.3.33 (Unix) installed.
The problems i noticed:
ftp users don't work, their passwords doesn't change.
when i create a domain in user panel, it doesn't have ns records and the httpd.conf record doesn't have an IP address written in it. when i delete it DA hangs up and gives a timeout error.
now finally, the already working accounts in my da stopped working from time to time randomly. i can't understand what could possibly do something like this, please help. maybe it's a chmod somewhere?

the users dir in DA looks like

total 72
-rw-r--r-- 1 diradmin diradmin 26182 Oct 21 03:43 DAdminUsage.bytes
-rw------- 1 diradmin diradmin 47 Jan 29 2006 backup.conf
-rw-r--r-- 1 root diradmin 6608 Oct 20 06:32 bandwidth.tally
-rw------- 1 diradmin diradmin 0 Jan 13 2006 crontab.conf
drwx--x--x 2 diradmin diradmin 1024 Oct 20 22:05 domains
-rw------- 1 diradmin diradmin 51 Oct 20 22:04 domains.list
-rw-r--r-- 1 root ftp 0 Oct 20 22:04 ftp.passwd
-rw-r--r-- 1 diradmin diradmin 7818 Oct 20 22:04 httpd.conf
-rw------- 1 diradmin diradmin 28 Apr 20 2006 ip.list
-rw------- 1 diradmin diradmin 749 Oct 21 03:42 login.hist
drwx------ 2 diradmin diradmin 512 Jan 13 2006 packages
-rw------- 1 diradmin diradmin 0 Jan 13 2006 packages.list
-rw------- 1 diradmin diradmin 121 Oct 20 06:32 reseller.allocation
-rw------- 1 diradmin diradmin 464 Oct 20 18:47 reseller.conf
-rw------- 1 diradmin diradmin 453 Oct 1 01:40 reseller.history
-rw------- 1 diradmin diradmin 131 Oct 20 22:04 reseller.usage
-rw------- 1 diradmin diradmin 154 Oct 20 06:13 ticket.conf
-rw-r--r-- 1 diradmin diradmin 1327 Jan 13 2006 u_welcome.txt
-rw------- 1 diradmin diradmin 527 Oct 18 13:46 user.conf
-rw------- 1 diradmin diradmin 453 Oct 1 01:40 user.history
-rw------- 1 diradmin diradmin 162 Oct 20 22:04 user.usage
-rw------- 1 diradmin diradmin 0 Jan 13 2006 users.list
 
Last edited:
Hello,

ftp users don't work, their passwords doesn't change
Is this an "owned" IP address? If so:
- try restarting proftpd
- make sure you are connecting to that "owned" IP, because other IPs won't work for them.
- check through this: http://help.directadmin.com/item.php?id=122

when i create a domain in user panel, it doesn't have ns records
Check the contents of the reseller.conf in that directory. Make sure there are values for "ns1" and "ns2". Do the same for the user.conf (same fields)

the httpd.conf record doesn't have an IP address written in it
check ./domains/domain.com/.conf .. there should be an "ip=" field, with the IP beside it.

i delete it DA hangs up and gives a timeout error.
Check the /var/log/directadmin/error.log to see what was last flagged before the timeout happened.

Couldn't say for sure about the "random" problem.. depends if it's apache, or dns, or network related.

John
 
ok so i've done everything u told above,
now, yes there are no ip records, the dns didn't create correctly and the dns's didn't show up until i added them and dnscontrol put to ON
next thing i found out is that the ip adress doesn't enter in any files at all!

at the admin level in IP management panel the main server ip is not under admin reseller... maybe that's the problem, is there any workout? like in files?
 
2006:10:26-19:09:03: ConfigFile::writeFile() : Timestamp from when it was read is different, overwriting anyway
2006:10:26-19:09:03: Ftp::addVirtualHost: tried to write server IP (81.176.68.49) into proftpd.vhosts.conf file: prvt: 0
2006:10:26-19:12:54: removing old lock: ./data/users/admin/user.usage.lock
2006:10:26-19:17:51: remove server ip from WHO?
2006:10:26-19:23:01: Socket write error: fd is connected to a pipe or socket whose reading end is closed. When this happens the writing process will also receive a SIG_PIPE signal. (Thus, the write return value is seen only if the program catches, blocks or ignores this signal.)
2006:10:26-19:23:20: userconfig file ip is (null) in ./data/users/admin/user.conf
Timeout from from 81.195.237.4 : last flagged: getDirFilesAndDirs(/home/admin/domains/********/public_html/pix/pix2/latex/00001/thumbs, *tlf, *tdlf, apache)

in error log
 
added the ip adress line to user.conf
fixed almost everything, now why it wasn't there?

*ftp still not working, password doesn't change.
 
That's a good question, I'm not sure. Perhaps it was missing at install time? not sure.
For ftp, if you were missing the user.conf ip, you might be missing the ftp.conf ip as well:
/usr/local/directadmin/data/users/admin/domains/domain.com.ftp
there is an ip= there as well.

John
 
yeah that was added too, but still not working...
even with ip=... in .ftp file
 
Back
Top