Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member novatech's Avatar
    Join Date
    Dec 2005
    Posts
    12

    Default Unable to fetch the cPanel user file

    When modifying a particular account under Modify Account, the following error occurs when saving:

    "Unable to fetch the cPanel user file for username"

    Any advice?

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,289
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Unable to fetch the cPanel user file

    Please log into root SSH on the machine and do the following:

    Code:
    cd /var/cpanel/users
    ls -lah username
    cat username
    Here replace username with the cPanel username. The correct permissions on the file should look like the following:

    Code:
    -rw-r-----  1 root username  596 Jun  8 14:03 username
    Additionally, inside the file, the USER=username entry should have the username of that user. Some 3rd party plugins modify the username by appending .sometext to the end of the username. This can cause cPanel to be unable to read the user's file.

    If the file does not exist at all, then there would be an issue. You can cat the contents of another user's file in that location to see what it looks like and then copy that to create a new file for that user, modifying the contents to correspond to the right settings for that user.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member novatech's Avatar
    Join Date
    Dec 2005
    Posts
    12

    Default Re: Unable to fetch the cPanel user file

    Perfect, thanks! The USER= actually referenced an old username for this user.

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,289
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Unable to fetch the cPanel user file

    Was the username changed when transferring the account from one machine to another? I ask as we have an internal case (50545) about the USER= line not changing on transferring an account to a new machine even though everything else does change.

    Please ensure to run this command as well now that you've corrected the USER= line in the /var/cpanel/users/username file:

    Code:
    /scripts/updateuserdomains
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Member novatech's Avatar
    Join Date
    Dec 2005
    Posts
    12

    Default Re: Unable to fetch the cPanel user file

    The account was transferred from another cPanel box. I believe the username was changed on the old machine, and then moved. But it wasn't changed as part of the moving process.

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    654

    Default Re: Unable to fetch the cPanel user file

    Tristan, can you comment on why some plugins would change the details in the USER field? Do you know off hand which plugins do this? Today we had the same problem and it seems the username had been appended with some random text.

  7. #7
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,782
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Unable to fetch the cPanel user file

    Quote Originally Posted by 4u123 View Post
    Tristan, can you comment on why some plugins would change the details in the USER field? Do you know off hand which plugins do this? Today we had the same problem and it seems the username had been appended with some random text.
    This may be due to a bug we are currently tracking down. Accounts that were transferred in the 11.24 era may have random data appended to the USER field.
    Kenneth
    Product Manager
    cPanel, Inc.

  8. #8
    Registered User
    Join Date
    Mar 2010
    Posts
    3

    Default Re: Unable to fetch the cPanel user file

    I found this thread Googling for the same problem. I migrated some accounts from Plesk/Ensim. All those files have lines like "site7.3ZxffrK8JZKdAJXObKIWWCmYHmayK87O".

    I'll correct all the usernames, and then run /scripts/updateuserdomains. That should be sufficient?

  9. #9
    Member
    Join Date
    Mar 2004
    Posts
    21

    Default Re: Unable to fetch the cPanel user file

    I'm having the same issue, in this case it's a server thas was migrated from an older cPanel server. It's a cPanel to cPanel migration that was done 23th and 24th October 2010, i don't know the exact cPanel version but i know it had latest Release version, cPanel

    Most or all accounts in that server are having this problem, editing manually each file doesn't seem confortable.

    Note: After checking migration logs in /var/cpanel/logs i found the following

    PHP Code:
    <title>Web Host Manager 11.26.20 Copy an account from another server</title

  10. #10
    Member
    Join Date
    Nov 2007
    Posts
    865

    Default Re: Unable to fetch the cPanel user file

    Quote Originally Posted by cPanelTristan View Post
    Please log into root SSH on the machine and do the following:

    Code:
    cd /var/cpanel/users
    ls -lah username
    cat username
    Here replace username with the cPanel username. The correct permissions on the file should look like the following:

    Code:
    -rw-r-----  1 root username  596 Jun  8 14:03 username
    Additionally, inside the file, the USER=username entry should have the username of that user. Some 3rd party plugins modify the username by appending .sometext to the end of the username. This can cause cPanel to be unable to read the user's file.

    If the file does not exist at all, then there would be an issue. You can cat the contents of another user's file in that location to see what it looks like and then copy that to create a new file for that user, modifying the contents to correspond to the right settings for that user.
    i am also having the same issue, & this account was not transferred from another cPanel box
    i did follow mentioned steps
    -bash-3.2# cd /var/cpanel/users
    -bash-3.2# ls -lah username
    ls: username: No such file or directory
    -bash-3.2# ls -lah xxxxx
    -rw-r----- 1 root sglobal 666 Sep 9 17:54 sglobal
    -bash-3.2# cat sglobal
    # cPanel -- If you edit this file directly you must run /usr/local/cpanel/script
    s/updateuserdomains afterwards to rebuild the system caches.
    # If you edit MAX_EMAIL_PER_HOUR or MAX_EMAIL_PER_HOUR-[domain] you must run /us
    r/local/cpanel/scripts/update_email_limits
    BWLIMIT=2097152000
    CONTACTEMAIL=info@xxxxxxxx.net
    CONTACTEMAIL2=
    DBOWNER=sglobal
    DEMO=0
    DNS=xxxxxxxxxxx.in
    FEATURELIST=default
    HASCGI=0
    IP=69.xx.xxx.18
    LANG=en
    LOCALE=english
    MAXADDON=0
    MAXFTP=1
    MAXLST=1
    MAXPARK=0
    MAXPOP=2
    MAXSQL=1
    MAXSUB=1
    MTIME=1315524461
    MXCHECK-xxxxxxxxxxx.in=0
    OWNER=jinfo
    PLAN=100MB_2pop
    RS=x3
    STARTDATE=1289823427
    USER=yyyyyy
    notify_disk_limit=
    notify_email_quota_limit=
    -bash-3.2#
    Last edited by crazyaboutlinux; 09-10-2011 at 02:13 AM.

  11. #11
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,289
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Unable to fetch the cPanel user file

    The username (sglobal) for the file you opened is different than the USER= line in that same file:

    Code:
    USER=sunshine
    Do you see how those don't match?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  12. #12
    Member
    Join Date
    Nov 2007
    Posts
    865

    Default Re: Unable to fetch the cPanel user file

    Quote Originally Posted by cPanelTristan View Post
    The username (sglobal) for the file you opened is different than the USER= line in that same file:

    Code:
    USER=yyyyy
    Do you see how those don't match?
    yeah got your point thanks lot, my problem is resolved now

Similar Threads & Tags
Similar threads

  1. Error Unable to fetch the cPanel user file for
    By Ahmed Abozaid in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-18-2011, 12:52 PM
  2. Unable to fetch libmcrypt-2.5.7.tar.gz
    By DigiCrime in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-03-2005, 05:48 PM
  3. 'Sorry, the copy failed. Unable to find the cpanel user file'
    By Sykoi in forum cPanel and WHM Discussions
    Replies: 30
    Last Post: 04-08-2005, 09:48 AM
  4. Sorry, the copy failed. Unable to find the cpanel user file
    By Francisco in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-07-2004, 06:36 PM
  5. User unable to upload 220MB file
    By AbeFroman in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-20-2004, 05:07 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube