46
Kloxo-MR Technical Helps / Issues with FTP
« on: 2015-09-30, 02:34:17 »
Hello, I'm having issues adding new FTP users, I've found a post from someone with a similar issue, tried everything suggested there with no luck.
When I add a ftp user to a client on kloxo I can't access it, so stuff I tried:
sh /script/upcp
sh /script/cleanup
sh /script/fixftp-all
restart everything multiple times between each command. no luck
Is happening only for new users, (let's use "dummy" as example I added the ftp user "dummy" on the client "dummy"
when I do sh /script/fixftpuser --client=dummy
I get
I noticed that after running that command the files pureftpd.passwd and pureftpd.pdb disappear in /etc/pure-ftpd
If I delete the client and do the "fix scripts" everything goes back to normal. So this is only happening on the new clients.
Also I did a little digging and found this on /usr/local/lxlabs/kloxo/log/shell_exec
My /script/sysinfo:
EDIT: I continued to investigate the issues with kloxo and found Also another thing (noticed a few times when I was repairing (sh /script/cleanup)) I saw that php-fpm were throwing a few errors and I noticed that when I add a new client there's no <client>.conf on /etc/php-fpm.d/
Also e-mail accounts doesn't work too for the new users. So what it looks is that kloxo-mr when adding new clients and perform the stuff it needs too, are not working properly, unfortunately as I stated doing the /script/upcp and /script/cleanup are not fixing the issues
When I add a ftp user to a client on kloxo I can't access it, so stuff I tried:
sh /script/upcp
sh /script/cleanup
sh /script/fixftp-all
restart everything multiple times between each command. no luck
Is happening only for new users, (let's use "dummy" as example I added the ftp user "dummy" on the client "dummy"
when I do sh /script/fixftpuser --client=dummy
I get
Code: [Select]
Fixing FTP User
- 'dummy' ('dummy') at 'localhost'
- 'dummy.com' ('dummy') at 'localhost'
Unable to open the passwd file: No such file or directory
I noticed that after running that command the files pureftpd.passwd and pureftpd.pdb disappear in /etc/pure-ftpd
If I delete the client and do the "fix scripts" everything goes back to normal. So this is only happening on the new clients.
Also I did a little digging and found this on /usr/local/lxlabs/kloxo/log/shell_exec
Code: [Select]
01:28 Sep/30/2015: 32: You must give (non-root) uid and gid [(__system__) 'pure-pw' 'useradd' 'dummy' '-u' '-d' '/home/dummy/www' '-z' '0000-2359']
01:28 Sep/30/2015: 32: You must give (non-root) uid and gid [(__system__) 'pure-pw' 'useradd' 'dummy.com' '-u' '-d' '/home/dummy/www' '-z' '0000-2359']
My /script/sysinfo:
Code: [Select]
A. Kloxo-MR: 7.0.0.b-2015092401
- Web: hiawatha-9.14.0-f.6.mr.el6.i386
- PHP: php54s-5.4.44-1.w6 (cgi mode)
B. Plateform:
- OS: CentOS release 6.7 (Final) i686
- Hostname: mydomain.com
C. Services:
1. MySQL: MariaDB-server-10.0.21-1.el6.i686
2. PHP:
- Branch: php54-cli-5.4.45-1.ius.el6.i686
- Multiple:
* php52m-5.2.17-102.mr.el6
* php53m-5.3.29-1.ius.el6
* php54m-5.4.44-1.w6
* php55m-5.5.28-1.ius.el6
* php56m-5.6.12-1.ius.el6
- Used: --Use PHP Branch--
3. Httpd: httpd24u-2.4.16-2.ius.el6.i686
- PHP Type: php-fpm_event
4. Lighttpd: --uninstalled--
5. Hiawatha: --unused--
6. Nginx: --uninstalled--
7. Cache: --uninstalled--
8. Dns: --uninstalled--
9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.i386
- with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.i386
D. Memory:
total used free shared buffers cached
Mem: 512 340 171 11 0 205
-/+ buffers/cache: 235 276
Swap: 512 20 491
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 100G 18G 83G 18% /
Any idea how to fix this?EDIT: I continued to investigate the issues with kloxo and found Also another thing (noticed a few times when I was repairing (sh /script/cleanup)) I saw that php-fpm were throwing a few errors and I noticed that when I add a new client there's no <client>.conf on /etc/php-fpm.d/
Code: [Select]
Stopping php-fpm: [FAILED]
Starting php-fpm: [30-Sep-2015 02:08:15] ERROR: [pool dummy] cannot get uid for user 'dummy'
[30-Sep-2015 02:08:15] ERROR: FPM initialization failed
[FAILED]
Also e-mail accounts doesn't work too for the new users. So what it looks is that kloxo-mr when adding new clients and perform the stuff it needs too, are not working properly, unfortunately as I stated doing the /script/upcp and /script/cleanup are not fixing the issues