[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [RAQ4] HELP /usr/admserv/html/.cobalt/siteManage/ there are NO sites in there anymore ?
- Subject: Re: [cobalt-users] [RAQ4] HELP /usr/admserv/html/.cobalt/siteManage/ there are NO sites in there anymore ?
- From: Andy Brown <andy.brown@xxxxxxxxxxxxx>
- Date: Thu Jan 9 05:26:01 2003
- Organization: Interv8 Ltd
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
<snip>
On Wednesday 08 January 2003 4:23 pm, Bob Lenaerts wrote:
> Hi All,
>
> I didn't do anything, but it came to my attention that a customer called
> me that he could not get mails.
> I wanted to see his disq quota, and there I've got a FILE NOT FOUND when
> I wanted to see his /siteadmin
>
> Then I go to /usr/admserv/html/.cobalt/siteManage/ and there is 1 site
> in :
</snip>
Ouch, not good! Firstly, it sounds like something more than just the links in
/usr/admserv have gone screwy.
When you go to the GUI and the Site Management, are there ANY hosts in there,
or does it give u a message like 'No sites found' ?
If No sites found, then it probably means your Postgresql database isn't
running.
So check that first, make sure there is a process running like this:
ps ax |grep postmaster
1160 ? SN 0:18 /usr/bin/postmaster
This is the postgresql database server up and running on my RaQ4 here.
If its not running, try to start it with :
/etc/rc.d/init.d/postgresql start
ok, now onto the problem that no symlinks are in
/usr/admserv/html/.cobalt/siteManage/
To restore those, a little bit of perl will work, use this script:
#!/usr/bin/perl
require Cobalt::Layout;
require Cobalt::Admserv;
require Cobalt::Vsite;
require Cobalt::Meta;
use Cobalt::Product;
foreach my $vhost (Cobalt::Vsite::vsite_list()) {
next unless ($$vhost[1]);
my $fqdn = $$vhost[1];
my ($group) = Cobalt::Meta::query("type" => "vsite",
"keys" => ["name"],
"where" => ["name", "<>", "default",
"and", "fqdn", "=", "$fqdn"]);
next if($group eq "home");
if($group) {
warn "creating admserver pages for group: $group sitename:
$fqdn\n";
Cobalt::Layout::layout_siteManage($group, $fqdn);
Cobalt::Admserv::admserv_set_access(qq[$AdminPages_dir/siteManage/$group],'require',
'group', $group);
unlink("$AdminPages_dir/siteManage/$fqdn") if (-l
"$AdminPages_dir/siteManage/$fqdn");
symlink("$AdminPages_dir/siteManage/$group","$AdminPages_dir/siteManage/$fqdn");
} else {
warn "unkown fqdn: $fqdn or group: $group\n";
}
}
(Let me know if you can't execute this and i'll put it on my site for
download.)
The no-relaying problem sounds like its lost email settings. after postgresql
is definately running, go in and check settings for each domain, then the
main settings for email in Control Panel > parameters.
hopefully that'll get you started...
Regards,
Andy
andy@xxxxxxxxxx
http://www.raqpak.com/