rotdrop / nextcloud-app-files-archive

Archive inspection and extraction as Nextcloud app.
Other
9 stars 4 forks source link

Notify when mounted folder mecomes visible #2

Closed TtuxX closed 1 year ago

TtuxX commented 1 year ago

Hi there @rotdrop ! :)

Let me first thank you for this AWESOME app !! This is so useful!! I cannot count the many times I downloaded an archive just to get the 1 file I was looking for inside it! So, first, a big thank you for this incredible app (that should be integrated inside Nextcloud by default!).

Back to my issue, I was trying to mount an archive and didn't see it display right away. When I tried to mount it again, your app notified me that archive was already mounted. But still, no new folder visible. The folder became visible after some page reloads, maybe 40s-60s after having mounted it. BTW, my NC config.php file has: 'filesystem_check_changes' => 1,

Would it be possible to make the mounted folder appear quicker, or to have a progress bar or notification, to know when the archive becomes visible and accesible in the user interface ?

Thank you very much in advance.

Kind regards

rotdrop commented 1 year ago

I'll have a look. I suspect a bit that the file-cache table is not updated right away. I also ran into this issue a few minutes ago. So maybe it suffices to programmatically run the scanner on the newly mounted folder, but I have to check.

Can you please tell what NC version you are using?

Kind regards

Claus

rotdrop commented 1 year ago

I cannot reproduce it in my development setup. But that is quite "customized" with some hacks in the NC core. I have to check wiith a vanilla setup ...

rotdrop commented 1 year ago

Although on one of my installations I had experienced the same problem I now cannot reproduce the error. Could you please verify that you still have this problem, i.e. try to mount again, maybe upload another archive?

Later I will try what happens with a new install (i.e. remove the app and install it anew). Maybe it only occur after a new installation. But then something is still wrong ...

rotdrop commented 1 year ago

This really seems to be a fresh installation problem. I occurred again on my vanilla NC 24 after de-installation and removing manually all remnants (database mount-points, storages).

After a new installation the problem was there again. I could be cured by manually running a file-scan via the "occ" command.

What surprises me most is that afterwards -- even with other archive files -- the mounts just appear immediately, without running a file-system scan again. Anyhow, as the problem is reproducible, there will eventually be a solution.

In the mean, could you please verify that also on your setup:

Thanks in advance! Best regards

Claus Heine

TtuxX commented 1 year ago

Thank you for your reactivity ! :)

My setup is:

I can observe that:

rotdrop commented 1 year ago

This should be solved by the latest pre-release v1.0.3-alpha.

Can you please give it a try?

TtuxX commented 1 year ago

Thank you! :) I tried using 3 different archives in different folder and mounting any .zip archive works immediately! I still have the Zipper issue however.