FTP: Failed to write Array/.htaccess

Discussion in 'General' started by jofranco, Oct 22, 2006.

  1. jofranco

    jofranco New Member

    hi, im having problems with uploading in WEB-FTP, I got this message

    FTP: Failed to write Array/.htaccess

    and tried the ftp and got this message

    200 type I
    227 entering passive mode
    150 opening binary mode data conection for song
    522 transfer aborted disk quota exceeded


    The characteristics of the site are

    20 MB space
    The group is web7 and the user is web7_user

    Stat

    [root@namehost web7]# pwd
    /var/www/web7
    [root@sagitario web7]# du -h
    4.0K ./ssl
    4.0K ./user/web7_user/Maildir
    8.0K ./user/web7_user/web
    120K ./user/web7_user
    124K ./user
    4.0K ./fer
    4.0K ./cgi-bin
    4.0K ./phptmp
    32K ./web/error
    124K ./web/fer/men
    1.5M ./web/fer/fot
    2.0M ./web/fer
    2.7M ./web/fot
    136K ./web/stats
    156K ./web/menuc
    88K ./web/menub
    7.1M ./web
    4.0K ./fot
    964K ./log/2006/10
    968K ./log/2006
    1.5M ./log
    4.0K ./menuc
    4.0K ./menub
    8.7M .


    [root@namehost web7]# cat /var/log/xferlog
    Sun Oct 22 11:19:58 2006 0 127.0.0.1 4095 /var/www/web7/princ.html b _ i r web7_user ftp 0 * i
    Sun Oct 22 11:20:24 2006 0 127.0.0.1 4095 /var/www/web7/princ.html b _ i r web7_user ftp 0 * i


    [root@sagitario web7_user]# pwd
    /var/www/web7/user/web7_user
    [root@sagitario web7_user]# ls -al
    total 120
    drwxr-xr-x 4 web7_user web7 4096 Oct 21 15:32 .
    drwxr-xr-x 3 web7_user web7 4096 Oct 21 15:32 ..
    -rw-r--r-- 1 root root 103 Oct 21 15:32 .antivirus.rc
    -rw-r--r-- 1 root root 768 Oct 21 15:32 .autoresponder.rc
    -rw-r--r-- 1 root root 22 Oct 21 15:32 .bounce-exceed-quota.txt
    -rw-r--r-- 1 root root 67866 Oct 21 15:32 .html-trap.rc
    -rw-r--r-- 1 root root 3889 Oct 21 15:32 .local-rules.rc
    drwx------ 2 web7_user web7 4096 Oct 21 15:32 Maildir
    -rw-r--r-- 1 root root 180 Oct 21 15:32 .mailsize.rc
    -rw-r--r-- 1 root root 2669 Oct 21 15:32 .quota.rc
    -rw-r--r-- 1 root root 1151 Oct 21 15:32 .spamassassin.rc
    -rw-r--r-- 1 root root 1641 Oct 21 15:32 .user_prefs
    -rw-r--r-- 1 web7_user web7 0 Oct 21 15:32 .vacation.cache
    -rw-r--r-- 1 root root 0 Oct 21 15:32 .vacation.msg
    drwxrwxr-x 2 web7_user web7 4096 Oct 21 15:32 web


    [root@hostname web7_user]# quota -u web7_user
    Disk quotas for user web7_tlayacapan (uid 10017):
    Filesystem blocks quota limit grace files quota limit grace
    /dev/mapper/VolGroup00-LogVol00
    8740* 5120 5120 206 0 0


    This is incorrect?


    [root@hostname web7_user]# quota -g web7
    Disk quotas for group web7 (gid 10007):
    Filesystem blocks quota limit grace files quota limit grace
    /dev/mapper/VolGroup00-LogVol00
    8772 20480 20480 215 0 0



    [root@hostname /]# /usr/sbin/repquota -avug
    *** Report for user quotas on device /dev/mapper/VolGroup00-LogVol00
    Block grace time: 7days; Inode grace time: 7days
    Block limits File limits
    User used soft hard grace used soft hard grace
    ----------------------------------------------------------------------
    ...
    admispconfig -- 42796 0 0 2364 0 0
    web7_user +- 8740 5120 5120 6days 206 0 0
    #501 -- 5960 0 0 544 0 0
    #10015 -- 24 0 0 6 0 0

    Statistics:
    Total blocks: 9
    Data blocks: 2
    Entries: 29
    Used average: 14.500000

    *** Report for group quotas on device /dev/mapper/VolGroup00-LogVol00
    Block grace time: 7days; Inode grace time: 7days
    Block limits File limits
    Group used soft hard grace used soft hard grace
    ----------------------------------------------------------------------
    ...
    admispconfig -- 42792 0 0 2363 0 0
    web1 -- 12184 0 0 1756 0 0
    web3 -- 3228 0 0 91 0 0
    web4 -- 2436 40960 40960 151 0 0
    web7 -- 8772 20480 20480 215 0 0

    Statistics:
    Total blocks: 9
    Data blocks: 2
    Entries: 34
    Used average: 17.000000
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Are you sure you upload to /var/www/web7/web and not to /var/www/web7?
     
  3. jofranco

    jofranco New Member

    the error is same

    After upload the file "princ.html" with webftp, the size is 0


    log in /var/log/xferlog


    Mon Oct 23 19:59:35 2006 0 127.0.0.1 4095 /var/www/web7/web/princ.html b _ i r web7_user ftp 0 * i
    Mon Oct 23 19:59:49 2006 0 127.0.0.1 4095 /var/www/web7/web/fer/princ.html b _ i r web7_user ftp 0 * i
    Mon Oct 23 20:00:00 2006 0 127.0.0.1 4095 /var/www/web7/princ.html b _ i r web7_user ftp 0 * i
    Mon Oct 23 20:00:12 2006 0 127.0.0.1 4095 /var/www/web7/web/fot/princ.html b _ i r web7_user ftp 0 * i
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    ls -la /var/www/web7/web/princ.html
     
  5. jofranco

    jofranco New Member

    Output

    [root@sagitario web]# ls -la /var/www/web7/web/princ.html
    -rw-r--r-- 1 web7_user web7 0 Oct 24 09:34 /var/www/web7/web/princ.html
    [root@hostname web]#


    [root@hostname web]# cat /var/log/xferlog
    Tue Oct 24 09:34:18 2006 0 127.0.0.1 0 /var/www/web7/web/documento.doc a _ d r web7_user ftp 0 * c
    Tue Oct 24 09:34:37 2006 0 127.0.0.1 4095 /var/www/web7/web/princ.html b _ i r web7_user ftp 0 * i
     
  6. fobicodam

    fobicodam New Member

    What about the user quota? the main site can use 20Mb but if the admin user has only 1 mb (for example) you cant upload more than that..
     
  7. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    repquota -avug|grep web7
    ?
     
  8. jofranco

    jofranco New Member

    The solution of the problem

    Before:

    [root@hostname web7]# /usr/sbin/repquota -avug | grep web7
    web7_user +- 8764 5120 5120 3days 206 0 0
    web7 -- 8796 20480 20480 215 0 0

    After:

    The problem is solved increasing the quota of adminsitrator user. I didnt understand the relation between the quota of the adminsitrador user and the size of the Web site

    [root@hostname web]# /usr/sbin/repquota -avug | grep web7
    web7_user -- 8792 20480 20480 206 0 0
    web7 -- 7812 20480 20480 213 0 0


    Thanks
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Every file is owned by a user and a group. The groupquota is assigned to the website, the userquota is assigned to the users. If you upload files as admin user, they are owned by the admin user and the website group, if the quota for the admin user is too small, he cannot upload any new files.
     

Share This Page