Configured depotId 'localhost.opsi.org' for host 'None' not

inszekt_
Beiträge: 65
Registriert: 15 Sep 2009, 11:06

Configured depotId 'localhost.opsi.org' for host 'None' not

Beitrag 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
Zuletzt geändert von inszekt_ am 16 Sep 2009, 21:40, insgesamt 2-mal geändert.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

Re: lame question

Beitrag 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


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


inszekt_
Beiträge: 65
Registriert: 15 Sep 2009, 11:06

Re: lame question

Beitrag 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
matth46
Beiträge: 172
Registriert: 22 Jun 2009, 19:48

Re: lame question

Beitrag 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
inszekt_
Beiträge: 65
Registriert: 15 Sep 2009, 11:06

Re: lame question

Beitrag 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.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

Re: lame question

Beitrag von wolfbardo »

check/post the opsiserver entry in /etc/hosts and the output of

Code: Alles auswählen

getent hosts `hostname -f`
regards
Bardo WOlf


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


inszekt_
Beiträge: 65
Registriert: 15 Sep 2009, 11:06

Re: lame question

Beitrag 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
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: lame question

Beitrag 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


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


inszekt_
Beiträge: 65
Registriert: 15 Sep 2009, 11:06

Re: lame question

Beitrag von inszekt_ »

Hi d. oertel

it solved the problem! thanks for the help.

regards, peter
Koenraad
Beiträge: 26
Registriert: 14 Jan 2011, 13:21

Re: Configured depotId 'localhost.opsi.org' for host 'None'

Beitrag 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.
Zuletzt geändert von Koenraad am 21 Feb 2011, 10:56, insgesamt 1-mal geändert.
Antworten