linuxmuster / linuxmuster-base7

Mangement scripts for linuxmuster.net V7
GNU General Public License v3.0
13 stars 8 forks source link

Devices import dont work anymore (In Setup) #58

Closed netzint closed 5 years ago

netzint commented 5 years ago

final

Disabling service iscsid .................................. Success!

Disabling service dropbear ................................ Success!

Disabling service lxcfs ................................... Success!

Starting device import

HappyBasher commented 5 years ago

Cannot reproduce this. Logfile?

PLanB2008 commented 5 years ago

Similar Problem, setup just stops during the installation.

image

Steps to reproduce -> Empty Ubuntu 18.04 installation. Upgrade packages, Download Prepare script, lmn7-appliance -u -p server -l /dev/sdb linuxmuster-setup

zefanja commented 5 years ago

What's in the logfile? (/var/log/linuxmuster/setup/ AFAIK)

HappyBasher commented 5 years ago

Yes, logfiles would help.

PLanB2008 commented 5 years ago

setupLog.zip Device import problem occured again. All logfies provided

jeffbeck commented 5 years ago

devices.csv??

PLanB2008 commented 5 years ago

grafik

PLanB2008 commented 5 years ago

output sophomorix-device --sync seems to stop at this point:

grafik

PLanB2008 commented 5 years ago

Okay there we go, there are some errors.

I'll try to save these as a textfile.

grafik

jeffbeck commented 5 years ago

Das passiert wenn man kein Internet hat.

LG, Rüdiger

PLanB2008 commented 5 years ago

So and why is it necessary to have a internet connection?

Something during the setup process goes wrong. First there is a internet connection provided by opensense. Once This configuration is done the connection is not available anymore.

So in fact we run in two different problems.

PLanB2008 commented 5 years ago

result of sophomorix-device --sync

sync.txt

jeffbeck commented 5 years ago

The problem is the command: /usr/bin/smbclient -U administrator%'yezNQ1nbd5Fnf' //linuxmuster.local/abc -c 'mkdir "program"'

The command pauses a long time when there is no internet connection available (Tested with a paused firewall in virtualbox)

Using the IP instead of linuxmuster.local cures the problem. So it must be a DNS issue. host linuxmuster.cocal fail without internet connection: ;; connection timed out; no servers could be reached

The strange thing is, that it sometimes failes, sometimes not.

HappyBasher commented 5 years ago

Has opnsense been upgraded to the current version 18.7? This is essential.

HappyBasher commented 5 years ago

Success! The firewall's host alias definition was somewhat broken so the privileged ips were no longer privileged. Fixed in 7.0.30.

PLanB2008 commented 5 years ago

The problem is the command: /usr/bin/smbclient -U administrator%'yezNQ1nbd5Fnf' //linuxmuster.local/abc -c 'mkdir "program"'

The command pauses a long time when there is no internet connection available (Tested with a paused firewall in virtualbox)

Using the IP instead of linuxmuster.local cures the problem. So it must be a DNS issue. host linuxmuster.cocal fail without internet connection: ;; connection timed out; no servers could be reached

The strange thing is, that it sometimes failes, sometimes not.

I would like to reopen the issue. The setup of the lmn appliance should not need a running internet connection, we've to find a way to work around this.

I dont really see why there should be a dns error - the server itself is defined in the ''/etc/hosts/'' file.

PLanB2008 commented 5 years ago

I somehow nailed it down, the server somehow needs a connection to the internet. We shoud definetely fix this... This is really annoying in an environment which is not a default setup. In my current environment I had to add a nameserver and gateway manually which got overwritten by the setup. To temporally solve the problem I had to add it again manually during the setup.

Can we move this issue to sophomorix?