LubikR / SynologyUploader

Upload photos from Sony cameras directly to Synology server
The Unlicense
22 stars 5 forks source link

Error 408 #7

Open KRAM4321 opened 6 years ago

KRAM4321 commented 6 years ago

hi

When I enter the data to connect first time, the error "Permission Problem: Synology returns error 408" appears. If I use my user within Synology, I can create folders and files in the same path

Sony A6000

Thanks!!

LubikR commented 6 years ago

Hello, Could you please add log file? And one hint : User has to have rights for File Station application. Thanks

KRAM4321 commented 6 years ago

Hi!

With the same user I can create, move, delete, etc... files in File Station application.

Log: [INFO][SettingsActivity] Getting address : ****:5000 https:false [INFO][SettingsActivity] Got maxVersions: SYNO.API.Auth=6, SYNO.FileStation.CheckPermission=3 [INFO][SettingsActivity] Logged-in OK, sid=5JeZBeODYx6h61430M4N004777 [ERROR][SettingsActivity] Problem during permission check: 408 [INFO][SettingsActivity] Logged-out

Thanks!!

LubikR commented 6 years ago

According to Synology API document error 408 means "No such file or directory". I got error 408 when I fill not existing directory in. Please check if directory exists and user has got appropriate rights to this directory.

KRAM4321 commented 6 years ago

Hi! ok, change the path "/volume1/test" to "/test" and now it works. The button changed to "save and exit", the problem now is when I upload the photo ("upload now" button), the error appears after "uploading 1/1" "connection error 401"

With the same user I can create, move, delete, etc... files in File Station application

PD: No upload .arw files?

Regards!

[INFO][SettingsActivity] Getting address : ****:5000 https:false [INFO][SettingsActivity] Got maxVersions: SYNO.API.Auth=6, SYNO.FileStation.CheckPermission=3 [INFO][SettingsActivity] Logged-in OK, sid=5lldhiAa5rQZs1430M4N004777 [INFO][SettingsActivity] Check permission OK. Directory=/test [INFO][SettingsActivity] Logged-out [INFO][SettingsActivity] Saved and Go to MainActivity [INFO][MainActivity] Getting address : ****:5000 https:false [INFO][MainActivity] Publish progress: Connecting to the server... [INFO][MainActivity] Got maxVersions: SYNO.API.Auth=6, SYNO.FileStation.Upload=3 [INFO][MainActivity] Logged-in OK, sid=iJ.gvdSLyE46w1430M4N004777 [INFO][MainActivity] Publish progress: Uploading 1 / 1 [INFO][MainActivity] UploadVersion=3 [INFO][MainActivity] Path=//test/ILCE-6000/30072018 [INFO][MainActivity] Filename=DSC00002.JPG [INFO][MainActivity] Error during upload: 401 [INFO][MainActivity] Publish progress: Connection error : 401 [ERROR][MainActivity] HttpException - org.apache.http.HttpException: 401

LubikR commented 6 years ago

Please try only "test" as directory without backslash. Let me know. Thanks

KRAM4321 commented 6 years ago

Hi LubikR!

Ok, now work and upload the images, but only in JPG format. Do not upload raw and video files?

Regards!

LubikR commented 6 years ago

Hello, For video files I`ve raised an issue in framework project, see https://github.com/ma1co/OpenMemories-Framework/issues/20

Raw files - I am not able to test it because my camera doesn`t support raw files but it seems to be framework problem. Application uploads everything what mediaManager.queryImages() returns. I will check it if there is some way how to query raw files.

KRAM4321 commented 6 years ago

Hi LubikR

Any new ? :)

Thanks!

deepfriedmind commented 5 years ago

Did you ever figure anything out in regards to RAW files?

retrography commented 5 years ago

I'm not sure if he is active on this app anymore. Maybe someone else should pick the mantle up. The other upload app, STG uploader app, actually has an excellent implementation with a well-functioning file scanner detecting all available filetypes on the card. You can see the source here.