Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 7th August 2012, 15:03
bormoglot bormoglot is offline
Junior Member
 
Join Date: Aug 2012
Posts: 3
Thanks: 0
Thanked 6 Times in 1 Post
Default

Quote:
Originally Posted by Steveorevo View Post
see above?
Do you mean copying? I have tried that first with the same result (i.e. no results).

How can I trace what is missing for proper scp or wget functioning?
Reply With Quote
Sponsored Links
  #12  
Old 8th August 2012, 16:29
bormoglot bormoglot is offline
Junior Member
 
Join Date: Aug 2012
Posts: 3
Thanks: 0
Thanked 6 Times in 1 Post
Default

Quote:
Originally Posted by bormoglot View Post
How can I trace what is missing for proper scp or wget functioning?
RTFM "jailkit" really helps. For those lazy people like me a short summary:

Edit /etc/jailkit/jk_init.ini to change all paths to your system's correct values. Mine first two sections looks like that now:

Code:
[uidbasics]
comment = common files for all jails that need user/group information
libraries = /lib/x86_64-linux-gnu/libnsl*, /lib/x86_64-linux-gnu/libnss*
regularfiles = /etc/nsswitch.conf, /etc/ld.so.conf

[netbasics]
comment = common files for all jails that need any internet connectivity
libraries = /lib/x86_64-linux-gnu/libnss*
regularfiles = /etc/resolv.conf, /etc/host.conf, /etc/hosts, /etc/protocols, /etc/services
Then run

Code:
jk_init -f -k -j /var/www/clients/client1/web1 scp
using your own values instead of client1/web1 and scp
Reply With Quote
The Following 6 Users Say Thank You to bormoglot For This Useful Post:
falko (9th August 2012), hrvbid (15th August 2013), Jorge QWASS (16th December 2013), Steveorevo (10th August 2012), The Other Air Force (10th August 2012), yuro (25th August 2012)
  #13  
Old 10th August 2012, 01:42
The Other Air Force The Other Air Force is offline
Junior Member
 
Join Date: Sep 2011
Location: Canada
Posts: 18
Thanks: 5
Thanked 4 Times in 3 Posts
Default

I was having the same difficulty. Thanks!

I wonder if we could request a feature for the admin control panel to call jk_update so once I've fixed the jk_init.ini file I can tell the control panel to fix either all or just individual jails.

For now, after fixing jk_init.ini, I just use:

Code:
jk_update -j /var/www/clients/clientx/webx
and the problems I've been having go away.

Luckily I only have a couple of jails, but I'd imagine it would be tedious if there were more. By the way, if you are using a 32-bit version of Ubuntu the directory starts with i386 not x64.

Thanks for the help!
Reply With Quote
  #14  
Old 10th August 2012, 08:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,413
Thanks: 834
Thanked 5,498 Times in 4,328 Posts
Default

Makes sense to add a jailkit update functionality. Please make a feature request for that in the bugtracker.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 16th August 2012, 12:44
basz basz is offline
Junior Member
 
Join Date: Jun 2012
Posts: 12
Thanks: 2
Thanked 1 Time in 1 Post
 
Default

Solution to both (replace # with your client and site numbers):
Code:
cp /lib/x86_64-linux-gnu/libnss_* /var/www/clients/client#/web#/lib/x86_64-linux-gnu/
So what to do if I don't have /lib/x86_64-linux-gnu/libnss_* or /lib/x86-linux-gnu/libnss_* installed?
Permanent solution likely involves a fix in /etc/jailkit/jk_init.ini. The paths it contains are wrong for some of the libs and it does not list all the necessary libs.
Is this something that will solve itself from upstream by magical fairies or do I need to manually do this (and what exactly)

So for now I use FTPS, but I rather have SFTP working too (needing an ssh account is a plus for me...)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a jailkit user fails Justin Albstmeijer General 5 30th August 2011 17:02
Problems installing LAMP - MySQL and PHP5 JosBR Server Operation 5 19th December 2009 21:00
E: Sub-process /usr/bin/dpkg returned an error code (1) ergti Installation/Configuration 1 16th August 2009 12:36
Management/system config/settings & /server/settings not working!! dactor Installation/Configuration 9 6th February 2008 09:11
Empty Recycle Bin jon335 General 40 6th May 2006 11:56


All times are GMT +2. The time now is 09:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.