Git Product home page Git Product logo

Comments (11)

DecaTec avatar DecaTec commented on July 20, 2024

A shared link is kind of a property of a file or folder. If you delete a file/folder, it's still there - in the trash bin. When the file is restored from the trash, the shared link will work again.

In order to re-use a shared link name, delete the file, empty the trash bin and wait for the next tick of the cron job.

from sharerenamer.

Judocrafter avatar Judocrafter commented on July 20, 2024

I have now removed all the shared folders, deleted them and emptied the trash. I also started the cron job manually. Unfortunately did not help. I even removed and added the app. What else can I do?

from sharerenamer.

DecaTec avatar DecaTec commented on July 20, 2024

The deleted shared link may not be released immediately after the cron job was run, but it should be released some time later. I've set the cron jon to run every 5 minutes and have to wait for approximately 10 minutes so that I can rename a link to the same name.

If this also doesn't work for you: Du you use MySQL/MaraiDB or PostgreSQL as database?

from sharerenamer.

Judocrafter avatar Judocrafter commented on July 20, 2024

from sharerenamer.

DecaTec avatar DecaTec commented on July 20, 2024

With MySQL/MariaDB there should be no problem at all (the last update fixed an issue with PostgreSQL).

Unfortunately, I cannot reproduce this problem. So we have to seek for any hints:

  • Are there any log entries regarding shared links and/or the deleted folders?
  • Make sure that the files got properly deleted from the trash bin. Sometimes the files/folders remain in the trash bin when you delete all contents of the trash bin at once. In this case, delete the file/folders one after another.
  • Take a look at the database itsself: SELECT token FROM oc_share; should give you a list of active shared links. This list should not contain the link you already have deleted.

from sharerenamer.

Judocrafter avatar Judocrafter commented on July 20, 2024

I found it on the database directly.

How can i delete them now?
Thank you for your help.
0CF49E4F-80E6-4F28-B1C4-E030120D6A10

from sharerenamer.

DecaTec avatar DecaTec commented on July 20, 2024

Before deleting it in the database directly (DELETE * FROM oc_share WHERE token = <token>;), we should find out why the enmtries get not deleted automatically.

I guess the cron job is not running correctly. Sharerenamer does not delete the shared links by itself, this is all done byNC's cron job.
Please try the following:

  • Create a shared link for a folder.
  • Do not use Sharerenamer to rename the share, but note the share's token.
  • Take a look at the table oc_share -> you should find the token of the sahre you just created.
  • Delete the sahred folder and empty trash bin.

I guess that this share also doesn't get cleaned up and remains in the oc_share table.
Then I would check the cron jobs log (to be found in the syslog), if there are any messages regarding errors of the NC cron job.

from sharerenamer.

Judocrafter avatar Judocrafter commented on July 20, 2024

from sharerenamer.

DecaTec avatar DecaTec commented on July 20, 2024

OK, then it seems to be the cron job causing these issues.

Why are you using webcron? Don't you have access to "real" cron jobs on your synology?
Usually you edit your crontab, as explained here.
You should only use webcron if there are no other possibilities (e.g. on shared hosting).

from sharerenamer.

Judocrafter avatar Judocrafter commented on July 20, 2024

from sharerenamer.

DecaTec avatar DecaTec commented on July 20, 2024

Sorry, I don't have a Synology NAS.
But can't you connect to your NAS using SSH and create a cronjob in the crontab?

from sharerenamer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.