Date: Wed, 29 Aug 2007 17:36:19 +0200 From: Alexander Leidinger <Alexander@Leidinger.net> To: kalnz@kalnz.id.lv Cc: freebsd-jail@freebsd.org Subject: Re: pam _start: system error Message-ID: <20070829173619.sghqpfenb4swkkk8@webmail.leidinger.net> In-Reply-To: <46D32435.4030707@kalnz.id.lv> References: <46D29F4B.9070901@kalnz.id.lv> <20070827125450.uqdbto3xiwwk80gg@webmail.leidinger.net> <46D32435.4030707@kalnz.id.lv>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Kalnz <kalnz@kalnz.id.lv> (from Mon, 27 Aug 2007 22:21:25 +0300): > Alexander Leidinger wrote: >> Quoting Kalnz <kalnz@kalnz.id.lv> (from Mon, 27 Aug 2007 12:54:19 +0300): >> >>> Hi! >>> >>> After installing (in the jail) mysql-server-5.0.45 from ports, >>> I can`t get up and running my mysql server. >>> I have to point out that this problem is only inside the jail. >>> All I have is: >>> 1) clean mysql-server install >>> 2) default my.cnf (small systems) >>> 3) mysql_enable=3D"YES" >>> >>> After this server should run, but it didn`t, so I get this: >>> >>> # /usr/local/etc/rc.d/mysql-server start >>> Starting mysql. >>> su: pam_start: system error >>> # >>> >>> In the logs there is: >>> su: in openpam_load_module(): no pam_unix.so found >>> su: pam_start: system error >>> >>> In fact pam_unix.so file is present in /usr/lib directory. >>> I`m sure this is because of jail, but I can`t figure out what could be >>> the problem. >> >> How do you startup the jail, how have you populated the basesystem =20 >> in the jail initially? What's the size of pam_unix.so, what does =20 >> "file /usr/lib/pam_unix.so" print? > I took some info from here when making my first jail : > http://www.section6.net/wiki/index.php/Creating_a_FreeBSD_Jail > Anyway I have 2 jails and everything was working fine until now when I > installed mysql-server and can`t run it inside the jail. It's not the installtion instruction as documented by FreeBSD. I use =20 mysql in an ezjail (ports) created jail. It works without any problems. > # file /usr/lib/pam_unix.so output: > pam_unix.so: symbolic link to `pam_unix.so.3' > The same output from base system. > size =3D 10848 Bytes As the size is printed, there's a real file at the end of the link. So =20 my first idea what the problem is, is busted. ATM I have no further =20 idea. You would have to "ktrace -i" what the mysql startup is doing =20 and have a look at the output (man ktrace, man dump). Then you can =20 maybe check that everything what it tries to touch is there. Bye, Alexander. --=20 People who go to conferences are the ones who shouldn't. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070829173619.sghqpfenb4swkkk8>