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

0 bytes sized files, e.g., .gitkeep files, error on client when syncing #1098

Closed
hkiang01 opened this issue Feb 17, 2019 · 2 comments
Closed

Comments

@hkiang01
Copy link

hkiang01 commented Feb 17, 2019

Expected behaviour

Empty files such as .gitkeep, often found in git repositories, should be able to be successfully synced.

Actual behaviour

From the sync client:
image

image

Steps to reproduce

  1. insert a blank file called .gitkeep in a directory to be synced
  2. force a sync using the sync client

Client configuration

Client version: 2.5.1

Operating system: Ubuntu 18.10

Client package (From Nextcloud or distro) (Linux only): Ubuntu ppa

$ apt show nextcloud-client
Package: nextcloud-client
Version: 2.5.1-20181204.111806~cosmic1
Priority: optional
Section: devel
Maintainer: István Váradi <ivaradi@varadiistvan.hu>
Installed-Size: 3,930 kB
Depends: libnextcloudsync0 (= 2.5.1-20181204.111806~cosmic1), libc6 (>= 2.14), libgcc1 (>= 1:3.0), libqt5core5a (>= 5.11.0~rc1), libqt5dbus5 (>= 5.0.2), libqt5gui5 (>= 5.7.0), libqt5keychain1 (>= 0.7.0), libqt5network5 (>= 5.5.0), libqt5webenginecore5 (>= 5.7.1), libqt5webenginewidgets5 (>= 5.7.1), libqt5webkit5 (>= 5.6.0~rc), libqt5widgets5 (>= 5.11.0~rc1), libqt5xml5 (>= 5.0.2), libstdc++6 (>= 5.2), libgnome-keyring0, nextcloud-client-l10n
Download-Size: 1,746 kB
APT-Manual-Installed: yes
APT-Sources: http://ppa.launchpad.net/nextcloud-devs/client/ubuntu cosmic/main amd64 Packages
Description: Nextcloud desktop sync client
 Use the desktop client to keep your files synchronized
 between your Nextcloud server and your desktop. Select
 one or more directories on your local machine and always
 have access to your latest files wherever you are.

Installation path of client:

Server configuration

Linux snap package

$ snap info nextcloud
name:      nextcloud
summary:   Nextcloud Server - A safe home for all your data
publisher: Nextcloud✓
contact:   https://github.com/nextcloud/nextcloud-snap
license:   unset
description: |
  Where are your photos and documents? With Nextcloud you pick a server of your choice, at home,
  in a data center or at a provider. And that is where your files will be. Nextcloud runs on that
  server, protecting your data and giving you access from your desktop or mobile devices. Through
  Nextcloud you also access, sync and share your existing data on that FTP drive at school, a
  Dropbox or a NAS you have at home.
commands:
  - nextcloud.disable-https
  - nextcloud.enable-https
  - nextcloud.export
  - nextcloud.import
  - nextcloud.manual-install
  - nextcloud.mysql-client
  - nextcloud.mysqldump
  - nextcloud.occ
services:
  nextcloud.apache:          simple, enabled, active
  nextcloud.mdns-publisher:  simple, enabled, active
  nextcloud.mysql:           simple, enabled, active
  nextcloud.nextcloud-cron:  simple, enabled, active
  nextcloud.nextcloud-fixer: simple, enabled, inactive
  nextcloud.php-fpm:         simple, enabled, active
  nextcloud.redis-server:    simple, enabled, active
  nextcloud.renew-certs:     simple, enabled, active
snap-id:      njObIbGQEaVx1H4nyWxchk1i8opy4h54
tracking:     stable
refresh-date: 7 days ago, at 23:55 GMT
channels:
  stable:       15.0.2snap2               2019-02-03 (11341) 177MB -
  candidate:    ↑                                                  
  beta:         15.0.2snap2+git2.6632ba6  2019-02-09 (11479) 187MB -
  edge:         master-2019-02-16         2019-02-16 (11639) 190MB -
  15/stable:    15.0.2snap2               2019-02-03 (11341) 177MB -
  15/candidate: ↑                                                  
  15/beta:      ↑                                                  
  15/edge:      15-2019-02-16             2019-02-16 (11635) 189MB -
  14/stable:    14.0.6snap1               2019-01-26 (11140) 175MB -
  14/candidate: ↑                                                  
  14/beta:      14.0.6snap1+git2.cedf790  2019-02-09 (11480) 175MB -
  14/edge:      14-2019-02-16             2019-02-16 (11637) 188MB -
  13/stable:    13.0.10snap1              2019-01-19 (10862) 170MB -
  13/candidate: ↑                                                  
  13/beta:      13.0.10snap1+git2.f832b6d 2019-02-09 (11483) 170MB -
  13/edge:      13-2019-02-16             2019-02-16 (11641) 180MB -
  12/stable:    12.0.13snap1              2019-01-07 (10633) 197MB -
  12/candidate: ↑                                                  
  12/beta:      ↑                                                  
  12/edge:      ↑                                                  
  11/stable:    11.0.8snap1               2018-05-10  (6962) 193MB -
  11/candidate: ↑                                                  
  11/beta:      ↑                                                  
  11/edge:      ↑                                                  
installed:      15.0.2snap2                          (11341) 177MB -

Operating system: Raspbian

Web server: Raspberry Pi 3 B+

Storage backend (external storage):
2 USB sticks RAID 1.

Logs

Please use Gist (https://gist.github.com/) or a similar code paster for longer
logs.

Template for output < 10 lines

  1. Client logfile: Output of nextcloud --logwindow or nextcloud --logfile log.txt
    (On Windows using cmd.exe, you might need to first cd into the Nextcloud directory)
    (See also https://docs.nextcloud.com/desktop/2.3/troubleshooting.html#log-files)
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
nextcloud.gui.application: Already running, exiting...
  1. Web server error log:

image

  1. Server logfile: nextcloud log (data/nextcloud.log):
{"reqId":"2qdrOEIhWxxIdrVxIO91","level":4,"time":"2019-02-17T20:41:47+00:00","remoteAddr":"192.168.1.1","user":"admin","app":"webdav","method":"PUT","url":"\/remote.php\/dav\/files\/admin\/GitHub\/repositories\/React-Beer-Me\/repository\/starter-files\/src\/components\/.gitkeep","message":{"Exception":"Sabre\\DAV\\Exception","Message":"Error while copying file to target location (copied bytes: 0, expected filesize: 0 )","Code":0,"Trace":[{"file":"\/snap\/nextcloud\/11341\/htdocs\/apps\/dav\/lib\/Connector\/Sabre\/Directory.php","line":156,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[null]},{"file":"\/snap\/nextcloud\/11341\/htdocs\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":1096,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":[".gitkeep",null]},{"file":"\/snap\/nextcloud\/11341\/htdocs\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php","line":525,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["files\/admin\/GitHub\/repositories\/React-Beer-Me\/repository\/starter-files\/src\/components\/.gitkeep",null,null]},{"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https:\/\/myserver.com\/remote.php\/dav\/files\/admin\/GitHub\/repositories\/React-Beer-Me\/repository\/starter-files\/src\/components\/.gitkeep","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/snap\/nextcloud\/11341\/htdocs\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpPut"],[{"absoluteUrl":"https:\/\/myserver.com\/remote.php\/dav\/files\/admin\/GitHub\/repositories\/React-Beer-Me\/repository\/starter-files\/src\/components\/.gitkeep","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/snap\/nextcloud\/11341\/htdocs\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:PUT",[{"absoluteUrl":"https:\/\/myserver.com\/remote.php\/dav\/files\/admin\/GitHub\/repositories\/React-Beer-Me\/repository\/starter-files\/src\/components\/.gitkeep","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/snap\/nextcloud\/11341\/htdocs\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https:\/\/myserver.com\/remote.php\/dav\/files\/admin\/GitHub\/repositories\/React-Beer-Me\/repository\/starter-files\/src\/components\/.gitkeep","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/snap\/nextcloud\/11341\/htdocs\/apps\/dav\/lib\/Server.php","line":301,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/snap\/nextcloud\/11341\/htdocs\/apps\/dav\/appinfo\/v2\/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"\/snap\/nextcloud\/11341\/htdocs\/remote.php","line":163,"args":["\/snap\/nextcloud\/11341\/htdocs\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],"File":"\/snap\/nextcloud\/11341\/htdocs\/apps\/dav\/lib\/Connector\/Sabre\/File.php","Line":191,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Linux) mirall\/2.5.1git (Nextcloud)","version":"15.0.2.0"}
@ariselseng
Copy link
Member

I thin this is this: nextcloud/server#13871
It's coming in the next point release of nextcloud server 15 and fixed in 16 as well.

@FlexW
Copy link

FlexW commented Sep 27, 2021

Does the issue still apply? If yes, please reopen it.

@FlexW FlexW closed this as completed Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants