It looks like I could use a hand here...
Overnight I did the upgrade from my old 2.0. server to the Zentyal 2.2. Seemingly there were little problems, but when the migration tool finished,
there was no access to the admin interface anymore.
The last line from the migration tool was:
* Starting Zentyal module: apache [fail]
The other error I got during migration was with moving the ssl cert to the new name.
mv: cannot stat '/etc/apache/ssl/apache.pem:: No such file or directory
After that I copied and renamed the .pem file by hand, but I never had the "etc/apache/ssl" dir but instead "etc/apache2/ssl dir".
So far I so good - but still no Zentyal admin interface.
I looked up robb's post and did the grep command, and sure - nothing listening on port 443.
netstat -tlnp | grep apache2
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 23121/apache2
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 9956/apache2
Next, tried robb's suggestion dpkg --reconfigure zentyal
and got "package not installed".
So I did "apt-get install zentyal" and it installed ok.
Trying to restart zentyal apache and got this error:
/etc/init.d/zentyal apache restart
* Restarting Zentyal module: apache [fail]
root command /usr/share/zentyal/change-hostname ~ failed.
Error output: sed: -e expression #1, char 11: unknown option to `s'
sed: -e expression #1, char 11: unknown option to `s'
hostname: the specified hostname is invalid
Command output: .
Exit value: 1
I checked the hostname file in /etc and it has the correct hostname inside so I do not understand what is happening?
BTW, It seems that other functions like filesharing and printer sharing are working.
Looking at the Zentyal log, there are a few ugly entries:
11/16 03:02:45 DEBUG> Network.pm:1257 EBox::Network::setIfaceStatic - Interface eth0:vif0110 does not exist.
2011/11/16 03:02:45 WARN> Network.pm:192 EBox::Network::__ANON__ - Network configuration import failed
2011/11/16 03:05:32 DEBUG> UsersAndGroups.pm:1394 EBox::UsersAndGroups::userInfo - user name root does not exist.
2011/11/16 03:05:32 DEBUG> UsersAndGroups.pm:1394 EBox::UsersAndGroups::userInfo - user name hans does not exist.
2011/11/16 03:08:46 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: apache
2011/11/16 03:08:46 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command /usr/share/zentyal/change-hostname ~ failed.
Error output: sed: -e expression #1, char 11: unknown option to `s'
sed: -e expression #1, char 11: unknown option to `s'
hostname: the specified hostname is invalid
Command output: .
Exit value: 1
2011/11/16 03:08:46 ERROR> Service.pm:721 EBox::Module::Service::__ANON__ - Error restarting service: root command /usr/share/zentyal/change-hostname ~ failed.
Error output: sed: -e expression #1, char 11: unknown option to `s'
sed: -e expression #1, char 11: unknown option to `s'
hostname: the specified hostname is invalid
and finally the output from change-hostname:
#!/bin/bash
NEW=$1
if [ -z $NEW ]
then
echo "Usage: $0 <new_hostname>"
exit 1
fi
CURRENT=`hostname`
sed -i "s/$CURRENT/$NEW/" /etc/hostname
sed -i "s/$CURRENT/$NEW/g" /etc/hosts
hostname $NEW
In short, it seems that the last steps from the post-upgrade script got interrupted, and now the zentyal admin interface is not starting.
I'm close to jumping of a bridge at the moment, all was working fine before but it got borked. Please help!
Cheers.