Problem mounted file system (permission denied) [SOLVED]



  • Hello,

    My Linux is this one : Red Hat Enterprise Linux Server release 6.6 (Santiago)

    I just install FOG 1.2.0 and try to upload my 1st image and I have an error message during the upload process :

    Checking Mounted File System …mounting x.x.x.:/folder/images/dev on /images failed : permission denied

    An error has been Detected!

    Fatal Error: Failed to mount NFS Volume : permission denied

    Computer will reboot in 1 minute.

    In my fog web page management i changed the storage folder to /storage/images (/storage is a mount volume with a disk of 500GB)
    First I moved the /images in /storage, i thought this was the problem so i removed it in its initial location (/)

    then I used the command :

    /]# chmod 777 /storage
    /storage]# mkdir images
    /storage]# chmod 777 /storage/images

    I’m almost new whith Linux so perhaps i did something wrong ?
    Sorry if it isn’t very clear, my english is not very good

    Can you help me please ?


  • Moderator

    @Seydoo said:

    My problem is solve, due to a bad password (user fog on linux with not the same password than fog tftp user)
    tanks to ch3i for his help

    The problem was that you have a password policy that does not accept the password “password”.



  • My problem is solve, due to a bad password (user fog on linux with not the same password than fog tftp user)
    tanks to ch3i for his help



  • @ch3i said:

    @Seydoo Have you the .mntcheck in /storage/images and /storage/images/dev ?

    y es I have it (created with touch command)


  • Moderator

    @Seydoo Have you the .mntcheck in /storage/images and /storage/images/dev ?



  • @ch3i said:

    @Seydoo said:

    /storage

    Hi,

    Your /storage is a local storage or a NFS mount from another system (like Other server, NAS, …)

    Regards,
    Ch3i.

    My /storage is a local storage with all permission (chmod 777)

    I just see in my webgui in image management a curious message :
    I juste have 1 image created
    image name : my image name
    image size : ON CLIENT : 0.00iB
    Image Size : ON SERVER : FOGFTP : Login failed. Host x.x.x.x, Username: Fog, Password: password (defautlt i didnt touch it for the moment), Error: ftp_login(): Login incorrect


  • Moderator

    @Seydoo said:

    /storage

    Hi,

    Your /storage is a local storage or a NFS mount from another system (like Other server, NAS, …)

    Regards,
    Ch3i.



  • DOn’t remove line int fstab

    In your webgui : Image Path : /storage/images ? and good Management Username /password



  • Something strange in the error is this section :

    Checking Mounted File System …mounting x.x.x.:/folder/images/dev on /images failed : permission denied

    in wiki the “mounting on” isn’t present, could it be the real problem and if yes how can i change this ?



  • @TheKoR said:

    Change /etc/export to :

    /images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,fsid=1,)
    /images/dev *(rw,sync,no_wdelay,no_root_squash,insecure,fsid=2,)
    /storage/images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,fsid=3,)
    /storage/images/dev *(rw,sync,no_wdelay,no_root_squash,insecure,fsid=4,)

    Done but problem still exist
    do i have to del /images lines and just keep /storage lines ?

    Here is a recap of my tree :

    /images
    /images/dev
    /images/postdownloadscripts
    /storage
    /storage/images
    /storage/images/dev
    /storage/images/postdownloadscripts

    In storage management image path is /storage/images



  • Change /etc/export to :

    /images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,fsid=1,)
    /images/dev *(rw,sync,no_wdelay,no_root_squash,insecure,fsid=2,)
    /storage/images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,fsid=3,)
    /storage/images/dev *(rw,sync,no_wdelay,no_root_squash,insecure,fsid=4,)



  • Can you just try to put the user root in “Storage Management” and test the upload ?

    And on your server:

    ls -laR /images



  • here are the right on /images in /storage

    drwxrwxrwx 4 root root 4096 21 mai 09:29 images
    and for /dev in /images :
    drwxrwxrwx 2 root root 4096 21 mai 09:29 dev

    In storage management the user is default create by fog (username fog)



  • Beast question:
    The user in the “storage Management” is the same user that have the permission ?



  • .mntcheck is present in /images and /images/dev (i uses the touch command as explain in wiki) but there’s still the message
    vi /etc/export give me this :

    /images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,fsid=1,)
    /images/dev *(rw,sync,no_wdelay,no_root_squash,insecure,fsid=2,)
    /storage/images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,fsid=1,)
    /storage/images/dev *(rw,sync,no_wdelay,no_root_squash,insecure,fsid=2,)

    (I just add /storage line and keep the 2 1st lines)





  • error while writing the error message :

    read “Checking Mounted File System …mounting x.x.x.:/Storager/images/dev on /images failed : permission denied” instead of “Checking Mounted File System …mounting x.x.x.:/folder/images/dev on /images failed : permission denied”


Log in to reply
 

400
Online

38937
Users

10696
Topics

101490
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.