Alright, I got this figured out. Everything was configured correctly on the FOG end, it ended up being a setting on the Synology NAS that I needed to change. I had to enable SFTP. Once that was enabled, everything began working correctly.
Posts made by Chris Bosman
-
RE: Unable to Create Download Task from NAS-stored image
-
RE: Unable to Create Download Task from NAS-stored image
@Wayne-Workman said:
@Chris-Bosman said:
Wayne,
Going into the folder where my images are to be stored on the NAS via the command line and running pwd, the path I get is “/volume1/Workstation_Images”. The lowest directory I can get to on the NAS simply displays as “/”.
To me, this would suggest that “/volume1/Workstation_Images” is the proper path? Am I correct in assuming that? Because I’ve attempted using that path and still receive the error.
For FTP credentials, I am using the same user name and credentials in the following locations. This has been the case since the start:
- On the Synology NAS box, which as read/write privileges over the Workstation_Images folder
- Under Management Username & Management Password for the storage node.
- Under FOG_TFTP_FTP_USERNAME/FOG_TFT_FTP_PASSWORD
- For the FOG Server’s “fog” user
- In the file /opt/fog/.fogsettings under storageftpuser/storageftppass
So close.
On a windows machine at a command prompt, you can FTP into your FOG box.
Like this:
There are more details here: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP#Try_to_get_a_file_with_Windows:
So, the path you found was the disk path, via CLI on the server itself. I’m asking you to figure out your “FTP Path”
Wayne,
Following the instructions in the linked Troubleshooting document does not work with the instructions provided. Most commands using Windows Command Line give me an error of “500 PORT/EPRT (Active Mode/Extended Active Mode) is not supported. Use PASV/EPSV instead of this”. This includes attempting to use “ls” to list any directory or using “cd”. Using “pwd” to list the directory gives me an answer of “‘/’ is current directory.”
I did, however, find the Workstation_Images folder by randomly inputting some cd commands. Getting into that folder and requesting the filepath gave me “‘/Workstation_Images’ is current directory”. This would be helpful, except I’ve already attempted using both “/Workstation_Images” and "Workstation_Images’ (without the leading /) as my FTP Path.
Any advice on where to go from here?
- Chris
-
RE: Unable to Create Download Task from NAS-stored image
Wayne,
Going into the folder where my images are to be stored on the NAS via the command line and running pwd, the path I get is “/volume1/Workstation_Images”. The lowest directory I can get to on the NAS simply displays as “/”.
To me, this would suggest that “/volume1/Workstation_Images” is the proper path? Am I correct in assuming that? Because I’ve attempted using that path and still receive the error.
For FTP credentials, I am using the same user name and credentials in the following locations. This has been the case since the start:
- On the Synology NAS box, which as read/write privileges over the Workstation_Images folder
- Under Management Username & Management Password for the storage node.
- Under FOG_TFTP_FTP_USERNAME/FOG_TFT_FTP_PASSWORD
- For the FOG Server’s “fog” user
- In the file /opt/fog/.fogsettings under storageftpuser/storageftppass
-
RE: Unable to Create Download Task from NAS-stored image
Tom,
I have tried “/Workstation_Images” and simply “Workstation_Images” as the ftp path and have had no luck. The images still end up in the /[NFS path]/dev/[MAC address] folder.
-
RE: Unable to Create Download Task from NAS-stored image
What does it need to be changed to?
To be specific, my Image Path is /volume1/Workstation_Images, as is my FTP path.
-
Unable to Create Download Task from NAS-stored image
Hello,
I posted originally in an older topic but am now creating a new topic for this issue, as I am just finding time to come back around to it.
I am attempting to use a Synology NAS for the storage of my FOG server’s images. I am able to successfully upload images to the NAS, however I am unable to then deploy those images, receiving the error “You must first upload an image to create a download task.”
I am using FOG Trunk Git version 4660 on Ubuntu 15.04.
My pertinent storage node information is as followed:
Storage Node Name: [NAME]
IP Address: [NAS IP Address]
Web root [NAS IP Address] (Is this correct?)
Image Path: [NFS path to Images folder on the NAS]
FTP Path: [Identical to Image Path] (Is this correct?)
Management Username: fog
Management Password: [password for fog user on the NAS]Per the documentation at https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP#Credentials_.2F_Passwords, all passwords mentioned on that page are identical. Additionally, the fog user on the NAS also has that same password.
I am able to successfully FTP from the FOG server to the NAS using the fog user credentials and both upload and download a test text file to the Images folder. Permissions when I do so appear appropriately, and when I do FTP into the NAS from the FOG server using the fog user, I do end up in the Images folder.
Ultimately, once I upload the image, said image ends up in the /[Images NFS path]/dev/[Machine’s MAC address] folder, which if I’m remembering correctly indicates some failure of FTP.
Any assistance would be appreciated.
Thank you,
Chris Bosman -
RE: Fatal Error: Failed to mount NFS volume
@Wayne-Workman Case is confirmed correct and the .mntcheck files have been moved there. Uploading works fine. I set the permissions recursively but still cannot set up a download task. I get the error:
“Download task failed to create for [COMPUTER] with image [IMAGE NAME]
To setup download task, you must first upload an image” -
RE: Fatal Error: Failed to mount NFS volume
@Wayne-Workman Hey, thanks for the reply. I’m back in to the office and working on this issue.
I was able to confirm that FTP is working in general on the NAS via Windows.
So my problem is twofold:
The first is I was/am having the same specific issue as @szecca1 where after uploading an image, the image does not properly get FTP’d to the folder for images that I have set up and instead stays in the dev folder under the MAC address. I am assuming this has to do with the FTP issue that @Tom-Elliott described and suggested the symbolic links. I was able to eventually properly put up the symbolic links. I haven’t been able to test yet, but I think that any new upload will be able to be used properly.
But that’s where my second issue comes in. I have an upload that I need quickly downloaded that ended up in a /dev/[MACADDRESS] folder. I manually moved the image to a folder named appropriately for said image but I’m still not able to create a download task. It’s like the image within FOG is not associated with the folder I created. I am not sure how to forge this association so I can start the download task. This is a large image file and I do not necessarily have time to upload it again. Any suggestions would be appreciated. Thank you.
-
RE: Fatal Error: Failed to mount NFS volume
I have gone through this thread because I too was trying to add a Synology NAS share as additional storage for my FOG server. Everything in this post was very helpful…
Until I got to the end. How did the FTP issue get resolved, step-by-step? I attempted to perform a symbolic link on the NAS as instructed in the final developer post, however this did not seem to resolve my issue.
Any further help would be greatly appreciated.
-
RE: Can No Longer Login to Web GUI - Invalid Login (FOG 1.1.2/Ubuntu 14.04)
Any other suggestions? I already have a couple images saved to the server and would rather not start from scratch, but if I can’t figure this out, I guess that’ll have to be my solution.
-
RE: Can No Longer Login to Web GUI - Invalid Login (FOG 1.1.2/Ubuntu 14.04)
Renaming the account did not work.
-
RE: Can No Longer Login to Web GUI - Invalid Login (FOG 1.1.2/Ubuntu 14.04)
I always change default usernames in my environment, out of habit and for security purposes. I changed this account name within the Web GUI, so without access to the Web GUI I’m unsure how to change it back.
-
RE: Can No Longer Login to Web GUI - Invalid Login (FOG 1.1.2/Ubuntu 14.04)
I did not create a user named Fog. I did change the default user’s name from fog to fog_admin. I tried resetting the Ubuntu machine’s user password for the account ‘fog’, which succeeded, but this did not resolve my login issue.
-
Can No Longer Login to Web GUI - Invalid Login (FOG 1.1.2/Ubuntu 14.04)
Hi all,
I am testing out FOG in my company environment. It’s not a pressing need, more a QOL upgrade for me and, as such, I’ve been sort of on-and-off testing it. I’m currently running FOG 1.1.2 on Ubuntu 14.04 Workstation 64-bit. The Ubuntu workstation is running on an ESXi host.
My problem is as follows: I am able to set up the FOG server initially with no problems. After installation, I am able to log into the Web GUI with the default user name and password. I then set up new user names and passwords for security purposes (defaults = sad face emoticon). I am able at that point to set up my images, register workstations, send commands, etc.
However, and this is the second run-through that I’ve encountered this, after a certain amount of time or one reset, going to the web GUI would suddenly prompt me with the Database Schema Installer/Updater prompt and, upon clicking, would fail that update. I found a forum post that gave a workaround for this – [URL=‘http://fogproject.org/forum/threads/problem-after-update.10985/page-2’]link here[/URL]-- where it was recommended that I had the following code to the /etc/init/mysql.conf file:
[FONT=Consolas]start on (net-device-up IFACE=eth0
and local-filesystems
and runlevel [2345])[/FONT]I did this and this resolved the Database Schema Installer/Updater issue-- I could now get the login prompt again. However, none of my user names or passwords now work. Every user name or password I give, from the default fog/password to [my fog username]/[my fog password] to fog/[my fog password] to [my fog username]/password, gives me an “Invalid Login” answer.
Note, my FOG server is still running properly in the background. I am able to PXE boot workstations, register them, etc. I just am not able to login to the Web GUI. I went into the MySQL settings and was able to confirm that [my fog username] was a user in the fog database, and I changed the password for that user successfully, but the new password STILL gave me “Invalid Login.” I’ve gone through some other forum posts with issues similar to (but not exactly the same as) mine and tried some of those troubleshooting steps to no avail.
NOTES:
[LIST]
[]I [I]did[/I] create a root password for the MySQL database upon installation. I can see that password in /var/www/fog/lib/fog/Config.class.php under db_settings and it is the correct password. I can use this root/password combination to log into the MySQL database successfully.
[]In my Apache error logs, I see the following four strings repeated:
[LIST]
[]“PHP Warning: MySQL::sqlerror(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 89, refer: [[url]http://[fogserver]/fog/management[/url]”
[]“PHP Warning: MySQL::sqlerror(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 180, refer: [[url]http://[fogserver]/fog/management[/url]”
[]“PHP Warning: MySQL::sqlerror(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 247, refer: [[url]http://[fogserver]/fog/management[/url]”
[]“PHP Warning: MySQL::sqlerror(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 247, refer: [[url]http://[fogserver]/fog/management[/url]”
[/LIST]
[]Yes, the error about line 247 repeats twice, then the error circles back around to line 89.
[]I have looked at /var/www/fog/lib/db/MySQL.class.php at the aforementioned lines and could see nothing strange about them, but I can provide them, or the whole file, upon request.
[/LIST]