Closed pledou closed 2 years ago
Mmh, not yet analysed, but I wonder if it's due to wrong webdav call or bug in webdav server code...
A small ADB on my phone give me some errors during upload retry:
ork, *, timestamp:1656099966922, name:immediate_files_sync } ] 06-24 21:46:07.122 2681 2734 D UploadsStorageManager: updateUpload returns with: 1 for file: /storage/emulated/0/DCIM/Camera/IMG_20220622_084730_5.jpg 06-24 21:46:07.122 2681 2734 D UploadsStorageManager: notifyObserversNow 06-24 21:46:07.122 2681 2681 D UploadsStorageManager: QUERY: status==2 AND account_name== ? ROWID: -1 06-24 21:46:07.130 2681 2681 V UploadsStorageManager: getUploads() got 0 rows from page 0, 0 rows total so far, last ID -1 06-24 21:46:07.130 2681 2681 V UploadsStorageManager: getUploads() returning 0 (0) rows after reading 1 pages 06-24 21:46:07.130 2681 2681 D UploadListAdapter: loadUploadItemsFromDb 06-24 21:46:07.133 2681 2681 D UploadsStorageManager: QUERY: status==0 OR last_result==9 OR last_result==13 OR last_result==11 OR last_result==14 AND account_name== ? ROWID: -1 06-24 21:46:07.137 2681 2681 V UploadsStorageManager: getUploads() got 1 rows from page 0, 1 rows total so far, last ID 1 06-24 21:46:07.137 2681 2681 D UploadsStorageManager: QUERY: (status==0 OR last_result==9 OR last_result==13 OR last_result==11 OR last_result==14 AND account_name== ?) AND _id < ? ROWID: 1 06-24 21:46:07.143 2681 2681 V UploadsStorageManager: getUploads() got 0 rows from page 1, 1 rows total so far, last ID 1 06-24 21:46:07.143 2681 2681 V UploadsStorageManager: getUploads() returning 1 (1) rows after reading 2 pages 06-24 21:46:07.146 2681 2681 D UploadsStorageManager: QUERY: status==1 AND last_result<>9 AND last_result<>13 AND last_result<>11 AND last_result<>14 AND account_name== ? ROWID: -1 06-24 21:46:07.148 2681 2734 D UploadFileOperation: normal upload 06-24 21:46:07.149 2681 2681 V UploadsStorageManager: getUploads() got 0 rows from page 0, 0 rows total so far, last ID -1 06-24 21:46:07.149 2681 2681 V UploadsStorageManager: getUploads() returning 0 (0) rows after reading 1 pages 06-24 21:46:07.152 2681 2681 D UploadsStorageManager: QUERY: status==2 AND account_name== ? ROWID: -1 06-24 21:46:07.155 2681 2681 V UploadsStorageManager: getUploads() got 0 rows from page 0, 0 rows total so far, last ID -1 06-24 21:46:07.155 2681 2681 V UploadsStorageManager: getUploads() returning 0 (0) rows after reading 1 pages 06-24 21:46:07.167 2681 13888 W System : ClassLoader referenced unknown path: system/framework/mediatek-cta.jar 06-24 21:46:07.168 2681 2681 D skia : SkJpegCodec::onGetPixels fEnTdshp 0 fISOSpeedRatings -1! 06-24 21:46:07.168 2681 13888 I System.out: e:java.lang.ClassNotFoundException: com.mediatek.cta.CtaHttp 06-24 21:46:07.303 2681 2734 D UploadFileOperation: Checking name collision in server 06-24 21:46:07.304 2681 2734 D OwnCloudClient #0: REQUEST HEAD /remote.php/dav/files/p.leduc//Photos/2022/06/IMG_20220622_084730_5.jpg 06-24 21:46:07.429 2681 2734 D ExistenceCheckRemoteOperation: Existence check for https://leducd.duckdns.org/remote.php/dav/files/p.leduc//Photos/2022/06/IMG_20220622_084730_5.jpg targeting for existence finished with HTTP status 404(FAIL) 06-24 21:46:07.430 2681 2734 D UploadsStorageManager: QUERY: null ROWID: -1 06-24 21:46:07.438 2681 2734 V UploadsStorageManager: getUploads() got 1 rows from page 0, 1 rows total so far, last ID 1 06-24 21:46:07.438 2681 2734 D UploadsStorageManager: QUERY: _id < ? ROWID: 1 06-24 21:46:07.444 2681 2734 V UploadsStorageManager: getUploads() got 0 rows from page 1, 1 rows total so far, last ID 1 06-24 21:46:07.444 2681 2734 V UploadsStorageManager: getUploads() returning 1 (1) rows after reading 2 pages 06-24 21:46:07.444 2681 2734 V UploadsStorageManager: Updating /storage/emulated/0/DCIM/Camera/IMG_20220622_084730_5.jpg with status=UPLOAD_IN_PROGRESS 06-24 21:46:07.448 2681 2734 D UploadsStorageManager: updateUpload returns with: 1 for file: /storage/emulated/0/DCIM/Camera/IMG_20220622_084730_5.jpg 06-24 21:46:07.448 2681 2734 D UploadsStorageManager: notifyObserversNow 06-24 21:46:07.451 2681 2734 D OwnCloudClient #0: REQUEST MKCOL /remote.php/dav/uploads/p.leduc/5f80f81a1bbe3bc860127ac6b2492307 06-24 21:46:07.553 2681 2734 D OwnCloudClient #0: REQUEST PROPFIND /remote.php/dav/uploads/p.leduc/5f80f81a1bbe3bc860127ac6b2492307 06-24 21:46:07.553 2681 2734 D AdvancedSslSocketFactory: Creating SSL Socket with remote leducd.duckdns.org:443, local null:0, params: org.apache.commons.httpclient.params.HttpConnectionParams@8e41c9e 06-24 21:46:07.553 2681 2734 D AdvancedSslSocketFactory: ... with connection timeout 5000 and socket timeout 40000 06-24 21:46:07.557 2681 2734 I ServerNameIndicator: SSLSocket implementation: com.google.android.gms.org.conscrypt.Java8FileDescriptorSocket 06-24 21:46:07.557 2681 2734 I ServerNameIndicator: SNI done, hostname: leducd.duckdns.org 06-24 21:46:07.557 2681 2734 W System : ClassLoader referenced unknown path: system/framework/mediatek-cta.jar 06-24 21:46:07.559 2681 2734 I System.out: e:java.lang.ClassNotFoundException: com.mediatek.cta.CtaHttp 06-24 21:46:07.652 2681 2734 E UploadFileOperation: Upload of /storage/emulated/0/DCIM/Camera/IMG_20220622_084730_5.jpg to /Photos/2022/06/IMG_20220622_084730_5.jpg: Unexpected exception 06-24 21:46:07.652 2681 2734 E UploadFileOperation: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.commons.httpclient.methods.PutMethod.addRequestHeader(java.lang.String, java.lang.String)' on a null object reference 06-24 21:46:07.652 2681 2734 E UploadFileOperation: at com.owncloud.android.lib.resources.files.ChunkedFileUploadRemoteOperation.run(ChunkedFileUploadRemoteOperation.java:212) 06-24 21:46:07.652 2681 2734 E UploadFileOperation: at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:187) 06-24 21:46:07.652 2681 2734 E UploadFileOperation: at com.owncloud.android.operations.UploadFileOperation.normalUpload(UploadFileOperation.java:857) 06-24 21:46:07.652 2681 2734 E UploadFileOperation: at com.owncloud.android.operations.UploadFileOperation.run(UploadFileOperation.java:453) 06-24 21:46:07.652 2681 2734 E UploadFileOperation: at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:187) 06-24 21:46:07.652 2681 2734 E UploadFileOperation: at com.owncloud.android.files.services.FileUploader.uploadFile(FileUploader.java:640) 06-24 21:46:07.652 2681 2734 E UploadFileOperation: at com.owncloud.android.files.services.FileUploader$ServiceHandler.handleMessage(FileUploader.java:1396) 06-24 21:46:07.652 2681 2734 E UploadFileOperation: at android.os.Handler.dispatchMessage(Handler.java:106) 06-24 21:46:07.652 2681 2734 E UploadFileOperation: at android.os.Looper.loop(Looper.java:193) 06-24 21:46:07.652 2681 2734 E UploadFileOperation: at android.os.HandlerThread.run(HandlerThread.java:65) 06-24 21:46:07.652 2681 2734 D UploadsStorageManager: updateDatabaseUploadResult uploadResult: RemoteOperationResult(mSuccess=false, mHttpCode=-1, mHttpPhrase=null, mException=java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.commons.httpclient.methods.PutMethod.addRequestHeader(java.lang.String, java.lang.String)' on a null object reference, mCode=HOST_NOT_AVAILABLE, message=null, getLogMessage=Unexpected exception) upload: com.owncloud.android.operations.UploadFileOperation@e766b95 06-24 21:46:07.657 2681 2734 V UploadsStorageManager: Updating /storage/emulated/0/DCIM/Camera/IMG_20220622_084730_5.jpg with status:UPLOAD_FAILED and result:NETWORK_CONNECTION (old:/storage/emulated/0/DCIM/Camera/IMG_20220622_084730_5.jpg status:UPLOAD_IN_PROGRESS result:-1) 06-24 21:46:07.657 2681 2734 V UploadsStorageManager: Updating /storage/emulated/0/DCIM/Camera/IMG_20220622_084730_5.jpg with status=UPLOAD_FAILED 06-24 21:46:07.661 2681 2734 D UploadsStorageManager: updateUpload returns with: 1 for file: /storage/emulated/0/DCIM/Camera/IMG_20220622_084730_5.jpg 06-24 21:46:07.661 2681 2734 D UploadsStorageManager: notifyObserversNow 06-24 21:46:07.662 2681 2734 D FileUploader: NotifyUploadResult with resultCode: HOST_NOT_AVAILABLE 06-24 21:46:07.668 2681 2681 D UploadListAdapter: loadUploadItemsFromDb 06-24 21:46:07.672 2681 2681 D UploadsStorageManager: QUERY: status==0 OR last_result==9 OR last_result==13 OR last_result==11 OR last_result==14 AND account_name== ? ROWID: -1 06-24 21:46:07.673 2681 2734 D FileUploader: Stopping command after id 115 06-24 21:46:07.675 2681 13894 D skia : SkJpegCodec::onGetPixels fEnTdshp 0 fISOSpeedRatings -1! 06-24 21:46:07.679 2681 2681 V UploadsStorageManager: getUploads() got 0 rows from page 0, 0 rows total so far, last ID -1 06-24 21:46:07.680 2681 2681 V UploadsStorageManager: getUploads() returning 0 (0) rows after reading 1 pages 06-24 21:46:07.684 2681 2681 D UploadsStorageManager: QUERY: status==1 AND last_result<>9 AND last_result<>13 AND last_result<>11 AND last_result<>14 AND account_name== ? ROWID: -1 06-24 21:46:07.690 2681 2681 V UploadsStorageManager: getUploads() got 1 rows from page 0, 1 rows total so far, last ID 1 06-24 21:46:07.690 2681 2681 D UploadsStorageManager: QUERY: (status==1 AND last_result<>9 AND last_result<>13 AND last_result<>11 AND last_result<>14 AND account_name== ?) AND _id < ? ROWID: 1 06-24 21:46:07.696 2681 2681 V UploadsStorageManager: getUploads() got 0 rows from page 1, 1 rows total so far, last ID 1 06-24 21:46:07.696 2681 2681 V UploadsStorageManager: getUploads() returning 1 (1) rows after reading 2 pages 06-24 21:46:07.700 2681 2681 D UploadsStorageManager: QUERY: status==2 AND account_name== ? ROWID: -1 06-24 21:46:07.704 2681 2681 V UploadsStorageManager: getUploads() got 0 rows from page 0, 0 rows total so far, last ID -1 06-24 21:46:07.704 2681 2681 V UploadsStorageManager: getUploads() returning 0 (0) rows after reading 1 pages 06-24 21:46:07.717 2681 2681 D skia : SkJpegCodec::onGetPixels fEnTdshp 0 fISOSpeedRatings -1!
After googleing, the answer may be comming from OS: CTA = China Type Approval... So bad... I've tried also 3.20.1 published in 2022 9th of may that worked fine. I'll close this issue.
⚠️ This issue respects the following points: ⚠️
Bug description
A lot of file I want to push dont work. The problem started 3 days ago with upgrade to 24.0.1
Steps to reproduce
Expected behavior
No error
Installation method
Official Docker image
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 22.2.3 to 22.2.4)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Some customisation on fpm image:
FROM nextcloud:fpm #TODO nextcloud:stable-fpm
RUN set -ex; \ \ apt-get update; \ apt-get install -y --no-install-recommends \ ffmpeg \ libmagickcore-6.q16-6-extra \ procps \ # smbclient \ supervisor \ # libreoffice \ nginx \ imagemagick\ ghostscript\ ; \ rm -rf /var/lib/apt/lists/*
RUN set -ex; \ \ savedAptMark="$(apt-mark showmanual)"; \ \ apt-get update; \ apt-get install -y --no-install-recommends \ libbz2-dev \ # libc-client-dev \ # libkrb5-dev \ # libsmbclient-dev \ ; \ \ # docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \ docker-php-ext-install \ bz2 \ # imap \ ; \ pecl install smbclient; \ # docker-php-ext-enable smbclient; \ \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies apt-mark auto '.' > /dev/null; \ apt-mark manual $savedAptMark; \ ldd "$(php -r 'echo ini_get("extension_dir");')"/.so \ | awk '/=>/ { print $3 }' \ | sort -u \ | xargs -r dpkg-query -S \ | cut -d: -f1 \ | sort -u \ | xargs -rt apt-mark manual; \ \ apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ rm -rf /var/lib/apt/lists/*
RUN mkdir -p \ /var/log/supervisord \ /var/run/supervisord \ ;
COPY supervisord.conf /
ENV NEXTCLOUD_UPDATE=1
# autoriser les aperçus de PDF par ImageMagick RUN sed -i 's/(^ <policy.rights=")([^"])(".PDF.*\/>)/\1read|write\3/1' /etc/ImageMagick-6/policy.xml
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]