Local files not sent

Hi community!

I would like some help regarding a client problem. Some files don’t sync, more specifically:

  • they don’t show up on the web interface
  • when I update them locally, the client notification icon switches to the sync symbol for a fraction of second and stops. It then says “everything is synchronized”.

After playing around, I figured out that files that were created as a copy of an already synchronized file might be confused together (does not seem to matter that I used cp or the gui):

  • when I update the copy, the server side details on the original file tell me that it was “updated recently/a few seconds ago”. However the checksum still matches the original file content.

Other experiments:

  • recursively copying (cp -r) the problematic folder to another location inside the synchronized directory does not allow the ignored files to be sent; in fact more files are being ignored in the copy folder.
  • However I copied files individually one-by-one to a new directory and it seemed to work better (must double-check though).
  • Copying to a fresh new directory seems to put files in sync.
  • however the command used to copy does not seem to matter, for example:
    • cat ignored.txt > copy.txt
    • From a Libreoffice document, “save as” or “export pdf”.
  • the file extension does not seem to matter (tried with .tex, .odt, .pdf)

Maybe relevant info:

  • I configured the synchronization based on a selected folder called “docs” in the root of my cloud space.
  • the original folder causing problems is shared with by another user (but was created by me). But: when I locally copied it to a non shared location, the problem remained.

I am doing something wrong? Can it be caused by some kind of hardlinking occurring when copying a file? My filesystem is ext4. Should I check the health of my disk (seems to work fine otherwise)?

Versions

Nextcloud server version: 28 (I think)
Nextcloud client version: 3.4.2-1ubuntu1
Operating system and version: Ubuntu 22.04 (client)
Apache or nginx version: ?
PHP version: ?

This has been occurring for a few months (before May 2024) under the radar, based on the file timestamps.

I do not know where to find the logs of my client, can someone point me to that please?

Thanks in advance!

[EDIT oct. 30]: just realized the folder was created by someone else and shared. Probably explaining part of the problem.

I didn’t understand everything. But I would like to address the following point.

In order for Nextcloud to recognise the files, you must execute the following command. This will make the files copied via scp known to the Nextcloud database.

sudo -u www-data php /path/to/nextcloud/occ files:scan --all

I did not use scp, just a local cp.

Let’s say I have this folder set up with nextcloud client:

/home/myself/mycloud
   \- subfolder1

If I copy subfolder1 to subfolder2, I just get a new folder inside my local mycloud:

/home/myself/mycloud
   \- subfolder1
   \- subfolder2

So that’s a local problem, I don’t manage the server.

[EDIT]: sorry I just saw my post was in the wrong forum category, causing the confusion.

On normal Nextclouds the path is /path/to/nextcloud/data/username/files. But it is the Nextcloud server folder and not Nextcloud client folder. Maybe i have misunderstand you.

Ah, just edited the original post, because of incorrect information:

the original folder causing problems was created by someone else and shared with me (I’ve asked the owner to check permissions). I still don’t understand why other files in other places don’t get synchronized though.