Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 09:35:56

Author Topic: Issues with FTP  (Read 4795 times)

0 Members and 1 Guest are viewing this topic.

Offline tega

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
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
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 :(
« Last Edit: 2015-09-30, 03:01:27 by tega »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with FTP
« Reply #1 on: 2015-09-30, 03:02:13 »
Is '/home/dummy/www' your domain document root?.

For certain reason, '/etc/php-fpm.d/<client>.conf' only created if we create the first domain.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline tega

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
Re: Issues with FTP
« Reply #2 on: 2015-09-30, 03:11:42 »
Is '/home/dummy/www' your domain document root?.

For certain reason, '/etc/php-fpm.d/<client>.conf' only created if we create the first domain.

I created the domain of course, as you can see above, there's an FTP user that was created by kloxo when I added the domain. More urgently is the ftp issues, any suggestions? Everything is working fine for previous clients, have no idea why this is happening now when I try to add a new client, nothing works for him. Haven't changed anything config on files recently

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with FTP
« Reply #3 on: 2015-09-30, 03:39:01 »
Is '/home/dummy/www' your domain document root?.

For certain reason, '/etc/php-fpm.d/<client>.conf' only created if we create the first domain.

I created the domain of course, as you can see above, there's an FTP user that was created by kloxo when I added the domain. More urgently is the ftp issues, any suggestions? Everything is working fine for previous clients, have no idea why this is happening now when I try to add a new client, nothing works for him. Haven't changed anything config on files recently
What's happen after created then update their password in panel?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline tega

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
Re: Issues with FTP
« Reply #4 on: 2015-09-30, 03:45:22 »
On the client or on the FTP user?

Well I changed it on both and no errors:

Code: [Select]
Information:

    password successfully updated for dummy

EDIT: well no errors on the Panel, but on the file /usr/local/lxlabs/kloxo/log/shell_error I see this:

02:54 Sep/30/2015: Unable to fetch info about user [dummy] in file [/etc/pure-ftpd/pureftpd.passwd]: [(__system__) 'pure-pw'  'passwd' 'dummy' '-m']
« Last Edit: 2015-09-30, 03:49:02 by tega »

Offline tega

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
Re: Issues with FTP
« Reply #5 on: 2015-09-30, 05:27:26 »
Still trying to figure out what's causing the issue, another thing that I noticed, after adding a client on the panel Kloxo create the path /home/dummy/ but is not creating the user, went on /etc/passwd and the user is not there.

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.03 seconds with 18 queries.

web stats analysis