[SOLVED] problem with user and user-groups on napp-it v. 0.316 with NCP3
Added by Oliver Tritschler about 1 year ago
Dear all,
I was using ZFS on Indiana until snv-134 for about a year now. Due to Larry's decision not to publish developer releases on a two week basis anymore I first gave nexentastor 3.0.3 and now NCP3 a try. So far I am very happy with it (even though I do not have good knowledge about Unix).
To keep administration as simple as possible I installed napp-it. I like it a lot because most features are well explained and I am able to understand most of the commands (...with help of my opensolaris Bible of course!).
Anyhow I ran into one problem where I got stuck. If I select the user and user-groups page then the following error message appears:
user and user-groups :
Content-type: text/html
Software error:
Can't load '/usr/lib/cgi-bin/napp-it/CGI/auto/IO/Tty/Tty.so' for module IO::Tty: ld.so.1: perl: fatal: /usr/lib/cgi-bin/napp-it/CGI/auto/IO/Tty/Tty.so: unknown file type at /usr/lib/perl/5.8/DynaLoader.pm line 225.
at /usr/lib/cgi-bin/napp-it/CGI/IO/Tty.pm line 30
Compilation failed in require at /usr/lib/cgi-bin/napp-it/CGI/IO/Pty.pm line 7.
BEGIN failed--compilation aborted at /usr/lib/cgi-bin/napp-it/CGI/IO/Pty.pm line 7.
Compilation failed in require at /usr/lib/cgi-bin/napp-it/CGI/Expect.pm line 22.
BEGIN failed--compilation aborted at /usr/lib/cgi-bin/napp-it/CGI/Expect.pm line 22.
Compilation failed in require at /usr/lib/cgi-bin/napp-it/sunos/_lib/userlib.pl line 113.
BEGIN failed--compilation aborted at /usr/lib/cgi-bin/napp-it/sunos/_lib/userlib.pl line 113.
For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error.
Content-type: text/html
Software error:
[Thu Sep 2 22:22:32 2010] admin.pl: Can't load '/usr/lib/cgi-bin/napp-it/CGI/auto/IO/Tty/Tty.so' for module IO::Tty: ld.so.1: perl: fatal: /usr/lib/cgi-bin/napp-it/CGI/auto/IO/Tty/Tty.so: unknown file type at /usr/lib/perl/5.8/DynaLoader.pm line 225.
[Thu Sep 2 22:22:32 2010] admin.pl: at /usr/lib/cgi-bin/napp-it/CGI/IO/Tty.pm line 30
[Thu Sep 2 22:22:32 2010] admin.pl: Compilation failed in require at /usr/lib/cgi-bin/napp-it/CGI/IO/Pty.pm line 7.
[Thu Sep 2 22:22:32 2010] admin.pl: BEGIN failed--compilation aborted at /usr/lib/cgi-bin/napp-it/CGI/IO/Pty.pm line 7.
[Thu Sep 2 22:22:32 2010] admin.pl: Compilation failed in require at /usr/lib/cgi-bin/napp-it/CGI/Expect.pm line 22.
[Thu Sep 2 22:22:32 2010] admin.pl: BEGIN failed--compilation aborted at /usr/lib/cgi-bin/napp-it/CGI/Expect.pm line 22.
[Thu Sep 2 22:22:32 2010] admin.pl: Compilation failed in require at /usr/lib/cgi-bin/napp-it/sunos/_lib/userlib.pl line 113.
[Thu Sep 2 22:22:32 2010] admin.pl: BEGIN failed--compilation aborted at /usr/lib/cgi-bin/napp-it/sunos/_lib/userlib.pl line 113.
Compilation failed in require at /usr/lib/cgi-bin/napp-it/admin.pl line 512.
For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error.
Do you have any idea what I've done wrong?
Kind regards,
Oliver
Replies
RE: problem with user and user-groups on napp-it v. 0.316 with NCP3 - Added by Guenther Alka about 1 year ago
hello oliver
user-management (especially set passwords via cli passwd command) requires perl-module Expect.pm. Unfortionally this module has a binary component Tty.so which is different on Nexenta and Opensolaris.
On each login, napp-it tries to copy the right os-version of this file to/usr/lib/cgi-bin/napp-it/CGI/auto/IO/Tty/Tty.so
the file is missing, so i suppose, napp-it could not copy the file due to permission problems.
did you set permissions of napp-it folder to 777 recursively?
napp-it will adjust permissions to a more secure setting automatically on each login.
best regards
gea
www.napp-it.org
RE: problem with user and user-groups on napp-it v. 0.316 with NCP3 - Added by Oliver Tritschler about 1 year ago
Hello Günther,
yes I did
root@datengrab:/usr/lib/cgi-bin# chmod -R 777 napp-it/
root@datengrab:/usr/lib/cgi-bin# ls -la
total 30
drwxr-xr-x 3 root root 3 Aug 30 02:01 .
drwxr-xr-x 84 root root 894 Aug 30 00:02 ..
drwxrwxrwx 6 www-data root 10 Sep 3 21:47 napp-it
but when I login to napp-it the permissions change to 755 immediately and the folder and including folders/files are set to the new permissions recursively:
root@datengrab:/usr/lib/cgi-bin# ls -la
total 30
drwxr-xr-x 3 root root 3 Aug 30 02:01 .
drwxr-xr-x 84 root root 894 Aug 30 00:02 ..
drwxr-xr-x 6 www-data root 10 Sep 3 21:54 napp-it
And of course again I get the same error message.
Gruß, Oliver
RE: problem with user and user-groups on napp-it v. 0.316 with NCP3 - Added by Apnar . about 1 year ago
I have the same issue. I verified permissions and that napp-it is copying the Tty.so.nex file over to Tty.so. I just think the included Tty.so isn't right for NCP3.
I swapped out the IO directories (napp-it/CGI/IO and napp-it/CGI/auto/IO) with the ones from the libio-pty-perl package in the repo and that seemed to work well.
-apnar
RE: problem with user and user-groups on napp-it v. 0.316 with NCP3 - Added by Guenther Alka about 1 year ago
hello apnar
i will check the included Tty.so next week (on my test-install, its running,
see: http://napp-it.org/pop_en.html)
(i'm on holiday in france at the moment)
gea
RE: problem with user and user-groups on napp-it v. 0.316 with NCP3 - Added by Yu-Phing Ong about 1 year ago
FYI I'm getting the same issue. If I check /usr/lib/cgi-bin/napp-it/CGI/auto/IO/Tty:
-rwxr-xr-x 1 www-data www-data 0 Jul 7 11:16 Tty.bs -rwxr-xr-x 1 www-data www-data 42084 Sep 6 13:24 Tty.so -rwxr-xr-x 1 www-data www-data 42084 Jul 7 11:16 Tty.so.nex -rwxr-xr-x 1 www-data www-data 29580 Jul 13 08:32 Tty.so.osol
Assuming Tty.so.nex is the right one to copy over, it looks like the right version is there.
I copied over Tty.so.osol to Tty.so, just in case, but seems that napp-it copies over the right version again when I go to the user tab, since when I check again, it's the .nex version that is copied over to Tty.so!
Hope this helps.
RE: problem with user and user-groups on napp-it v. 0.316 with NCP3 - Added by Guenther Alka about 1 year ago
hi all
i made a fresh install (vmware fusion) of NexentaCore3 rc3/final and did the basic installation steps from my howto:
apt-get update apt-get upgrade apt-get install mc (midnight commander to edit files) apt-get install apache2 edit /etc/sudoers to allow root access for napp-it edit /etc/ssh/sshd_config to allow ssh login for root and filetransfers via winscp restart copied folder napp-it via winscp (to auto-translate line-breaks from dos to unix) to /usr/lib/cgi-bin/ set permission of napp-it folder to 777 recursively start napp-it via http://serverip/cgi-bin/napp-it/admin.pl
doing this, i could not reproduce your error. have you done something another way (especially the file transfer of the napp-it folder)
best regards
gea
RE: problem with user and user-groups on napp-it v. 0.316 with NCP3 - Added by Yu-Phing Ong about 1 year ago
Just to confirm that the right files are there (when I unzip'ed, I used -aa as per the document):
/usr/lib/cgi-bin/napp-it/CGI/auto/IO/Tty# cksum * 4294967295 0 Tty.bs 1528037135 42084 Tty.so 1528037135 42084 Tty.so.nex 3497531692 29580 Tty.so.osol
but if I unzip with just -a, I get it
/usr/lib/cgi-bin/napp-it/CGI/auto/IO/Tty# cksum * cksum * 4294967295 0 Tty.bs 4098734594 42112 Tty.so 4098734594 42112 Tty.so.nex 905482485 29596 Tty.so.osol
Note the difference in cksum and file sizes (which is what I would expect considering I'm using -aa i.e. treat all files as text)
and if I copy those files over, it works.
So you might want to update your napp-it..pdf (I'm reading the 22 July 2010 version, and it still says -aa on page 4, section 1.4.2 "All napp-it files are dos textfiles, copy them via winscp or unzip -aa...") to unzip using -a rather than -aa.
Otherwise, thanks for your great app that makes life a bit easier for me on a daily basis!
RE: problem with user and user-groups on napp-it v. 0.316 with NCP3 - Added by Guenther Alka about 1 year ago
thanks for the info
i will update my manual and put a note on napp-it.org/downloads
Tty.so is the first and only binary file in napp-it.
gea