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

Jiotty just exit with no error message #103

Closed
teimuraz1962 opened this issue May 19, 2021 · 15 comments
Closed

Jiotty just exit with no error message #103

teimuraz1962 opened this issue May 19, 2021 · 15 comments

Comments

@teimuraz1962
Copy link

Kubuntu 20.04 with all updates, desktop Plasma
Linux temo-Lenovo-T420 5.8.0-53-generic #60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

./JiottyPhotosUploader -v
Version 1.8.0

I'm using Jiotty to upload a lot of files (more than 90 000), about 45% already uploaded. But now, after exit it won't run any more. Every time I run it, it's just exiting without any message.

It already happened once with previous version, and nothing helped, until I've deleted ~./.jiottyphotosuploader folder and started it over.

Should I do it again? Is there any way to correct it's behaviour?

Thank you beforehead.

@ylexus
Copy link
Owner

ylexus commented May 19, 2021

Hi, are you using the command line only or UI?
When this happens, can you send me the logs from ~./jiottyphotosuploader/log/main.log? Either attach here or email me at opensource@yudichev.net. The file should not contain any picture file names as the app just crashes. Also please check current directory where you run the app for any crash logs or other similar files and if any are found - attach them too please.

@teimuraz1962
Copy link
Author

teimuraz1962 commented May 19, 2021 via email

@ylexus
Copy link
Owner

ylexus commented May 19, 2021

@teimuraz1962 replying via email and attaching files does not work in GitHub. Please attached the file via GitHub web interface.

@teimuraz1962
Copy link
Author

Sorry, here it is

@teimuraz1962 replying via email and attaching files does not work in GitHub. Please attached the file via GitHub web interface.

Sorry, here it is

main.log

Hm... hope I did it in right way ;)

@ylexus
Copy link
Owner

ylexus commented May 20, 2021

Yes thanks. The state database file data.json got corrupted. I’ve seen that before once. Could you send me ~/.jiottyphotosuploader/data.json from your renamed folder please? It will contain your file names, so maybe you’d prefer to email it to me instead of posting here. If you don’t want me to see your file names, then please at least cut the section a few lines before and after line number 201816. In column 4 on this line there’s an illegal character, 0, and I’d like to be see in what context it appears. Thanks!

@teimuraz1962
Copy link
Author

teimuraz1962 commented May 20, 2021 via email

@ylexus
Copy link
Owner

ylexus commented May 20, 2021

GitHub hid the email address. It’s opensource@yudichev.net.
it’s best not to use email to reply to GitHub comment notifications - it does not work well . Please click on “view it on GitHub” link at the bottom of such emails and write your response as a comment.

@ylexus
Copy link
Owner

ylexus commented May 20, 2021

201816 Is a line number in the text file, not the actual number that is contained in the file. In any case, if you email the file to me it’ll be ideal.

@teimuraz1962
Copy link
Author

201816 Is a line number in the text file, not the actual number that is contained in the file. In any case, if you email the file to me it’ll be ideal.

I've sent complete file to your email, hope you got it.

@ylexus
Copy link
Owner

ylexus commented May 21, 2021

Yes I received it. The issue is that this file was saved with a strange character '0' in the unexpected place. It should have been a space there. The Jackson library used to save it has no known bugs that would cause this. Is there any chance you could have manually edited this file between Jiotty runs and accidentally added this character? If not, it's some transient bug in the Jackson library. I can't seem to explain it any other way. I have a planned enhancement #70 that would completely replace this file with a more reliable database, this would prevent this problem. It's quite a bit of work though.

      "/vol2/Pictures_2/My Pictures/2007-07-21/IMG_8544.JPG" : {
  0     "uploadState" : {
          "token" : "..",

@teimuraz1962
Copy link
Author

teimuraz1962 commented May 21, 2021 via email

@ylexus
Copy link
Owner

ylexus commented May 21, 2021

OK, I think I’ll just crack on with #70 - this will solve the problem for sure.

As for controlling the space - this is possible, but is also quite a bit of work mostly because I will need to authorise Jiotty to use Google Drive API. Feel free to raise a new issue for this.

@ylexus
Copy link
Owner

ylexus commented May 21, 2021

Closing this one - please follow #70 to check for progress.

@ylexus ylexus closed this as completed May 21, 2021
@ylexus
Copy link
Owner

ylexus commented May 21, 2021

@teimuraz1962 try version 1.9.0 please where I changed the way upload data is stored - no more gigantic text data.json files.

@teimuraz1962
Copy link
Author

teimuraz1962 commented May 21, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants