haiwen / seafile-iOS

iOS client for seafile
Apache License 2.0
221 stars 151 forks source link

iOS: file upload not working #262

Open stuntsman opened 5 years ago

stuntsman commented 5 years ago

On iOS I can't upload files in the past few months: the app can only download files, but can't upload. I suspect an app update may changed the behaviour.

Android app and Windows client work fine as always (both upload and download work as expected).

iOS app version: 2.9.3 iOS version: 12.4.1 Seafile server: 6.2.9 (pro)

Related configuration:

ccnet.conf SERVICE_URL = https://domainname.com/thesubfolder

seafile.conf

[fileserver]
port = 18891

seahub_settings.py

SITE_ROOT = '/thesubfolder/'
LOGIN_URL = '/thesubfolder/accounts/login/'
FILE_SERVER_ROOT = 'https://domainname.com/seafhttp'
HTTP_SERVER_ROOT = 'https://domainname.com/seafhttp'

(The settings are the same on Web UI settings.)

apache

ProxyPass /seafhttp http://127.0.0.1:18891
ProxyPassReverse /seafhttp http://127.0.0.1:18891
RewriteRule ^/seafhttp - [QSA,L]

SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
ProxyPreserveHost On
ProxyPass / fcgi://127.0.0.1:8000/

None of the Seafile log files or the Apache log files shown any errors. It looks that the client doesn't even start the uploads.

Is there anything I should try? asset

stuntsman commented 5 years ago

Also this is an encrypted library, "Local decryption" is turned on in iOS.

Wiping cache, restarting the phone doesn't help.

stuntsman commented 5 years ago

App reinstall did help for a while (approx. 200 images were uploaded to Camera uploads), but then the upload stopped again, the upload queue is now empty.

changsijay commented 5 years ago

same issue here with seafile-server-7.0.5 in the nginx error log, seems it access wrong api endpoint

2019/11/14 10:46:33 [error] 902#902: *47206 "/var/www/html/api2/server-info/index.html" is not found (2: No such file or directory)
Zebradil commented 4 years ago

I'm experiencing the same issue. In the app settings I see "camera upload 1620 photos remain", but uploading queue is empty. After restarting the queue gets some files to upload, but then stuck again.

basalphenaar commented 4 years ago

Uploading from the iOS app doesn't work for me either anymore with server version 7.1.5 and iOS app version 2.9.11. I tried reinstalling the app but this didn't help, it's always stuck at "Waiting for upload" just like @stuntsman described. I'm not seeing anything in the logs of Seafile that indicates what could be causing this. Uploading files from Seafile Client on macOS does work so it seems to be related to the iOS app.

basalphenaar commented 4 years ago

Never mind, this was an issue on my end, I recently reinstalled my Seafile server and forgot to change "http://" to "https://" in SERVICE_URL and FILE_SERVER_ROOT in the system admin settings. Just leaving this here so that people who run into this problem can check those settings first.

alvinleongcw commented 8 months ago

Never mind, this was an issue on my end, I recently reinstalled my Seafile server and forgot to change "http://" to "https://" in SERVICE_URL and FILE_SERVER_ROOT in the system admin settings. Just leaving this here so that people who run into this problem can check those settings first.

you saved me. thanks