Koozali.org: home of the SME Server

Problem beim Installieren von Smeadmin

Offline Binford

  • 19
  • +0/-0
Problem beim Installieren von Smeadmin
« on: June 30, 2021, 10:32:49 PM »
Hallo,
ich bin gerade dabei SME 10 auf meinem Zotac im servergateway als zu installieren.
mit dem neuen release klappe das auch recht gut (dickes lob!)

beim Installieren des Smeadmin Contribs bekomme ich beim aufruf die Fehlermeldung:
Can't call method "value" on an undefined value at /etc/e-smith/web/functions/smeadmin line 541.

im entsprechenden Log steht:
Can't call method "value" on an undefined value at /usr/bin/smeadmind line 369.

was läuft da falsch?

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problem beim Installieren von Smeadmin
« Reply #1 on: July 01, 2021, 10:09:08 AM »
Erzählen Sie uns bitte eine kleine Geschichte.

Ist das eine Neuinstallation oder ein Upgrade?

Welche Hardware verwendest du?

=======

Please tell us a little history.

Is this a new install or an upgrade?

What hardware are you using?
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Binford

  • 19
  • +0/-0
Re: Problem beim Installieren von Smeadmin
« Reply #2 on: July 01, 2021, 01:25:26 PM »
Gerne.

Ich benutze einen ZOTAC ZBOX Nano Ci323 das ein Celeron N3150 mit 4GB Ram, 128GB SSD und 2 RTL 8168 Netzwerkkarten der im Server/Gateway mode laufen soll.
ich habe einen 2ten baugleichen Ci323 der derzeit noch unter SME 9 als router, web-, email-, nextcloud server läuft.
der SME10 rechner soll den 'alten' SME9 ablösen.
Ich habe Ihn neu installiert (kein Upgrade)

Ansonnsten macht das SME10 auf diesem Rechner was es soll, also Web/Email Server router funktion usw. funktionieren einwandfrei. Ich setze zur überwachung jedoch recht gerne das smeadmin contrib ein und bevor ich den rechner 'produktiv' setze sollte es auch auf dieser Hardware laufen.

bevor ich jetzt noch mehr unsinn schreibe - einfach nachfragen

ok?

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problem beim Installieren von Smeadmin
« Reply #3 on: July 13, 2021, 11:24:45 PM »

So:

Can't call method "value" on an undefined value at /etc/e-smith/web/functions/smeadmin line 541.

Code: [Select]
541         $ExternalIP = $smedb->get("ExternalIP")->value;
542 $ExternalInterface = $smedb->get("ExternalInterface")->prop('Name');
543     }

Oooh and:

Can't call method "value" on an undefined value at /usr/bin/smeadmind line 369.

Code: [Select]
368     if ($SystemMode =~ /servergateway/) {
369         $ExternalIP = $smedb->get("ExternalIP")->value;
370         $ExternalInterface = $smedb->get("ExternalInterface")->prop('Name');
371     }

So please show this:

Code: [Select]
config show ExternalIP
My guess is you some how have servergateway set with no ExternalIP.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Binford

  • 19
  • +0/-0
Re: Problem beim Installieren von Smeadmin
« Reply #4 on: July 14, 2021, 06:54:44 PM »
thank you for your hint ...

I have reconfigured the server.
so far I've had the external ip address obtained, now the same ip is permanently assigned.
after the reboot, I reinstalled smeadmin and ...
it is running it shows something ...
wait a while (must be there first what smeadmin can show...)
then reconfigured the sme server (get the external ip address again ...)
restart and ...
now it works!

I don't understand it but...
I thank you!

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problem beim Installieren von Smeadmin
« Reply #5 on: July 14, 2021, 08:13:37 PM »
Great.

"Es tut mir leid, dass ich nicht auf Deutsch schreiben kann"

Funny because I can understand most of that, but it is so long time since I spoke any German!!

(Pero hablo Castellano!!)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Binford

  • 19
  • +0/-0
Re: Problem beim Installieren von Smeadmin
« Reply #6 on: July 14, 2021, 08:47:38 PM »
Oh, mi español es muy típico de los veraneantes...
Hierbas con hielo, por favor...

but we already understand each other

You wanted the result of:

config show ExternalIP

can I deliver later, I have a second server that has the same error. only takes a little, next week...
OK?
so please don't close this threat yet.
at the moment we can only work around the error, not solve it yet.

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problem beim Installieren von Smeadmin
« Reply #7 on: July 14, 2021, 09:21:49 PM »
Jejejeje. Somos extranjeros :-)

Soy Ingles pero vivo en España.

Hierbas :lol:

Ok, let us know.

The error means smeadmin does not get the value of ExternalIP, so a look at that will help.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Binford

  • 19
  • +0/-0
Re: Problem beim Installieren von Smeadmin
« Reply #8 on: July 15, 2021, 09:38:17 PM »
I don't want to keep you waiting unnecessarily.

on:
config show ExternalIP

The SME answers with nothing
So no ExternalIP is set, although the server receives an external IP ...

I hope this helps somehow

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problem beim Installieren von Smeadmin
« Reply #9 on: July 16, 2021, 10:51:43 AM »
Quote
although the server receives an external IP ...

OK, so how do you get your external IP?

DHCP or something?

Whatever it is, it isn't setting the ExternalIP setting which is what smeadmin expects to see.

Can you also show:

Code: [Select]
config show ExternalInterface
Lets look at the IP Address there.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Binford

  • 19
  • +0/-0
Re: Problem beim Installieren von Smeadmin
« Reply #10 on: July 16, 2021, 04:27:24 PM »
in my yestarday test environment:
(non  working smeadmin)

config show ExternalInterface

ExternalInterface=interface
    Configuration=DHCPEthernetAddress
    Driver=e1000e
    Gateway=
    IPAddress=
    Name=enp0s31f6
    Netmask=255.255.255.0

on the other testserver

config show ExternalInterface

ExternalInterface=interface
    Broadcast=192.168.0.255
    Configuration=DHCPEthernetAddress
    Driver=r8169
    Gateway=
    IPAddress=192.168.0.9
    Name=ens1
    Netmask=255.255.255.0
    Network=192.168.0.0

there is a difference...