Can't delete a shortened url #2105
-
Shlink version4.1.0 PHP versionunknown How do you serve ShlinkDocker image Database enginePostgreSQL Database versionunknown Current behavior
Expected behaviorEnter word delete and press the delete button. Link deleted. Minimum steps to reproduceI'm using the Truecharts deployment. I checked if it could've been an option with env vars but couldn't find anything relevant but this one |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Shlink does not allow deleting short urls with more than 15 visits, to avoid losing data by mistake. The However, if this threshold was the cause, the error message would be different. Can you check Shlink logs? There should be an error trace when that happens. |
Beta Was this translation helpful? Give feedback.
-
I also found out I can't delete AND edit anything. Logs are somewhat not elusive to me. The web-client is full of these lines which seems like the normal behaviour I guess. 2024-04-18 10:47:36.017348-04:00172.16.0.1 - - [18/Apr/2024:10:47:36 -0400] "GET / HTTP/1.1" 200 6093 "-" "kube-probe/1.26" "-" The server logs doesn't log anything when I'm trying to delete or edit but there seems to be a lot of errors related to postgresql db. 2024-04-18 07:16:45.792908-04:00{"level":"info","ts":"2024-04-18T11:16:45Z","logger":"postgres","msg":"record","logging_pod":"shlink-cnpg-main-1","record":{"log_time":"2024-04-18 11:16:45.792 UTC","process_id":"37","session_id":"66203074.25","session_line_num":"70","session_start_time":"2024-04-17 20:26:28 UTC","transaction_id":"0","error_severity":"LOG","sql_state_code":"00000","message":"checkpoint complete: wrote 16 buffers (0.1%); 0 WAL file(s) added, 0 removed, 1 recycled; write=1.469 s, sync=0.005 s, total=1.478 s; sync files=15, longest=0.001 s, average=0.001 s; distance=16352 kB, estimate=31150 kB; lsn=0/3B000060, redo lsn=0/3A007198","backend_type":"checkpointer","query_id":"0"}}
2024-04-18 07:21:44.971816-04:00{"level":"info","ts":"2024-04-18T11:21:44Z","logger":"wal-archive","msg":"Backup not configured, skip WAL archiving","logging_pod":"shlink-cnpg-main-1","walName":"pg_wal/00000001000000000000003B","currentPrimary":"shlink-cnpg-main-1","targetPrimary":"shlink-cnpg-main-1"}
2024-04-18 10:36:47.859547-04:00{"level":"info","ts":"2024-04-18T14:36:47Z","logger":"postgres","msg":"record","logging_pod":"shlink-cnpg-main-1","record":{"log_time":"2024-04-18 14:36:47.859 UTC","process_id":"37","session_id":"66203074.25","session_line_num":"71","session_start_time":"2024-04-17 20:26:28 UTC","transaction_id":"0","error_severity":"LOG","sql_state_code":"00000","message":"checkpoint starting: time","backend_type":"checkpointer","query_id":"0"}}
2024-04-18 10:36:47.960867-04:00{"level":"info","ts":"2024-04-18T14:36:47Z","logger":"wal-archive","msg":"Backup not configured, skip WAL archiving","logging_pod":"shlink-cnpg-main-1","walName":"pg_wal/00000001000000000000003C","currentPrimary":"shlink-cnpg-main-1","targetPrimary":"shlink-cnpg-main-1"}
2024-04-18 10:36:48.132994-04:00{"level":"info","ts":"2024-04-18T14:36:48Z","logger":"postgres","msg":"record","logging_pod":"shlink-cnpg-main-1","record":{"log_time":"2024-04-18 14:36:48.132 UTC","process_id":"37","session_id":"66203074.25","session_line_num":"72","session_start_time":"2024-04-17 20:26:28 UTC","transaction_id":"0","error_severity":"LOG","sql_state_code":"00000","message":"checkpoint complete: wrote 2 buffers (0.0%); 0 WAL file(s) added, 0 removed, 2 recycled; write=0.266 s, sync=0.001 s, total=0.274 s; sync files=2, longest=0.001 s, average=0.001 s; distance=32744 kB, estimate=32744 kB; lsn=0/3D000060, redo lsn=0/3C001588","backend_type":"checkpointer","query_id":"0"}}
2024-04-18 10:41:47.332250-04:00{"level":"info","ts":"2024-04-18T14:41:47Z","logger":"wal-archive","msg":"Backup not configured, skip WAL archiving","logging_pod":"shlink-cnpg-main-1","walName":"pg_wal/00000001000000000000003D","currentPrimary":"shlink-cnpg-main-1","targetPrimary":"shlink-cnpg-main-1"} Thanks for helping! |
Beta Was this translation helpful? Give feedback.
-
I'll move this to discussions, as it doesn't seem to be a bug, but rather a configuration issue.
It might the the request is getting blocked before reaching Shlink then. What do you see in the browser console's network tab when trying to do any of those actions? There should be a request failing which should be returning a response, or perhaps there's a blocked request due to CORS not working properly if the ingress or whatever host in front of Shlink is messing-up with the CORS headers. In any of those cases, there should be some error printed in the browser console.
Yeah, those seem to be liveness proves from Kubernetes. |
Beta Was this translation helpful? Give feedback.
-
Solution updated on #793 and is much more clearer. |
Beta Was this translation helpful? Give feedback.
Solution updated on #793 and is much more clearer.