FOG won't move images
-
@Wayne-Workman Yes.
I did notice that in the prep stages of the capture it sets permissions for /images/macaddress rather than /images/nameofimage ,not sure if that’s relevant or not though.
On latest trunk I get the same error as https://forums.fogproject.org/topic/7153/unable-to-upload-image-error-returned-type-2-file-var-www-fog-lib-fog-fogftp-class-php/2
Obviously, deleting the folders prior to capture each time would get tedious after a while, so I’m hoping for a better solution.
-
This is what I get with latest update, not sure if this happens before the FTP move (since the images aren’t moved yet)
-
@Quazz I’ve had this error before, it turned out to be an FTP thing every time for me - but with different causes. a bad password set for the
fog
account, or bad permissions in the/images
directory, or selinux turned on.My suggestion would be to comb through all the FTP stuff again - but slower this time.
-
@Wayne-Workman I can manually connect to the FTP by copy pasting the password from any location.
Permissions are 777 (set by chmod -R 777), ownership is fog:fog (chown -R fog:fog) and have been for a while now.
Running Ubuntu, so Selinux is not even installed at all.
I believe Tom checked those things as well when we had join.me session.
I double checked everything multiple times to make sure the issue wasn’t on my side, but I’ll explore some more out there ideas now. Will report back if I have some progress.
-
@Quazz At this stage of upload the client is kind of reporting back to the FOG server - triggering the image file move via FTP. Please see if you have any errors in the apache log (/var/log/apache/error.log) when you see this messages on screen!
As well you can try sending that request from a different (linux) machine to see what’s going on.
wget --post-data="mac=<mac>&type=up&osid=<osid>" -qO - http://${web}service/Post_Stage2.php
Put in
<mac>
and<osid>
to match your client/image information…The (empty)
Error returned:
message on screen seems to tell us that there was no error returned. That’s why I guess you should see something in the apache error log… -
Tom found the issue.
When I was troubleshooting when I originally made the file, I used a FTP client to verify everything was in order. This in turn created .listing files in the image folders. There was no need to delete hidden files, so FOG wasn’t programmed to do so… until now! The hidden files then meant that rmdir would fail because the folders contained files.
But thanks to Tom’s awesome work it should now work every time
-
Good catch man! Marking this solved.