Upload never gets moved out of the /images/dev/#### folder
-
@TThax It’s an FTP issue - 95% of the time it’s because credentials are wrong. Look here for fixing it: https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP
-
@Wayne-Workman I have tried that. FTP appears to be working. when I do ftp://[ip] it shows up fine. The credentials all seem to match. I have looked at the vsftpd.conf file and it looks correct. The firewall is disabled. I have done the chmod and chown steps. sda1 is ext4. Any other suggestions?
-
@TThax make sure you have
/images/.mntcheck
Did you FTP from another computer?
-
@Wayne-Workman Ok, I don’t see that. How would I get that?
-
@TThax It’s a hidden file. Use CLI and issue the command
ls -la /images
to see hidden files there.You will most likely have it, so I’ll go back to my other question - Did you try FTP from a computer besides the FOG server?
-
@Wayne-Workman Yes, I used chrome on this machine (windows 7) and did ftp://[ip] and it showed the Index of /. Attached is what my ls -laR images produces for the parent /images folder.
(/uploads/files/1452697396953-ls-lar.png)
-
@TThax Can you try to use windows CLI to log in via FTP ? There is an example here: https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP#Try_to_get_a_file_with_Windows:
-
@Wayne-Workman The get and put commands both worked exactly as in the example.
-
@TThax I don’t want to leave any stone unturned here - did you FTP into the server using the credentials inside of Storage Management -> [node name] -> Username and Password?
Can you do a
df -h
to check how much free space you have on your server’s partitions? If you have enough, we will need to do a debug upload.You can select a debug upload from the confirmation page. Then just boot up the host that’s going to do the upload.
Hit enter at the informational bits until you get to a Shell.
Type in the
fog
command. this will start the upload. Press [enter] at each part. At the very end of the upload, after the partclone screens, it should say something about “Moving image”.At that point, hit
Ctrl+C
to end the script. We are working manually from here. at the shell, try to FTP into the server and move the folder yourself - using the credentials in FOG Storage -> [node name] -> Username and Password.There are linux examples here, but not specific to what you’re doing: https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP#Try_to_get_a_file_with_Linux:
You’ll look into the /images/dev folder. You will see a folder in there, it’s name will be the MAC address of the uploading computer. You’ll just issue the FTP command to move that folder to /images/YourImageName
See if the command succeeds or not. If not, don’t give up, it might be a syntax issue. Check for typos in your command.
-
@Wayne-Workman Sorry, hectic day here today. I won’t have another opportunity to do some of that until Monday (my next time to be at this location). Just to let you know I haven’t forgotten or ignored you.
-
@Wayne-Workman
Edited to say: Just for clarification, I am running Fog 1.2 on Ubuntu 14.04.Ok, I checked, and the main partition has like 1.6TB available on it.
I tried to do the debug upload and here is what it does:
/bzImage... ok /init.xz... ok Starting logging: OK Populating /dev using udev: udevd[2177]: error creating epoll fd: Function not implemented done Initializing random number generator... done. Starting network... ip: RTNETLINK answers: File exists [root@10 /]# It is there I typed in "fog" and hit enter. Then it does this: ################################## # An error has been detected! # ################################## Fatal Error: Unknown request type :: Null ################################## #Computer will reboot in 1 minute # ##################################
-
@TThax This is because of how you setup the debug.
On 1.2.0 you need to choose the Advanced item that is labeled Download - Debug
-
@Tom-Elliott Thanks, I was just hitting debug.
@Wayne-Workman
Perhaps I am missing something, but after the partclone screens, it saysRestoring MBR…Done
Press [Enter] Key to continue
Resizing ntfs volume (/dev/sda2)…Done
Clearing ntfs flag… DoneAnd that’s it. I tried doing Ctrl+c after restoring MBR, but it just gave me the prompt [root@10 /]# and I couldn’t access ftp from that.
I am terrible with Linux, so all help is appreciated! Also, could you give me a better idea of the syntax for the ftp try? Should I get the file and then put it? Or is there a way to move a file to a different folder on the same machine from ftp?
-
@Tom-Elliott said:
On 1.2.0 you need to choose the Advanced item that is labeled Download - Debug
Upload - Debug
We want to test uploading lol. @TThax did you do a upload or download?
-
@Wayne-Workman
I did upload. lol. I knew what he meant on that one. -
@TThax So here lately, the messages at the end of upload have changed.
I don’t think it shows anything if it does not fail.
What that means is… there are no errors being detected. But clearly it’s not working either.
Again, I’ll ask @Tom-Elliott for an example command.
-
I’m not too opposed to just moving it manually, but is there a way to get FOG to recognize that it is there? When I move it manually, it shows “Image size: ON SERVER 0.00iB”
-
@TThax said:
When I move it manually, it shows “Image size: ON SERVER 0.00iB”
Check permissions and ownership of the directory after you move it.
-
Ok, after I moved it, I checked permissions and it showed fog fog. I did chmod and chown and now it shows fog root. I still get no size. I’ll show you what I mean.
If I get it deployed using task management, it will show an image size on client, but it still doesn’t realize there is an image on the server.
-
@TThax Your problem is absolutely related to FTP not being able to do what it’s supposed to do.
Let’s go back to the basics… Did it ever work? When did it stop working?