Some issues with FTP on a FreeNAS
-
I’m attempting to use a FreeNAS box as my storage node. I’ve followed the instructional Wiki for this process with moderate success. Unfortunately, after the image has been resized and captured I receive the following error on the client.
- Reattempting to update database…Failed
- Error returned: Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, Line: 708, Message: ftp_put(/mnt/Galaxy/data/images/dev/d850e63eca64): failed to open stream: No such file or directory, Host: 10.0.0.160, Username: Free
####################
An error has been detected
####################Could not complete tasking (/bin/fog.upload)
I’m guessing this is an FTP authentication error, but I haven’t been able to hunt it down on my own. I appreciate any help.
-
I don’t advise you to use a non-FOG server as a storage node. Its an unsupported configuration.
With that said…
I’m going to speak from a supported solution point of view so you know how it should work. Once the image has been uploaded to the/images/dev/<mac_address>
directory on the fog server, the FOS Linux client will then connect to the storage node using the values in the storage node configuration. These credentials Management Username and Management Password must be defined on the storage node. Because that is what FOS Linux will use to connect to the storage node. Once logged in via FTP, the FOS Linux client will issue a FTP move command from/images/dev/<mac_address>
to/images/<image_name>
directory.The error from your OP might indicate that
- This path doesn’t exist on your storage node:
/mnt/Galaxy/data/images/dev/d850e63eca64
- The user name
Free
doesn’t have read/write access to this directory - The user name
Free
doesn’t have read/write access to/mnt/Galaxy/data/images
(guess)
- This path doesn’t exist on your storage node:
-
Well, I checked permissions on those directories, and verified the path exists on my storage node. I think I’ll just need to buy bigger hard drives and do a local storage node. I really had hoped to use the FreeNAS but I’ve been after this for weeks and at this point it’s just worthless to keep wasting time.
-
I agree with George… I had one setup for a bit when I first started with FOG… It was a nightmare. I had nothing but issues. I switched to just using the server as the storage node. Works great!
-
@tandersb If you want to debug the issue, the best advice on debugging I can provide is here: https://forums.fogproject.org/post/124470 This is a fog admin that is trying to use a qnap and is getting a similar result.