Sites not displaying after using the user backup tool in DA

tarquel

Verified User
Joined
Nov 6, 2006
Messages
106
Location
Mid-Wales, UK
Hi all

I'll try and explain what I did.... bear with me...

I was in the reseller admin and I went to make a user backup in the "Manage User Backups" section.

I chose the user in question, chose to run it "now" and have it placed in the local uesr_backups directory.

Took a minute or so and it was done... so i started downloading the archive so that i a local copy here.

While it was downloading, I thought I'd look at the site.... to my surprise, it was showing the default apache install page... I thought, oh dear, I best look at another site - and it was the same....

As far as I can see, all the websites / users that share the same IP as the server have this happen to them.

The other two users on a seperate [dedicated] IP are unaffected.

So, after a bit of digging, i get the following in my directadmin error log:

2007:03:12-22:58:50: Socket write error: Unknown error
2007:03:12-22:58:50: Error while sending ./data/skins/enhanced/images/nav-password.gif
2007:03:14-17:29:45: IP::addToIP::adding owner to already owned ip
2007:03:17-02:28:08: 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.)
2007:03:17-02:28:08: Error reading from 80.xxx.xxx.xxx:
2007:03:17-03:09:09: Unable to find ip file

2007:03:17-03:09:12: Unable to find ip file

2007:03:17-03:09:12: Unable to find ip file

2007:03:17-04:11:58: Unable to find ip file

2007:03:17-04:32:44: Unable to find ip file

2007:03:17-04:32:50: Unable to find ip file

2007:03:17-04:33:02: Unable to find ip file

I cant seem to find which ip file it is refering to.

The only thing that i have done except for the backup is in the "IP Management" when i accidentally clicked the "Add IP" button without entering any information i.e. it just had the netmask as the default and a blank text box for the IP field.

Nothing appeared to happen when I clicked the "Add IP" button by accident so I'm not sure if its related or not.

All the users, domains and directories seem to be in tact - but i cant find whats missing.

I do get the following when restarting httpd:

Stopping httpd: [ OK ]
Starting httpd: [Sat Mar 17 05:21:40 2007] [warn] module perl_module is already loaded, skipping
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x5:80 overlaps with VirtualHost 217.xxx.xx.x5:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x5:80 overlaps with VirtualHost 217.xxx.xx.x5:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x5:80 overlaps with VirtualHost 217.xxx.xx.x5:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x5:80 overlaps with VirtualHost 217.xxx.xx.x5:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x7:80 overlaps with VirtualHost 217.xxx.xx.x7:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x7:80 overlaps with VirtualHost 217.xxx.xx.x7:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x7:80 overlaps with VirtualHost 217.xxx.xx.x7:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x7:80 overlaps with VirtualHost 217.xxx.xx.x7:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x7:80 overlaps with VirtualHost 217.xxx.xx.x7:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x7:80 overlaps with VirtualHost 217.xxx.xx.x7:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x7:80 overlaps with VirtualHost 217.xxx.xx.x7:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x7:80 overlaps with VirtualHost 217.xxx.xx.x7:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x5:80 overlaps with VirtualHost 217.xxx.xx.x5:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x5:443 overlaps with VirtualHost 217.xxx.xx.x5:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Mar 17 05:21:40 2007] [warn] VirtualHost 217.xxx.xx.x5:80 overlaps with VirtualHost 217.xxx.xx.x5:80, the first has precedence, perhaps you need a NameVirtualHost directive
[ OK ]

I also took a look at the ips.conf file as mentioned in other threads with similar messages [havent found anything on "Unable to find ip file" though] and all it contains is:

# Auto generated apache config file by DirectAdmin version 1.29.2
# Modifying this file is not recommended as any changes you make will be
# overwritten when you add/remove ip's through DirectAdmin.

LogFormat "%b \"%r\"" homedir

I'm thinking it should have more than that, but I have no idea what to enter and in what format [if anyone has any examples, that would be great].

Just hope there is someone online at the moment to help with this as its getting to be early morning and i'm trying not to fall asleep while i work this out :( :S

I dont know if i've found a bug inadvertantly, but it certainly is an annoying one.

[ps I've run rkhunter btw and all checks out fine incase someone asks ;)]

Many thanks for any help you can give.

Nath.
 
success.... but whether it works or not is another thing hehe

I modified the ips.conf file to the following:
-----
# Auto generated apache config file by DirectAdmin version 1.29.2
# Modifying this file is not recommended as any changes you make will be
# overwritten when you add/remove ip's through DirectAdmin.

LogFormat "%b \"%r\"" homedir

NameVirtualHost 217.xxx.xx.x5
NameVirtualHost 217.xxx.xx.x7
----
instead of just what was currently there:
----
# Auto generated apache config file by DirectAdmin version 1.29.2
# Modifying this file is not recommended as any changes you make will be
# overwritten when you add/remove ip's through DirectAdmin.

LogFormat "%b \"%r\"" homedir
----

Any thoughts as to if thats correct and how it should be?

Just tried accidentally [on purpose] clicking that Add IP button again without filling any data in, and it clears the IPs out of the file!

Is this a bug or by design?


Regards
Nath.
 
I've never seen anything like that; I've never read of anyone else seeing a problem like that.

Is it possible you ran out of disk space at some point during the procedure?

Jeff
 
Nope... plenty of space of all partitions :)

I wonder what it could be? :/

Some file permission somewhere not as it should be perhaps? Not sure why it would be though, as I dont "play" with DA and those kind of config files etc.

Regards
Nath.
 
Hello,

the ip file is the admin list of ips:

/usr/local/directadmin/data/admin/ip.list

I've added more detail in the error log for the next release.

In any case, you *really* need that file ;)
Create it if you don't have it. The list of IPs that shoud be in it are the IPs on your system... which should be present in:
/usr/local/directadmin/data/admin/ips/*

Once the ip.list file is back, then type:

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue


For any user who's website is showing the apache page
1) check his /usr/local/directadmin/data/users/username/httpd.conf to see if the domain is present with the correct IP address
2) if not, check /usr/local/directadmin/data/users/username/domains.list to ensure the domain is there.
3) make sure that User's "Include" line is present at the very bottom of the /etc/httpd/conf/httpd.conf file.

John
 
Back
Top