Skip to content
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

Current picture upload not working #525

Closed
WirthmU opened this issue Oct 1, 2021 · 5 comments · Fixed by #527
Closed

Current picture upload not working #525

WirthmU opened this issue Oct 1, 2021 · 5 comments · Fixed by #527
Labels
bug Needs software change Need user response Waiting for user to respond

Comments

@WirthmU
Copy link

WirthmU commented Oct 1, 2021

I have installed from the latest commit and I get the following in the log:

Capturing & saving image...
Oct  1 16:08:51 allsky allsky.sh[772]: Capturing & saving image done, now wait 50 seconds...
Oct  1 16:08:53 allsky allsky.sh[772]: /home/pi/allsky/scripts/upload.sh: line 93: [: : integer expression expected
Oct  1 16:08:53 allsky allsky.sh[772]: *** upload.sh: ERROR:
Oct  1 16:08:53 allsky allsky.sh[772]: FILE_TO_UPLOAD='image-resize.jpg'
Oct  1 16:08:53 allsky allsky.sh[772]: REMOTE_DIR='/site/allsky/'
Oct  1 16:08:53 allsky allsky.sh[772]: TEMP_NAME='SI-18378'
Oct  1 16:08:53 allsky allsky.sh[772]: DESTINATION_FILE='image-resize.jpg'
Oct  1 16:08:53 allsky allsky.sh[772]: put: image-resize.jpg: Access failed: 553 SI-18378: Permission denied.
Oct  1 16:08:53 allsky allsky.sh[772]: mv: Access failed: 553 SI-18378: No such file or directory.
Oct  1 16:08:53 allsky allsky.sh[772]: Commands used (run via: lftp -f /home/pi/allsky/tmp/lftp_cmds.txt):
Oct  1 16:08:53 allsky allsky.sh[772]: open --user "user" --password "password" ftp://ftp-adress
Oct  1 16:08:53 allsky allsky.sh[772]: set net:max-retries 2
Oct  1 16:08:53 allsky allsky.sh[772]: set net:timeout 20
Oct  1 16:08:53 allsky allsky.sh[772]: rm -f SI-18378
Oct  1 16:08:53 allsky allsky.sh[772]: put "image-resize.jpg" -o SI-18378
Oct  1 16:08:53 allsky allsky.sh[772]: rm -f "image-resize.jpg"
Oct  1 16:08:53 allsky allsky.sh[772]: mv SI-18378 "/site/allsky//image-resize.jpg"
Oct  1 16:08:53 allsky allsky.sh[772]: bye
@EricClaeys
Copy link
Collaborator

@WirthmU , we will fix the error on the 3rd line of the log.
For the error in uploading the file using lftp, try running the commands manually. Look in /home/pi/allsky/tmp/lftp_cmds.txt for the list of commands. Did you change the acutal password, user name, and ftp address on this line?
open --user "user" --password "password" ftp://ftp-adress
If not, then you'll need to update ftp_settings.sh.

@WirthmU
Copy link
Author

WirthmU commented Oct 1, 2021

Yes - user/password/ftp are not the actual ones.

@EricClaeys
Copy link
Collaborator

Reopened since the failed lftp has not been resolved.
@WirthmU please download the updated upload.sh. It should fix the line 93 problem.
Let me know what happens when you try running the commands manually.

@linuxkidd linuxkidd added bug Needs software change Need user response Waiting for user to respond labels Oct 4, 2021
@EricClaeys
Copy link
Collaborator

@WirthmU, did the updated upload.sh fix the issue?

@EricClaeys
Copy link
Collaborator

Closing issue - no response from user, and it works for other people

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Needs software change Need user response Waiting for user to respond
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants