rookie0 / nextcloud-sharing-path

🌩 Nextcloud app to enhance files sharing to be accessed by stored path, can be used as CDN origin.
GNU Affero General Public License v3.0
47 stars 11 forks source link

404 Error #39

Open prix0d opened 2 years ago

prix0d commented 2 years ago

I have a server with Ubuntu 20.04 LTS and Nextcloud 21.0.5 installed. I tried your app and successfully got access to several files, however after that i get 404 error any time i try to share file.

Screenshot_27

timoangerer commented 2 years ago

I have the same issue. I wasn't able to share a file so far. Fresh install of Nextcloud on Ubuntu 20.04 LTS.

rookie0 commented 2 years ago

Please check the nextcloud.log grep by sharingpath to get some details, and recheck your sharing settings.

prix0d commented 2 years ago

Checked, no messages from sharingpath in log. Settings are ok.

timoangerer commented 2 years ago

Same for me: There is no mention of sharingpath in the log files.

timoangerer commented 2 years ago

I'm using AWS S3 as my primary storage method, in case that is of relevance.

rookie0 commented 2 years ago

Do you guys try to recheck Enable sharing path at Settings(Personal or Administration ) >> Sharing > Sharing Path.

prix0d commented 2 years ago

Yep, additionally i reinstalled app several times.

oghin7 commented 2 years ago

In version 23 i have installed Sharing Path 0.4.3 i got error 404. can you please tell me the older version may work?

malakhovks commented 2 years ago

Same 404 error for v0.4.3 In version Nextcloud 22.2.3 I have installed Sharing Path v0.4.3 I got error 404.

rookie0 commented 2 years ago

Sorry for took so long to deal with this issue, please upgrade to v0.4.4-nightly, which probably works now. @prix0d @timoangerer @oghin7 @malakhovks

malakhovks commented 2 years ago

Sorry for took so long to deal with this issue, please upgrade to v0.4.4-nightly, which probably works now. @prix0d @timoangerer @oghin7 @malakhovks

How I can upgrade it with Nextcloud store? I can see there v0.4.3 only.

Oh, I see you made the tag Ok I will try

rookie0 commented 2 years ago

@malakhovks you can download the nightly version sharingpath.tar.gz to your Nextcloud instance apps folder, unpack the archive with tar zxf sharingpath.tar.gz, then open the base folder and run the Nextcloud updater with php ./occ upgrade or trough the web interface.

malakhovks commented 2 years ago

@malakhovks you can download the nightly version sharingpath.tar.gz to your Nextcloud instance apps folder, unpack the archive with tar zxf sharingpath.tar.gz, then open the base folder and run the Nextcloud updater with php ./occ upgrade or trough the web interface.

@rookie0 Installed version 0.4.4, unfortunately does not work. Result the same:

Not Found The requested URL was not found on this server.

Azubi24 commented 2 years ago

I have the same issue. I wasn't able to share a file so far. Fresh install of Nextcloud and version 0.4.4 installed.

rookie0 commented 2 years ago

@malakhovks @Azubi24 Can you see some message from nextcloud-install-path/data/nextcloud.log by grep 'sharingpath', at lease you can see one message like user: user-id, file: request-file-path according the code i update in v0.4.4.

Azubi24 commented 2 years ago

there is no entry in the nextcloud.log file (?)

rookie0 commented 2 years ago

You can go to Settings > Administration > Logging and check level Warning to find that.

military1 commented 2 years ago

@rookie0 please add v0.4.4 to apps.nextcloud.com as a stable verision. The problem is that on the Hetzner Storage Share (Nextcloud) it is impossible to manually install files to the server. Only through apps.nextcloud.com.

rookie0 commented 2 years ago

@military1 OK, released v0.4.4 stable.

darkmich commented 2 years ago

I’m having the same issue using 0.4.4, and have nothing showing up in the logs that I can find (need to check from command line as well). We’re also using an S3-like (DigitalOcean Spaces) storage.

darkmich commented 2 years ago

Double checked from the command line with grep, and there's no comments about sharing path in the log file.

rookie0 commented 2 years ago

@darkmich Thanks for your feedback, i start a local minio server as nextcloud s3 storage, and got 404 error when access old files, but the new uploaded files can be accessed, see image

The problem is that when change primary storage to s3, old files still store in the local, maybe you can migrate your data from local to s3.

And i will check is there possible to use another storage to check file exist when reading a file.