Savelog and/or TTY2 Problem

2012-01-27 Diskussionsfäden Mark Eisenblaetter
Hello list,

ok my fist problem was that i don't have a tty2 to login an view the logs.
I only found a poost to dieable automatic root login.

Then i thougt i could save the logs via ftp, but activating the loguser and
setting fai_logproto to ftp, i got a ssh login issue on install?

Here are my setting:
LOGUSER=fai
LOGPASSWD=fai
LOGREMOTEDIR=/
LOGSERVER=FTPIP
# set protocol type for saving logs. Values: ssh, rsh, ftp
FAI_LOGPROTO=ftp

Why is fai trying to login via ssh?


Thanks in Advanced
Mark



-- 
Mark Eisenblätter
G  L Geißendörfer  Leschinsky GmbH
www.gl-systemhaus.de


Re: Savelog and/or TTY2 Problem

2012-01-27 Diskussionsfäden Thomas Lange
 On Fri, 27 Jan 2012 10:02:22 +0100, Mark Eisenblaetter 
 mark.eisenblaet...@gmail.com said:

 ok my fist problem was that i don't have a tty2 to login an view the 
logs. I only found a poost to dieable
 automatic root login.
 Then i thougt i could save the logs via ftp, but activating the loguser 
and setting fai_logproto to ftp, i
 got a ssh login issue on install?
What do you mean by login issue?

 Why is fai trying to login via ssh?
Hi Mark,

which FAI version are you using? Any more detailed log messages?
I never used ftp for saving the log file, only rcp and scp.

-- 
regards Thomas


Re: Savelog and/or TTY2 Problem

2012-01-27 Diskussionsfäden Mark Eisenblaetter
Hi Thomas,

ok i am using the PPA for Ubuntu LTS: fai FAI 3.4.2ubuntu1~lucid1~ppa1, 22
Sep 2010

I can not get the logfiles, because i can't switch to tty2 or 3.

My First Problem wen using loguser is that he is trying to login on
faiserver wtih ssh, i have to manually accept the new ip an type the
password. But he schouldn't do this because i uses ftp as porotokoll.

after this he tells me he have not the permission to create the directory?
 But wen i login from any ohter system i can create as much directorys i
want.

Mark


On Fri, Jan 27, 2012 at 10:10 AM, Thomas Lange 
la...@informatik.uni-koeln.de wrote:

  On Fri, 27 Jan 2012 10:02:22 +0100, Mark Eisenblaetter 
 mark.eisenblaet...@gmail.com said:

 ok my fist problem was that i don't have a tty2 to login an view the
 logs. I only found a poost to dieable
 automatic root login.
 Then i thougt i could save the logs via ftp, but activating the
 loguser and setting fai_logproto to ftp, i
 got a ssh login issue on install?
 What do you mean by login issue?

 Why is fai trying to login via ssh?
 Hi Mark,

 which FAI version are you using? Any more detailed log messages?
 I never used ftp for saving the log file, only rcp and scp.

 --
 regards Thomas




-- 
Mark Eisenblätter
G  L Geißendörfer  Leschinsky GmbH
www.gl-systemhaus.de


Re: Savelog and/or TTY2 Problem

2012-01-27 Diskussionsfäden Thomas Lange
 On Fri, 27 Jan 2012 10:18:50 +0100, Mark Eisenblaetter 
 mark.eisenblaet...@gmail.com said:

 I can not get the logfiles, because i can't switch to tty2 or 3.
Can you login to your install client via ssh?
If yes, get the log file and try to call task_savelog manually.

-- 
regards Thomas


Re: Savelog and/or TTY2 Problem

2012-01-27 Diskussionsfäden Mark Eisenblaetter
Hi,

ok know without attachmend, to big.
Mark

On Fri, Jan 27, 2012 at 11:32 AM, Mark Eisenblaetter 
mark.eisenblaet...@gmail.com wrote:

 Hi Thomas,

 ok, here is the output from task_savelog:

 root@demohost:/var/lib/fai/config/hooks# task_savelog
 perl: warning: Setting locale failed.
 perl: warning: Please check that your locale settings:
  LANGUAGE = (unset),
 LC_ALL = (unset),
 LANG = en_US.UTF-8
 are supported and installed on your system.
 perl: warning: Falling back to the standard locale (C).
 Save log files via FTP to fai@192.168.3.85:
 demohost/install-20120127_10
 Cannot create dir install-20120127_10.
 root@demohost:/var/lib/fai/config/hooks# ftp 192.168.3.85
 -bash: ftp: command not found

 It loock like ther ist noch ftpclient. I just added ftp to the NFSROOT and
 rerun fai-setup


 i attached the logs.

 Mark


 On Fri, Jan 27, 2012 at 11:13 AM, Thomas Lange 
 la...@informatik.uni-koeln.de wrote:

  On Fri, 27 Jan 2012 10:18:50 +0100, Mark Eisenblaetter 
 mark.eisenblaet...@gmail.com said:

 I can not get the logfiles, because i can't switch to tty2 or 3.
 Can you login to your install client via ssh?
 If yes, get the log file and try to call task_savelog manually.

 --
 regards Thomas




 --
 Mark Eisenblätter
 G  L Geißendörfer  Leschinsky GmbH
 www.gl-systemhaus.de




-- 
Mark Eisenblätter
G  L Geißendörfer  Leschinsky GmbH
www.gl-systemhaus.de


Re: Savelog and/or TTY2 Problem

2012-01-27 Diskussionsfäden Thomas Lange
 On Fri, 27 Jan 2012 11:32:49 +0100, Mark Eisenblaetter 
 mark.eisenblaet...@gmail.com said:

 Save log files via FTP to 
fai@192.168.3.85:demohost/install-20120127_10
 Cannot create dir install-20120127_10.
This looks good. It's not using ssh any more.

You have some strange classes defined: 
List of all classes:  DEFAULT ESC[HESC[Jich mache weiter 

You do not have a console on tty 2 and threee because of this:
/usr/lib/fai/subroutines: line 258: openvt: command not found

Still using ext3. Why not ext4?

Another problem:
=   perl: GUNDL/99-configure-net   =
Can't locate YAML/Tiny.pm in @INC (@INC contains: 


-- 
regards Thomas


Re: Savelog and/or TTY2 Problem

2012-01-27 Diskussionsfäden Thomas Lange
 On Fri, 27 Jan 2012 15:15:39 +0100, Mark Eisenblaetter 
 mark.eisenblaet...@gmail.com said:

 What iam wondering, why is fai trying to fai-chboot via ssh on my 
fai-server after i activated tjhe
 loguser?
 First i have to manually execpt the new connection (my faiserver is not 
in known_hosts) and second the
 user is not allowed to use fai-chboot!
This is done by default if LOGUSER is defined. The client tries to
change its own pxelinux configuration on the install server.

-- 
regards Thomas


Re: Savelog and/or TTY2 Problem

2012-01-27 Diskussionsfäden Mark Eisenblaetter
Why, an how can i intercept it?

Mark

On Fri, Jan 27, 2012 at 3:29 PM, Thomas Lange la...@informatik.uni-koeln.de
 wrote:

  On Fri, 27 Jan 2012 15:15:39 +0100, Mark Eisenblaetter 
 mark.eisenblaet...@gmail.com said:

 What iam wondering, why is fai trying to fai-chboot via ssh on my
 fai-server after i activated tjhe
 loguser?
 First i have to manually execpt the new connection (my faiserver is
 not in known_hosts) and second the
 user is not allowed to use fai-chboot!
 This is done by default if LOGUSER is defined. The client tries to
 change its own pxelinux configuration on the install server.

 --
 regards Thomas




-- 
Mark Eisenblätter
G  L Geißendörfer  Leschinsky GmbH
www.gl-systemhaus.de


Re: Savelog and/or TTY2 Problem

2012-01-27 Diskussionsfäden Thomas Lange
 On Fri, 27 Jan 2012 19:13:40 +0100, Mark Eisenblaetter 
 mark.eisenblaet...@gmail.com said:

 Why, an how can i intercept it?
You can skip the task chboot using the skiptask function.
-- 
regards Thomas