Seite 1 von 2
Configured depotId 'localhost.opsi.org' for host 'None' not
Verfasst: 15 Sep 2009, 11:19
von inszekt_
Hi guys!
I'm new in OPSI administration. I just installed the server, from a client I can connect to it, but the webinterface send me the next warning:
Opsi service error: [BackendMissingDataError] Configured depotId 'localhost.opsi.org' for host 'None' not in list of known depotIds ['opsidemo.localdomain']
what do I have, to disappearing this message?
thanks, peter
Re: lame question
Verfasst: 15 Sep 2009, 11:35
von wolfbardo
Hi Peter,
Check if the files
Code: Alles auswählen
/var/lib/opsi/config/global.ini
/var/lib/opsi/config/depots/*/depot.ini
empty. If they are empty try
Code: Alles auswählen
>/etc/opsi/passwd
rm /var/lib/opsi/config/depots/*/depot.ini
apt-get install --reinstall opsi-depotserver
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart
regards
Bardo Wolf
Re: lame question
Verfasst: 15 Sep 2009, 12:48
von inszekt_
wolfbardo hat geschrieben:Hi Peter,
Check if the files
Code: Alles auswählen
/var/lib/opsi/config/global.ini
/var/lib/opsi/config/depots/*/depot.ini
empty. If they are empty try
Code: Alles auswählen
>/etc/opsi/passwd
rm /var/lib/opsi/config/depots/*/depot.ini
apt-get install --reinstall opsi-depotserver
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart
regards
Bardo Wolf
Hi Bardo!
thanks the fast response. the files aren't empty. here are the contents:
/var/lib/opsi/config/global.ini
[generalConfig]
pcptchBitmap1 = winst1.bmp
pcptchBitmap2 = winst2.bmp
pcptchLabel1 = opsi
pcptchLabel1 = uib
secsUntilConnectionTimeOut = 180
button_stopnetworkin =
[networkConfig]
utilsDrive = P:
depotDrive = P:
configDrive = O:
depotId = @FQDN@
winDomain = @WINDOMAIN@
nextBootServerType = service
nextBootServiceURL = http://@IPADDRESS@:4447
/var/lib/opsi/config/depots/opsidemo.localdomain/depot.ini
[depotshare]
remoteurl = smb://opsidemo/opt_pcbin/install
localurl = file://opt/pcbin/install
[depotserver]
notes =
network = 127.0.1.1/255.255.225.0 (I think it's not correct. I will modify to the IP of the opsi-server)
description =
[repository]
remoteurl = webdavs://opsidemo.localdomain:4447/products
localurl = file:///var/lib/opsi/products
maxbandwidth = 0
Peter
Re: lame question
Verfasst: 15 Sep 2009, 13:08
von matth46
inszekt_ hat geschrieben:
[depotserver]
notes =
network = 127.0.1.1/255.255.225.0
description =
You have to change this to your network's specs, so if your opsi server has e.g. 192.168.2.1, then you should modify this to 192.168.2.0/255.255.255.0
Re: lame question
Verfasst: 15 Sep 2009, 13:43
von inszekt_
You have to change this to your network's specs, so if your opsi server has e.g. 192.168.2.1, then you should modify this to 192.168.2.0/255.255.255.0
I changed it to the correct IP-config (192.168.0.0/255.255.255.0)
the error message didn't disappear.
Re: lame question
Verfasst: 15 Sep 2009, 13:49
von wolfbardo
check/post the opsiserver entry in /etc/hosts and the output of
regards
Bardo WOlf
Re: lame question
Verfasst: 15 Sep 2009, 16:51
von inszekt_
getent hosts `hostname -f` :
192.168.0.1 opsidemo.localdomain opsidemo
cat /etc/hosts :
192.168.0.1 localhost
192.168.0.1 opsidemo.localdomain opsidemo
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
peter
Re: lame question
Verfasst: 15 Sep 2009, 18:42
von d.oertel
Hi,
I see two problems.
The first:
getent hosts `hostname -f` :
192.168.0.1 opsidemo.localdomain opsidemo
The installation manual says:
Check the opsiserver entry in /etc/hosts or the output of
getent hosts `hostname -f`
The result should be similar to
192.168.1.1 server.domain.tld server
If the Result isn't like that and contains for examle 127.0.0.1 or localhost you should
correct your /etc/hosts or your DNS before you continue with the installation.
opsidemo.localdomain
is not
server.domain.tld
We need a TopLeveDomain (tld). A Domain with only one dot doesn't work.
The second problem is
cat /etc/hosts :
192.168.0.1 localhost
192.168.0.1 opsidemo.localdomain opsidemo
Please change it to (for example:
Code: Alles auswählen
192.168.0.1 opsidemo.localdomain.local opsidemo
127.0.0.1 localhost
Then try to install opsi (or reinstall the package opsi-depotserver)
regards
d.oertel
Re: lame question
Verfasst: 16 Sep 2009, 21:31
von inszekt_
Hi d. oertel
it solved the problem! thanks for the help.
regards, peter
Re: Configured depotId 'localhost.opsi.org' for host 'None'
Verfasst: 18 Feb 2011, 13:14
von Koenraad
Hi,
I seem to have the same problem : I installed Ubuntu 10.04 LTS, I corrected the hosts-file and for some reason I must have rebooted before installing opsi. I didn't know the machine reverted the hosts-file to it's "default" state after a reboot, meaning it added an entry with 127.0.1.1 as hostaddress. I went ahead and configured all to automatically install windows-xp. To my surprise the newly installed windows-xp tried to get it's information is 127.0.1.1. So I searched the forum, getting an answer in this thread, I think.
I found the cause of the reverted hosts-file and disabled this. So now when I reboot the opsi-server my hosts-file remains the same. Unfortunately, I can't get rid of the 127.0.1.1 address. I re-installed the opsi-depotserver with no success, I uninstalled all opsi-packages, and re-installed them, with no success.
I also checked /var/lib/opsi/config : I don't have global.ini. I only have depots/opsi.ace-electronics.be.ini that contains the right info (I think) :
[depotserver]
description =
hardwareaddress = 00:0c:29:ac:87:f3
inventorynumber =
ipaddress = 192.168.1.100
ismasterdepot = true
network = 192.168.0.0/255.255.240.0
So where exactly is that configuration stored that dictates the ip-address of 127.0.1.1 ?
I hope someone can help me. My tests with opsi (vm-image) went fine, now I want to really use it, I'm stuck on that stupid ip-address thing. Maybe I should just start from scratch.
If anyone knows how the use the opsi-vm with VMWare esxi, I would be gratefull.
Thanks,
Koenraad Lelong.