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/imagesI’m almost new whith Linux so perhaps i did something wrong ?
Sorry if it isn’t very clear, my english is not very goodCan you help me please ?
-
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”
-
-
.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)
-
Beast question:
The user in the “storage Management” is the same user that have the permission ? -
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 devIn storage management the user is default create by fog (username fog)
-
Can you just try to put the user root in “Storage Management” and test the upload ?
And on your server:
ls -laR /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,) -
@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/postdownloadscriptsIn storage management image path is /storage/images
-
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 ?
-
DOn’t remove line int fstab
In your webgui : Image Path : /storage/images ? and good Management Username /password
-
@Seydoo said:
/storage
Hi,
Your /storage is a local storage or a NFS mount from another system (like Other server, NAS, …)
Regards,
Ch3i. -
@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 -
@Seydoo Have you the .mntcheck in /storage/images and /storage/images/dev ?
-
-
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 -
@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 helpThe problem was that you have a password policy that does not accept the password “password”.