-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't make calendar events. #64
Comments
@koen860 A new major version of Radicale has been released a few weeks ago and it breaks compatibility with old versions. The installer was not forcing the version to use so it deploys the latest one. I've fixed the installer for now but you must downgrade the Radicale version to 2.1.12. I suggest you update your local copy of the installer using git, and then run it again. |
Hello, Thank you for your fast response! But the installer prints that radicale is already in radicale-storage-by-index so it wont install the correct version: Requirement already satisfied: radicale in ./env/lib/python3.6/site-packages (from radicale-storage-by-index) (3.0.3) And when I manually install radicale 2 I get this error: |
@koen860 The storage-by-index plugin looks deprecated too. I suggest you uninstall it manually before you run the installer again. |
It looks like it didn't install anything at the moment: Installing radicale Radicale Directory: radicale@.sddc01.nl:~/env# ./bin/pip list pip 20.1.1 When i changed line 34 of the radical install script from: It started the install and Radicale is running without any errors but it still doesnt create calendar event or calendars. |
@koen860 Can you check logs? |
From what services do you need logs? |
This is de uwsgi log: server.sdhd.email [pid: 22011|app: 1|req: 2/3] 172.24.2.30 () {64 vars in 1101 bytes} [Tue Jun 9 14:18:05 2020] GET /jsi18n/ => generated 3223 bytes in 86 msecs (HTTP/1.0 200) 5 headers in 171 bytes (1 switches on core 0) |
And this is the Radicale Log: [7fcc20e1b740] INFO: Starting Radicale Also, the django debug log: Traceback: File "/srv/modoboa/env/lib64/python3.6/site-packages/django/core/handlers/exception.py" in inner File "/srv/modoboa/env/lib64/python3.6/site-packages/django/core/handlers/base.py" in _get_response File "/srv/modoboa/env/lib64/python3.6/site-packages/django/core/handlers/base.py" in _get_response File "/srv/modoboa/env/lib64/python3.6/site-packages/django/template/response.py" in render File "/srv/modoboa/env/lib64/python3.6/site-packages/rest_framework/response.py" in rendered_content File "/srv/modoboa/env/lib64/python3.6/site-packages/rest_framework/renderers.py" in render File "/srv/modoboa/env/lib64/python3.6/site-packages/rest_framework/renderers.py" in get_context File "/srv/modoboa/env/lib64/python3.6/site-packages/rest_framework/renderers.py" in get_raw_data_form File "/srv/modoboa/env/lib64/python3.6/site-packages/rest_framework/serializers.py" in data File "/srv/modoboa/env/lib64/python3.6/site-packages/rest_framework/serializers.py" in data Exception Type: AssertionError at /api/v1/user-calendars/18/events/ |
I have fixed the issue by just completely reinstalling my CentOS and begin from scratch. Then i noticed that my Apple calendar wont connect to it while some other apps do. What i did to fix it was adding this config to the NGINX configuration. I discovered this by looking at the acces log while trying to logon.
|
@koen860 Do you know if it is a standard url? |
The standard URL for discovery is /.well-known/ but that was in my case already in use for let's encrypt so I saw that the client was trying this url (/principals/users/). So I added this to the NGINX config because it works for me and this is a personal VPS. It's probably nicer to comply with the RFC5785 and redirect the caldav client via the .well-known url as described here: https://sabre.io/dav/service-discovery/ |
Impacted versions
Steps to reproduce
I'm running a fresh install on CentOS 7 with external Mysql DB.
Current behavior
I installed a fresh copy of Modoboa and noticed that the calendar function isn't working correctly. After some investigation i noticed that radicale is not started. When i start Radicale i saw this message:
[2020-06-08 19:33:57 +0200] [28669] [CRITICAL] Invalid configuration: Invalid option 'debug' in section 'logging' in config file '/etc/radicale/config'
I commented out the Debug line in /etc/radicale/config and received the following error. And this is the one where i'm stuck on:
[2020-06-08 19:37:17 +0200] [29280] [CRITICAL] An exception occurred during server startup: Failed to load storage module 'radicale_storage_by_index': cannot import name 'Collection'
Expected behavior
I hope someone can help me to start radicale. So that i can use the calendar function.
PS. I also noticed that the web interface is taking very long to create a calendar (but does eventually creates one).
Update:
During a second install on a clean, new centos 7 vm i noticed these error messages:
ERROR: Can't open/parse the config file /etc/freshclam.conf
...
Job for clamd@amavisd.service failed because the control process exited with error code. See "systemctl status clamd@amavisd.service" and "journalctl -xe" for details.
ERROR: Command errored out with exit status 1:
command: /srv/modoboa/env/bin/python3 /srv/modoboa/env/lib64/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpwrgjsy6s
cwd: /tmp/pip-install-7ukr84j4/django-braces
Complete output (16 lines):
Traceback (most recent call last):
File "/srv/modoboa/env/lib64/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in
main()
File "/srv/modoboa/env/lib64/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/srv/modoboa/env/lib64/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 114, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-k5g46gwu/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 148, in get_requires_for_build_wheel
config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-k5g46gwu/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 128, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-k5g46gwu/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 3, in
import braces
ModuleNotFoundError: No module named 'braces'
ERROR: Command errored out with exit status 1: /srv/modoboa/env/bin/python3 /srv/modoboa/env/lib64/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpwrgjsy6s Check the logs for full command output.
...
ERROR: modoboa-contacts 0.8.1 has requirement caldav==0.6.2, but you'll have caldav 0.5.0 which is incompatible.
ERROR: modoboa-radicale 1.4.3 has requirement caldav==0.6.2, but you'll have caldav 0.5.0 which is incompatible.
And the same issues are present is this install as well. Upgrading to caldav 0.6.2 also doesn't help.
Video/Screenshot link (optional)
The text was updated successfully, but these errors were encountered: