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

Folders view is empty #2067

Open
truenicoco opened this issue Sep 29, 2023 · 22 comments
Open

Folders view is empty #2067

truenicoco opened this issue Sep 29, 2023 · 22 comments
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working

Comments

@truenicoco
Copy link

Describe the bug
The "Folders" view is empty, it has no folder in it.

To Reproduce
Steps to reproduce the behavior:

  1. Go to "Photos"
  2. Click on Folder
  3. It's empty!

Expected behavior
It should let me browse my "home" folder.

Screenshots
Screenshot_20230929_094831

Desktop (please complete the following information):
Firefox, tested on MacOS, Debian and Fedora, so most likely not relevant

Smartphone (please complete the following information):
I did not try from the smartphone.

Browser log

[NoScript]:0 Prompt Hook installation https://cloud.redacted.com/apps/photos/folders log.js:32:13
Content-Security-Policy: The page’s settings blocked the loading of a resource at data: (“media-src”). folders
JQMIGRATE: Migrate is installed, version 3.4.1 jquery-migrate.min.js:2:702
Proxying an event bus of version 3.1.0 with 1.3.0 index.es.js:2337:14
Proxying an event bus of version 3.1.0 with 1.3.0 index.es.js:2337:14
OCA.Files.Sidebar initialized Sidebar.js:36:10
OCA.Files.Sidebar initialized sidebar.js:39:8
Proxying an event bus of version 3.1.0 with 1.3.0 major.js:2:14
Proxying an event bus of version 3.1.0 with 1.3.0 index.es.js:2337:14
OCA.Sharing.ShareSearch initialized ShareSearch.js:33:10
OCA.Sharing.ExternalLinkActions initialized ExternalLinkActions.js:33:10
OCA.Sharing.ExternalShareActions initialized ExternalShareActions.js:33:10
Proxying an event bus of version 3.1.0 with 1.3.0 index.es.js:2337:14
OCA.Comments.View initialized comments-app.js:32:8
[WARN] viewer: Some mimes were ignored because they are not enabled in the server previews config 
Object { app: "viewer", uid: "nicoco", level: 2, ignoredMimes: (3) […] }
ConsoleLogger.js:56:18
OCA.Viewer initialized Viewer.js:68:7
The `name` prop is required. Please migrate away from the deprecated `title` prop. 4 index.module.js:2:908518
The `name` prop is required. Please migrate away from the deprecated `title` prop. 10 index.module.js:2:908518
AppContent pane config 31 index.module.js:2:895634
*** undefined autofill.js:7:28229
session heartbeat polling started session-heartbeat.js:103:9
[photos] Grid config 
Object { marginTop: 88, marginW: 66, count: 6, gap: 8 }
GridConfig.js:39:10
Proxying an event bus of version 3.1.0 with 1.3.0 index.es.js:2337:14
Registering notifications container as a menu NotificationsApp.vue:219
Notifications permissions granted NotificationsApp.vue:453
Polling interval updated to 30000 NotificationsApp.vue:416
Started background fetcher as session_keepalive is enabled NotificationsApp.vue:275
Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools index.esm.js:9234:56
You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html index.esm.js:9241:52
Got notification data, restoring default polling interval.

Additional context
If I manually edit the URL, eg https://cloud.redacted.com/apps/photos/folders/Some%20Folder/, I can browse it! But I cannot return to the root.
It only happens for my user (the admin).
I have no idea if it is related, but my user has an external storage mounted (CIFS on a Hetzner storage box, used to dump backups of the backup app).

@truenicoco truenicoco added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Sep 29, 2023
@artonge
Copy link
Collaborator

artonge commented Oct 2, 2023

Can you tell me which version do you use ?
Do you have any special character in the folder name ?

@truenicoco
Copy link
Author

NC 27.1.1 and Photos 2.3.0

The only folder that appears empty is the root folder (nc.example.org/apps/photos/folders). If I manually enter a subfolder name in the URL, (eg nc.example.org/apps/photos/folders/Some Folder Even with special chars), then the view is fine.
The root folder is in /var/www/nextcloud/data/nicoco/files/, so no special chars in there.

@artonge
Copy link
Collaborator

artonge commented Oct 2, 2023

Can you send a screenshot of the network panel ?
Can you send the content of the response to the https://files.chmn.me/apps/photos/api/v1/albums request ? Feel free to obfuscate the content, I just want to check the structure of the response.
Any weird looking folder name in the root folder ?

@truenicoco
Copy link
Author

Looks weird:

Screenshot_20231002_122336

I can't open apps/photos/api/v1/albums request directly because CSRF.

No weird folder, except that external storage samba mount (that I wish I could unmount without nuking it, but apparently NC does not support that). I suspect that this mount is the culprit.

@truenicoco
Copy link
Author

truenicoco commented Oct 2, 2023

The root folder in the "files" app.

Screenshot_20231002_122852

@artonge

This comment was marked as off-topic.

@truenicoco

This comment was marked as off-topic.

@truenicoco
Copy link
Author

Oh, I actually had to wait, now I have 504 Gateway Time-out

@artonge
Copy link
Collaborator

artonge commented Oct 2, 2023

Sorry, I meant "Réponse" tab

@truenicoco

This comment was marked as off-topic.

@artonge

This comment was marked as off-topic.

@truenicoco

This comment was marked as off-topic.

@artonge
Copy link
Collaborator

artonge commented Oct 2, 2023

If you consistently have a 504 error, then we'll need your NC server's logs

@truenicoco
Copy link
Author

These are the debug logs when trying to access "Folders". I let it run until I saw the 504 in Firefox's "network" tab.

{"reqId":"GB1w3ljHgDh9OlKsMAu7","level":0,"time":"2023-10-02T11:52:24+00:00","remoteAddr":"192.168.0.254","user":"nicoco","app":"PHP","method":"GET","url":"/apps/photos/api/v1/albums","message":"Creation of dynamic property OCA\\Maps\\Hooks\\FileHooks::$lockingProvider is deprecated at /var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php#46","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0","version":"27.1.1.0","data":{"app":"PHP"}}
{"reqId":"V36Cd1GzrQfxF7cB1uED","level":0,"time":"2023-10-02T11:52:24+00:00","remoteAddr":"192.168.0.254","user":"nicoco","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Creation of dynamic property OCA\\Maps\\Hooks\\FileHooks::$lockingProvider is deprecated at /var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php#46","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0","version":"27.1.1.0","data":{"app":"PHP"}}
{"reqId":"x0nr2AsY27ZEhkwaauyB","level":0,"time":"2023-10-02T11:52:54+00:00","remoteAddr":"192.168.0.254","user":"nicoco","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Creation of dynamic property OCA\\Maps\\Hooks\\FileHooks::$lockingProvider is deprecated at /var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php#46","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0","version":"27.1.1.0","data":{"app":"PHP"}}
{"reqId":"4OOt4XPm9uYQumAdBHHq","level":0,"time":"2023-10-02T11:53:24+00:00","remoteAddr":"192.168.0.254","user":"nicoco","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Creation of dynamic property OCA\\Maps\\Hooks\\FileHooks::$lockingProvider is deprecated at /var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php#46","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0","version":"27.1.1.0","data":{"app":"PHP"}}

@artonge
Copy link
Collaborator

artonge commented Oct 2, 2023

So the 504 is not occurring consistently ? If not, then this is not the same issue, and would still need the content of the "Réponse" tab.

@truenicoco
Copy link
Author

Oh it is absolutely consistent, sorry if that wasn't clear from my previous messages.

@artonge
Copy link
Collaborator

artonge commented Oct 2, 2023

Indeed, it might be due to the SAMBA mount then. Can you try to add a .nomedia file at the root of the SAMBA mount?

@truenicoco
Copy link
Author

Yup, that fixes the issue. For additional context, this samba storage is also used as the "remote path" for the backup app, which is quite buggy, so maybe there's something there.

@BloodyIron
Copy link

BloodyIron commented Nov 5, 2023

Indeed, it might be due to the SAMBA mount then. Can you try to add a .nomedia file at the root of the SAMBA mount?

Samba is the software, the protocol is SMB, not Samba. And no, it's not CIFS, it hasn't been CIFS for over 20 years.

Also I'm in this thread because I am seeing this weird error myself. Not just trying to jump in and correct lol.

@claushviid
Copy link

claushviid commented Jun 29, 2024

I have exactly the same problem
The "Folders" view is empty, it has no folder in it. Weird it only happens when it is admin that is logged in.
I had this problem since nexcloud 29
my current version is [Nextcloud Hub 8] (29.0.3)

@LM1LC3N7
Copy link

LM1LC3N7 commented Jul 9, 2024

Same error as @claushviid , empty root folder on web gui using admin. With the android app or even desktop app, I see all files.

@skjnldsv skjnldsv added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending approval or rejection. This issue is pending approval. labels Aug 8, 2024
@skjnldsv
Copy link
Member

skjnldsv commented Aug 8, 2024

I can reproduce the issue too @artonge
The first load breaks. if you switch to another view and back to folders, then it works.
This is a reactivity issue, I recommend switching to pinia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants