Comments (11)
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.
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.
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.
from sharerenamer.
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.
I found it on the database directly.
How can i delete them now?
Thank you for your help.
from sharerenamer.
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.
from sharerenamer.
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.
from sharerenamer.
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)
- Add Support for nextcloud 24 HOT 4
- After creating a share link, Share Renamer requires a refresh to recognize it for renaming HOT 1
- name already exist HOT 10
- Use the api that was introduced in NC23? HOT 3
- Nextcloud 26 compatibility HOT 2
- Is it possible to use via CLI or API? HOT 1
- Rename shares in all apps HOT 1
- Disabled automatically on Nextcloud 26.01 HOT 4
- ShareRenamer & NextCloud 27 HOT 26
- Search Links
- becoming official - despite possible security risk HOT 12
- Nextcloud 27 HOT 1
- Flag as incompatible with NC 18+ HOT 9
- NextCloud v28 HOT 21
- NextCloud (NC) 19 HOT 4
- Not longer maintained/looking for maintainers HOT 22
- Not work NC19 HOT 1
- Nextcloud 20 HOT 1
- Are old renamed links still working after update? HOT 2
- ShareRenamer 3.0.0 does not work on NC 23.0.0 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharerenamer.