User Creation Issue

VitalMetrix

Verified User
Joined
Feb 5, 2004
Messages
9
I have currently added a domain as the admin and everything seemed to be working fine. However, when I try to then create a user for this domain, I get an error message saying:

Cannot create user

Details
That domain already exists

Could someone point me in the right direction on how to get beyond this issue, so I can then create a user for this domain and administer it through DA?

Regards,
Jaret
 
Hello,

Make sure nobody else has already created this domain before you. Go to "Admin Panel -> Show All Accounts -> Advanced search -> Domains(s) , contains , domain.com -> "Search".

If it's not on the system, then just remove the line from your named.conf file (/etc/named.conf or /etc/namedb/named.conf)

John
 
Still not working...

I actually went into the named.conf file and deleted the reference to the domain. After doing this, I tried adding the user. At this point it gave me an error, saying that there was a segmentation fault.

I then went to the DNS Administration, and saw that the domain was no longer there...so I readded it through this interface.

I then went back into the User Accounts, searched for the name, or any names and there was no user/name present for this domain. I tried to add it again and it told me that this user already exists?! I tried another search with no criteria to get a full list, and it did not show up. So, I tried adding another user, with a different username to the same domain. At this point, I got the same message as originally..."cannot create user, domain already exists".

Still looking, but no idea yet?!! Any other ideas?

- J
 
Hello,

A segfault? was it DA generating the segfault, or was it a message sent by a program that DA ran during the user creation process? .. check /var/log/directadmin/error.log for a line that says "segfault" and paste back the whole line. It should have the location of the program where it occured (assuming that it was DA that segfaulted..)

Some redhat 9.0 systems have a shadow-utils bug that causes the useradd program to generated a segfault, so if it's not DA, perhaps it's there.

The "domain already exists" error *only* occurs when the domain exists in the named.conf file.

John
 
Here is the log file insert:

/var/named/vitalmetrix.com.db for reading
2004:02:04-06:48:19: Auth::passValid: unable to get user_info for vitalmet
2004:02:05-03:29:28: Unable to create /home/vitalmet/domains/vitalmetrix.com
2004:02:05-03:29:28: Unable to copy /home/admin/domains/default to /home/vitalmet/domains/vitalmetrix.com/public_html : <b>A directory component in /home/vitalmet/domains/vitalmetrix.com/public_html does not exist or is a dangling symbolic link</b><br>
Unable to create the directory /home/vitalmet/domains/vitalmetrix.com/public_html<br>

2004:02:05-03:29:28: *** Segmentation fault *** creating /home/vitalmet/domains/vitalmetrix.com/public_html/cgi-bin : User: admin : 68.109.122.28 : /CMD_ACCOUNT_USER : (null) : action=create&username=vitalmet&[email protected]&passwd=***&passwd2=***&domain=vitalmetrix.com&package=Gold&ip=209.208.125.34&notify=yes&add=Submit

Hope this helps...

Thanks,
Jaret
 
Ok, at this point I still have the problem. Only now, if I try and login with the user that wasn't created "supposedly" before, I get through the login to a page that says, "User Error", Unable to determine usertype user.conf needs to be repaired.

Any suggestions?

Regards,
J
 
Hello,

I had a look and it seems like "useradd" is creating the /home/username directory owned by root. I tried chown-ing it back to the proper username but it says that the disk quota has been exceeded (by root?!) ... quota -v root didn't show any quotas, so I'm thinking you need to contact your vps provider to see if they can shed any light on the issue (perhaps the real hard drive is full?)..

John
 
Ok, have pinpointed the problem now, and it seems that DA is doing something wierd with the httpd.conf file. Here is the error I am getting. Basically, at this point the entire server is not able to start up properly. HELP!

Executing /etc/rc.d/init.d/httpd start ..

Starting httpd: fopen: No such file or directory
httpd: could not open document config file /usr/local/directadmin/data/users/vitalmet/httpd.conf
 
Hello,

If the users are only half created, then their httpd.conf files won't be created yet (segfault occurs before that). If you want apache to be running, just comment the included http.conf file out of the /etc/httpd/conf/httpd.conf file (bottom).

John
 
Back
Top