Closed gour closed 2 years ago
Just wonder if the remind
on the server and on my local machine have to be the same version?
Can you please ask questions on the remind@ mailing list? This is an issue tracker for bugs in the software.
Please share your Remind files (a minimal example showing the problem, uploading them here is fine as the bug is there now, anyhow).
Just wonder if the remind on the server and on my local machine have to be the same version?
no, as long as the version is compatible with python-remind and your Remind files.
Can you please ask questions on the remind@ mailing list? This is an issue tracker for bugs in the software.
OK. I was not sure if the list is appropriate for python-related stuff...
Please share your Remind files (a minimal example showing the problem, uploading them here is fine as the bug is there now, anyhow).
Attached (as *.txt). reminders.txt test.txt
no, as long as the version is compatible with python-remind and your Remind files.
OK.
When I try to access reminders
URL I get 404 with the following debug output:
Jul 08 14:25:54 s30.wservices.ch env[456310]: 'wsgi.run_once': False,
Jul 08 14:25:54 s30.wservices.ch env[456310]: 'wsgi.url_scheme': 'http',
Jul 08 14:25:54 s30.wservices.ch env[456310]: 'wsgi.version': (1, 0)}
Jul 08 14:25:54 s30.wservices.ch env[456310]: [2022-07-08 12:25:54 +0000] [456310/Thread-33] [DEBUG] Base prefix (from SCRIPT_NAME): ''
Jul 08 14:25:54 s30.wservices.ch env[456310]: [2022-07-08 12:25:54 +0000] [456310/Thread-33] [DEBUG] Sanitized path: '/~/radicale/reminders/'
Jul 08 14:25:54 s30.wservices.ch env[456310]: [2022-07-08 12:25:54 +0000] [456310/Thread-33] [INFO] Successful login: 'atmarama'
Jul 08 14:25:54 s30.wservices.ch env[456310]: [2022-07-08 12:25:54 +0000] [456310/Thread-33] [DEBUG] Rule 'atmarama':'~/radicale/reminders' matches '.*':'.*' from section 'root'
Jul 08 14:25:54 s30.wservices.ch env[456310]: [2022-07-08 12:25:54 +0000] [456310/Thread-33] [DEBUG] Response content:
Jul 08 14:25:54 s30.wservices.ch env[456310]: The requested resource could not be found.
Jul 08 14:25:54 s30.wservices.ch env[456310]: [2022-07-08 12:25:54 +0000] [456310/Thread-33] [INFO] GET response status for '/~/radicale/reminders/' in 0.005 seconds: 404 Not Found
so I wonder how is that Sanitized path: '/~/radicale/reminders/'
constructed and what should be according to my setup since it does not look good to me?
The problem was that all entries had a color (SET $DefaultColor "255 255 51"
). I've fixed this here:
https://github.com/jspricke/python-remind/commit/be8e79f1f669ac654856ce55e3ff337467568ca6
Note that the git version needs Python 3.10 so you may want to apply the fix in your local source.
When I try to access reminders URL I get 404 with the following debug output:
Can you please share the command line as well?
I guess the tilde (~) in your config is not evaluated, please try with the full path.
The problem was that all entries had a color (
SET $DefaultColor "255 255 51"
). I've fixed this here:jspricke/python-remind@be8e79f
Note that the git version needs Python 3.10 so you may want to apply the fix in your local source.
OK, I've fixed it in the source.
Now I see see that test.rem
was created.
Can you please share the command line as well?
I am trying straight from the Radicale's admin...URL and debug output is:
Jul 08 15:45:24 s30.wservices.ch env[513924]: [2022-07-08 13:45:24 +0000] [513924/Thread-34] [DEBUG] Base prefix (from SCRIPT_NAME): ''
Jul 08 15:45:24 s30.wservices.ch env[513924]: [2022-07-08 13:45:24 +0000] [513924/Thread-34] [DEBUG] Sanitized path: '/home/atmarama/radicale/test.rem/'
Jul 08 15:45:24 s30.wservices.ch env[513924]: [2022-07-08 13:45:24 +0000] [513924/Thread-34] [INFO] Successful login: 'atmarama'
Jul 08 15:45:24 s30.wservices.ch env[513924]: [2022-07-08 13:45:24 +0000] [513924/Thread-34] [DEBUG] Rule 'atmarama':'home/atmarama/radicale/test.rem' matches '.*':'.*' from section 'root'
Jul 08 15:45:24 s30.wservices.ch env[513924]: [2022-07-08 13:45:24 +0000] [513924/Thread-34] [DEBUG] Response content:
Jul 08 15:45:24 s30.wservices.ch env[513924]: The requested resource could not be found.
Jul 08 15:45:24 s30.wservices.ch env[513924]: [2022-07-08 13:45:24 +0000] [513924/Thread-34] [INFO] GET response status for '/home/atmarama/radicale/test.rem/' in 0.003 seconds: 404 Not Found
so, Sanitized path: '/home/atmarama/radicale/test.rem/
contains extra /
?
If I try to access https://radicale.atmarama.net/home/atmarama/radicale/test.rem
I get:
Jul 08 15:47:20 s30.wservices.ch env[513924]: [2022-07-08 13:47:20 +0000] [513924/Thread-35] [DEBUG] Base prefix (from SCRIPT_NAME): ''
Jul 08 15:47:20 s30.wservices.ch env[513924]: [2022-07-08 13:47:20 +0000] [513924/Thread-35] [DEBUG] Sanitized path: '/home/atmarama/radicale/test.rem'
Jul 08 15:47:20 s30.wservices.ch env[513924]: [2022-07-08 13:47:20 +0000] [513924/Thread-35] [INFO] Successful login: 'atmarama'
Jul 08 15:47:20 s30.wservices.ch env[513924]: [2022-07-08 13:47:20 +0000] [513924/Thread-35] [DEBUG] Rule 'atmarama':'home/atmarama/radicale/test.rem' matches '.*':'.*' from section 'root'
Jul 08 15:47:20 s30.wservices.ch env[513924]: [2022-07-08 13:47:20 +0000] [513924/Thread-35] [DEBUG] Response content:
Jul 08 15:47:20 s30.wservices.ch env[513924]: The requested resource could not be found.
Jul 08 15:47:20 s30.wservices.ch env[513924]: [2022-07-08 13:47:20 +0000] [513924/Thread-35] [INFO] GET response status for '/home/atmarama/radicale/test.rem' in 0.003 seconds: 404 Not Found
Moreover, filesystem_folder = /home/atmarama/radicale/collections
is not created??
I guess the tilde (~) in your config is not evaluated, please try with the full path.
Changed, but get the above behavior...
Moreover, filesystem_folder = /home/atmarama/radicale/collections is not created??
try:
filesystem_folder = /home/atmarama/radicale
filesystem_folder is the base folder for your files, so if remind_file = /home/atmarama/radicale/reminders
is the reminders.txt from above then filesystem_folder
will sanitize the first part.
Sanitized path: '/home/atmarama/radicale/test.rem/ contains extra /?
Correct, but only for the CalDAV URL.
Jul 08 15:45:24 s30.wservices.ch env[513924]: [2022-07-08 13:45:24 +0000] [513924/Thread-34] [DEBUG] Rule 'atmarama':'home/atmarama/radicale/test.rem' matches '.':'.' from section 'root'
can you share your Radicale rights file (/home/atmarama/.config/radicale/rights)?
try:
filesystem_folder = /home/atmarama/radicale ``
I just wanted to ask why in the example there is: filesystem_folder = /home`` instead of e.g.
filesystem_folder = /home/user'. :smile:
filesystem_folder is the base folder for your files, so if
remind_file = /home/atmarama/radicale/reminders
is the reminders.txt from above thenfilesystem_folder
will sanitize the first part.
OK. Got it.
Now I get:
Jul 08 16:46:22 s30.wservices.ch env[551052]: [2022-07-08 14:46:22 +0000] [551052/Thread-3] [DEBUG] Sanitized path: '/reminders/'
Jul 08 16:46:22 s30.wservices.ch env[551052]: [2022-07-08 14:46:22 +0000] [551052/Thread-3] [INFO] Successful login: 'atmarama'
Jul 08 16:46:22 s30.wservices.ch env[551052]: [2022-07-08 14:46:22 +0000] [551052/Thread-3] [DEBUG] Rule 'atmarama':'reminders' matches '.*':'.*' from section 'root'
Jul 08 16:46:22 s30.wservices.ch env[551052]: [2022-07-08 14:46:22 +0000] [551052/Thread-3] [DEBUG] Response content:
Jul 08 16:46:22 s30.wservices.ch env[551052]: Directory listings are not supported.
Jul 08 16:46:22 s30.wservices.ch env[551052]: [2022-07-08 14:46:22 +0000] [551052/Thread-3] [INFO] GET response status for '/reminders/' in 0.003 seconds: 403 Forbidden
Correct, but only for the CalDAV URL.
OK.
can you share your Radicale rights file (/home/atmarama/.config/radicale/rights)?
[root]
user: .*
collection: .*
permissions: RrWw
just tested, filesystem_folder = /home/atmarama
should work, sorry.
just tested,
filesystem_folder = /home/atmarama
should work, sorry.
Thank you for being so patient with me!
Now it works...with one strange thing - if I enable task_folder
, then the Radicale can't start:
Jul 08 17:19:16 s30.wservices.ch systemd[512211]: radicale.service: Scheduled restart job, restart counter is at 5.
Jul 08 17:19:16 s30.wservices.ch systemd[512211]: Stopped A simple CalDAV (calendar) and CardDAV (contact) server.
Jul 08 17:19:16 s30.wservices.ch systemd[512211]: radicale.service: Start request repeated too quickly.
Jul 08 17:19:16 s30.wservices.ch systemd[512211]: radicale.service: Failed with result 'exit-code'.
Jul 08 17:19:16 s30.wservices.ch systemd[512211]: Failed to start A simple CalDAV (calendar) and CardDAV (contact) server.
Any clue?
Can you run radicale -D
from the command line and paste the output?
Can you run
radicale -D
from the command line and paste the output?
Ahh, I forgot that taskwarrior
is not installed on the server. :-(
Compiled my own version and now it seems that everything is OK, iow. debug time is over and time for real testing. :-)
Thanks a lot for your assistance!
Closing then.
Hello,
Radicale seems to work properly:
but although I (uni)synced my files with the server no collections are created?
Here is my config file:
Any hint?