Unable to upload images
-
@Doctrg Can you provide your apache error log please?
Maybe even the access log?
-
@Tom-Elliott 0_1484688152981_error_log I’ve attached the error log, however the access log has not been modified since June 2016.
-
@Doctrg Did somebody make your images immutable by chance?
-
@Tom-Elliott No, but there are 2 images that I have set to locked to make sure no-one else can make changes or delete them.
-
@Doctrg Are you uploading on one of these images? What do you mean set to locked I guess?
-
@Tom-Elliott I’m not trying to change those images and they are on one of the other storage nodes. There’s the option in the Image Management to set the image as Protected.
-
Here’s what I’m seeing is the issue:
[Tue Jan 17 14:58:50 2017] [error] [client 10.16.10.73] PHP Fatal error: Uncaught exception 'Exception' with message 'Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, Line: 708, Message: ftp_put(): Could not create file., Host: 10.16.0.220, Username: fog' in /var/www/html/fog/lib/fog/fogftp.class.php:367\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogftp.class.php(772): FOGFTP->ftperror(Array)\n#1 /var/www/html/fog/lib/reg-task/taskqueue.class.php(366): FOGFTP->rename('//images/dev/74...', '//images/LABNUR...')\n#2 /var/www/html/fog/lib/reg-task/taskqueue.class.php(413): TaskQueue->_moveUpload()\n#3 /var/www/html/fog/service/Post_Stage2.php(24): TaskQueue->checkout()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/fogftp.class.php on line 367
Can you manually remove the folder that’s trying to be placed in the image location?
I don’t know the full name of the image but it looks like something:
rm -rf /images/LABNUR<other_stuff_I_cannot_see>
-
@Tom-Elliott Ok. I was able to manually delete the folder. I then had a spark in the brain to try something. I created a new image and unchecked replicate image. It was able to upload the image correctly. I then put the check mark back in to replicate the image and it failed. So it seems that since we are not replicating our images we should uncheck that because it seems to be the issue.
-
@Doctrg It could be, but replication doesn’t play (shouldn’t) a value in dealing with uploads.
I’ll see if I can confirm but I assure you this shouldn’t be the case. Only example I could think that might make it a problem, is if lftp is actually running, essentially making the file unable to be removed. -
@Tom-Elliott It would great if there were a global setting for disabling replication. I have updated one of our other storage nodes that was failing before 1.3.2 and with replication unchecked it uploaded without an issue.
-
@Doctrg I wonder if this isn’t a bug, but it cannot remove the original image file because it’s trying to push the images down to the other nodes?
As a test would you be able to do say:
service FOGImageReplicator stop
(but keep the image with replication on?)The image replicator service wouldn’t be trying to do anything and any stuck transfers would be killed on the stopping of the replicator service. Can you upload then?
-
@Doctrg said in Unable to upload images:
@Tom-Elliott It would great if there were a global setting for disabling replication…
Stop the FOGReplicator service and then all replication will stop.
But I see Tom’s point the only time the image will be locked is when it is currently in the replication state.
-
@Tom-Elliott I stopped the Replicator service and tried uploading with replicate checked. It failed uploading.
-
@Doctrg I’m told by one of our other techs that even with the service off and the replicate image unchecked that it still fails.
-
I just came to stop by and say I’m monitoring this thread as I have the same issue. Thanks for your hard work.
-
@cadams said in Unable to upload images:
I just came to stop by and say I’m monitoring this thread as I have the same issue. Thanks for your hard work.
Do you have multiple storage nodes in your setup? If not we might want to start a new thread just to keep the issues split because the conditions are different.
-
@george1421 Sorry! My intention was not to hijack, but you are correct, the conditions seem to be different. I will start my own thread.
-
@Tom-Elliott So seeing that 1.3.3 had been published, should I update to this to see if it fixes my issue?
-
@Doctrg You can, though I don’t think anything in 1.3.3 has anything to fix the problems you were seeing with uploading. None of that has changed. It certainly won’t hurt at the least.
-
@Tom-Elliott I have not updated to 1.3.3 yet, but I found another issue that we are having. I was able to image a computer, but it is not auto joining to the domain. I also inputted the domain password just to make sure it was using the right password.