-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message in allsky log #536
Comments
Comparing the EXIF data If I were to guess..
|
So is this something i need to look at on my side or a "non error" |
Is there anything else in the log after your snippet above? If so, providing it may give some additional insight. Otherwise, you may need to check permissions in the directory or for the final file name you're intending the upload to write to. Note: If you paste log snippets, please be sure to highlight them, then click the Thanks! |
The new "upload.sh" script lftp's a file using a temporary name, then removes the prior file and renames the temporary name to the final name.
The temporary files are named XX-RANDOM_NUMBER; each of the scripts that call upload.sh use a different value for "XX". "NI" is for Notification Images, "TL" for Time Lapse, etc. So when you saw NI-16525 it was one of the Notification Images (NotRunning.jpg). I used Photoshop to create all the Notification Images which is why you see "Photoshop" in the file. And you will get a different NI-* file every time because of the random number. Uploads used to simply The fact that you are seeing the NI-* files after lftp finishes (you'll always see them while the file is being uploaded), implies an error occurred during lftp. When an error happens, you'll see FILE_TO_UPLOAD=xxx, REMOTE_DIR=yyy, and other lines used by lftp in the log file. If you look after those entries in the log file you should see an lftp error that tells you what the problem is. |
BTW, I also notice some temp files on my remote server - in fact right now I have 2 from image.jpg files from a couple days ago, so there's clearly a bug somewhere. |
so i did review my log file and found the following. the temp file appears to be created when I stop or start the allsky service with the following command sudo service allsky stop/start i have attached a error in the log file that is looking for a non existent file call setting_auto.json i check the location /etc/raspap and that file is not there. attached a screen capture of the error in the log file. Mike |
@maserowik Check your IMG_DIR in scripts/ftp_settings.sh. It looks like it's set to "current" which likely doesn't exist on your hosting server. If your startrails, keogram and timelapse files ARE uploading, then your MP4DIR, KEOGRAM_DIR, and STARTRAILS_DIR are set ok. Thanks for being patient with us as we make changes that will improve the software over time. |
@EricClaeys here is my ftp settings FTP/SFTP/S3 settingsPROTOCOL='ftp' not following the "current" comment. Thanks for all you assistance. Mike |
Hardcoding the ZWO in the config.sh fixed the setting_auto.json message. |
@maserowik Thanks Mike. I know what the setting_auto.json bug is just not sure the best way to fix it. We'll eventually implement the ability to have multiple cameras and I'm not sure I just issued a bug fix for upload.sh failure with Notification Images (NI12345). I was using |
thanks for all the work you have done on this project! |
Just submitted PR #548 to resolve the |
You are welcome Mike. I appreciate the thanks; it's what keeps me going. |
just to confirm with the new git pull the files are still appearing on the root of the hosting company I am using. |
@maserowik Please check in the log file around the times the files were created on the hosting company server. There should be error messages from upload.sh's lftp as to why it couldn't rename the NI-* and PD-* files (PD is PostData from postData.sh which uploads the small data.json file). Would you also please download the two NI-* files to your PC/Pi and append ".jpg" to the names, then open them and tell me what they say? That might help me in determining where the bug is. |
@EricClaeys For the NI files I deleted them off my system already. Mike |
@maserowik I just submitted a bug fix that should fix the PD-* files. ftp-settings.sh is configured once by the user when they install the software, then isn't changed unless they want to change locations. The upload.sh script calls the ftp-settings.sh script at the top, before lftp is called. Assuming you configured ftp-settings.sh before you started Allsky, there shouldn't be a problem, but obviously there still is. Near the end of your scripts/copy_notification_image.sh file (possibly line 71), do you see this? |
that may be the issue. I start allsky and then use the gui to modify the settings. here is the listing of the scritps/copy_notification_image.sh |
@maserowik you have the correct scripts/copy_notification_images.sh. I'll need to see the upload.sh error messages to debug, starting a few lines above the |
I been running my allsky all day and have not seen the files show up on the hosting site. Mike |
thx @maserowik .. we'll close this for now. Should it reappear, let us know. |
I just did a new pull request and reconfigured my system. Looking at the log file i see the following
Oct 2 17:57:17 Pi-AllSky allsky.sh[2310]: FILE_TO_UPLOAD='/home/pi/allsky/tmp/image.jpg'
Oct 2 17:57:17 Pi-AllSky allsky.sh[2310]: REMOTE_DIR='current'
Oct 2 17:57:17 Pi-AllSky allsky.sh[2310]: TEMP_NAME='NI-16525'
I then noticed the file name NI -16525 uploaded to my webhosting company.
I tried to view it and it is i get random images on the screen
any idea what this is?
also when i stop and start the allsky service i get a different file but still starts with NI
Mike
The text was updated successfully, but these errors were encountered: