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

[Bug]: Normal file is showing as folder after sync to Synology ext storage via sftp #38736

Closed
5 of 8 tasks
Michael2222 opened this issue Jun 10, 2023 · 19 comments
Closed
5 of 8 tasks
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 26-feedback bug feature: external storage needs info stale Ticket or PR with no recent activity

Comments

@Michael2222
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

Hello,

I have integrate an Synology NAS via App "external storage".
Sometimes normaly files are viewing as a folder.
grafik

In the NAS I see the correct file:
grafik

And if I want to download the item, nexcloud said: "403 Forbidden"

Steps to reproduce

  1. Open the folder with my files
  2. Then I see not the file. I see an folder icon with the same name as the file.

Expected behavior

I want to see the original file. In case of a PDF file, I want to click an then open the PDF Viewer.

Installation method

Community Web installer on a VPS or web space

Nextcloud Server version

26

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

Analytics
Appointments
Audio Player
Auditing / Logging
Bookmarks
Brute-force settings
Calendar
Circles
Collectives
Comments
Contacts
Contacts Interaction
Dashboard
Deck
Deleted files
Draw.io
Eml Viewer
External storage support
Featured
File sharing
Forms
GpxPod
Keeweb
Log Reader
Mail
Maps
Metadata
Monitoring
Music
Notes
Notifications
ONLYOFFICE
Password policy
PDF viewer
Photos
Polls
Privacy
Quota warning
Related Resources
Right click
Share by mail
Splash
Support
Talk
Tasks
Text
TimeManager
Update notification
Usage survey
User status
Versions
Weather status

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@Michael2222 Michael2222 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jun 10, 2023
@joshtrichards
Copy link
Member

Hi. Hope you're having a good day. Unfortunately, you seem to have missed a few important steps in the bug report form. Please update your report (you can edit it) or we'll be unable to look into this issue.

@Michael2222
Copy link
Author

Hello,
thank you for your answer!

> you seem to have missed a few important steps in the bug report form

What field are additional necessary? The field "Configuration report"?
My nextcloud instance is running by my hoster and I have not access to the CLI via SSH. So I send the command "sudo -u www-data php occ config:list system
php occ config:list system
./occ config:list system" to my hoster with the request to execute the command and send me the result again.
Regards Michael

@joshtrichards
Copy link
Member

joshtrichards commented Jun 11, 2023

That and...

  • The nextcloud.log entries during these transactions (they will explain the specific reason for this error you're experiencing)
  • The verification check to make sure the code base is unmodified and uncorrupted
  • Probably/possibly some other things when we start to try to isolate the issue

If you're not the administrator of this Nextcloud installation, perhaps this is an Issue you should bring to your administrator/managed hosting provider first?

It's going to be nearly impossible to assist you (and for you to help us in doing so) without access to the configuration and logs (as well as, likely, the ability to change the config).

This channel is for reporting software bugs, not seeking technical support on general configuration issues or installation matters. I'd point you to the Help Forum, but even there they're going to expect the same details about your Nextcloud instance. :-)

@Michael2222
Copy link
Author

Hello,

now I have insert the "Configuration report".
The log files will be submitted shortly afterwards.

Regards
Michael

@solracsf
Copy link
Member

solracsf commented Jun 12, 2023

Run also a occ files:scan first in case the oc_filecache is not up-to-date.

If you're not the administrator of this Nextcloud installation, perhaps this is an Issue you should bring to your administrator/managed hosting provider first?

Also this.

@Michael2222
Copy link
Author

Unfortunately currently there is no logfile
but I made some other tests

error occurs every time if I copy or transfer a file (docx, jpeg,...) from my local client (using file explorer) to another folder, which is connected via WebDav with NextCloud (using file explorer as well).
Target folder is located on my NAS connected via app 'External Storage Support'. Method: sftp

Looking at the file directly in NAS --> everything is fine

After several tests: it seems to me, that size metadata is missing (get lost) BUT the 'External Storage Support' app probably needs this information to process the file correctly

@ThomasHTT
Copy link

Hello,

I have same problem - only difference: hoster is 'Ionos' (Germany)

Thanks, Thomas

@nextcloud-command

This comment was marked as resolved.

@nextcloud-command nextcloud-command added the stale Ticket or PR with no recent activity label Jul 20, 2023
@joshtrichards
Copy link
Member

@ThomasHTT Do you have any log entries to add to the report? Without logs from either you or the original submitter we're kind of flying blind here. :)

@Michael2222
Copy link
Author

Hello,

now I have update my nextcloud instance to 27.0.1 and I get the same wrong behavior.

(1) Store a file (e.g. docx) via nextcloud WebDav to the external storage NAS => the file have 13 KB

grafik

(2) Refresh the file explorer => the file have 0 KB

grafik

(3) Open Browser => the document is a file

grafik

(4) Download the file
(5) Refresh browser => file is a folder and corrupt

grafik

(6) In my NAS the file is still a file

grafik

And there are no server log with error in it, but I can 100% reproduce the error.

What else can I query from the system so you can investigate the error?

Thank you!
Michael

@nextcloud-command nextcloud-command removed stale Ticket or PR with no recent activity needs info labels Jul 21, 2023
@Michael2222
Copy link
Author

Hello,
I'm quite willing to pay to have the bug fixed. If someone is interested and ideally speaks German, please leave me an email address.
Regards
Michael

@skjnldsv skjnldsv changed the title [Bug]: Normal file is showing as folder [Bug]: Normal file is showing as folder after sync to Synology ext storage via sftp Sep 2, 2023
@skjnldsv
Copy link
Member

skjnldsv commented Sep 2, 2023

Not gonna lie, this looks like a ssh configuration issue or something.
I'm not familiar with Synology, but could you try another of their remote storage protocol like NFS or SMB and see if the behaviour remains ?

@solracsf

This comment was marked as outdated.

@Michael2222
Copy link
Author

May be fixed by #40459 (testing welcome).

No sorry. I still behave the same way.
In the meantime I have the version 27.1.0

@solracsf
Copy link
Member

solracsf commented Sep 20, 2023

@Michael2222 that PR is closed and superseeded by #40183
It will be shipped on 27.1.1. It doesn't mean it will fix this specific problem but feedback welcome nevertheless...

@Michael2222
Copy link
Author

@solracsf yes, the problem is solved for new files. Thank you!
But for the old (currupted) files that I show as folder, I always show a folder.
I think I must re-read all files from my synology in the nextcloud meta-data datebase!?

Which command at command-line must I used, that I can start the re-read only the file from synology-NAS?

@solracsf
Copy link
Member

@nextcloud-command
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

@nextcloud-command nextcloud-command added the stale Ticket or PR with no recent activity label Oct 24, 2023
@ThomasHTT
Copy link

ThomasHTT commented Oct 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 26-feedback bug feature: external storage needs info stale Ticket or PR with no recent activity
Projects
None yet
Development

No branches or pull requests

7 participants