[GH-ISSUE #1656] cannot create a Calendar/Contacts #1301

Closed
opened 2026-02-27 11:16:24 +03:00 by kerem · 16 comments
Owner

Originally created by @cremesk on GitHub (Jan 17, 2019).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1656

Hallo, i have a Fresh default Installed Modoboa Version. It works very nice but a have a liddle Problem to create a Calendar for my User.

Impacted versions

OS: Debian 9.6 (stretch)

  • Modoboa: 1.13.0
  • installer used: Yes
  • Webserver: Nginx
Originally created by @cremesk on GitHub (Jan 17, 2019). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1656 Hallo, i have a Fresh default Installed Modoboa Version. It works very nice but a have a liddle Problem to create a Calendar for my User. # Impacted versions OS: Debian 9.6 (stretch) * Modoboa: 1.13.0 * installer used: Yes * Webserver: Nginx
kerem 2026-02-27 11:16:24 +03:00
  • closed this issue
  • added the
    wontfix
    label
Author
Owner

@tonioo commented on GitHub (Jan 18, 2019):

@cremesk Are you using a valid TLS certificate? (letsencrypt)

<!-- gh-comment-id:455627495 --> @tonioo commented on GitHub (Jan 18, 2019): @cremesk Are you using a valid TLS certificate? (letsencrypt)
Author
Owner

@cremesk commented on GitHub (Jan 18, 2019):

@tonioo yes i do. https://mail.secnux.net/
demo@secnux.net / Password123

<!-- gh-comment-id:455666847 --> @cremesk commented on GitHub (Jan 18, 2019): @tonioo yes i do. https://mail.secnux.net/ demo@secnux.net / Password123
Author
Owner

@tonioo commented on GitHub (Jan 19, 2019):

@cremesk Can you set DEBUG to True inside settings.py and reload uwsgi ?

<!-- gh-comment-id:455763641 --> @tonioo commented on GitHub (Jan 19, 2019): @cremesk Can you set DEBUG to True inside settings.py and reload uwsgi ?
Author
Owner

@cremesk commented on GitHub (Jan 19, 2019):

@tonioo okay Done. The Calendar & Contact Page has an IO Error. You can Login the Demo Account an check it.

IOError at /calendars/

Error reading /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/../frontend/webpack-stats.json. Are you sure webpack has generated the file and the path is correct?

Request Method: | GET
-- | --
https://mail.secnux.net/calendars/
1.11.18
IOError
Error reading /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/../frontend/webpack-stats.json. Are you sure webpack has generated the file and the path is correct?
/srv/modoboa/env/local/lib/python2.7/site-packages/webpack_loader/loader.py in _load_assets, line 32
/usr/bin/uwsgi-core
2.7.13
['.',  '',  '/srv/modoboa/env/lib/python2.7',  '/srv/modoboa/env/lib/python2.7/plat-x86_64-linux-gnu',  '/srv/modoboa/env/lib/python2.7/lib-tk',  '/srv/modoboa/env/lib/python2.7/lib-old',  '/srv/modoboa/env/lib/python2.7/lib-dynload',  '/usr/lib/python2.7',  '/usr/lib/python2.7/plat-x86_64-linux-gnu',  '/usr/lib/python2.7/lib-tk',  '/srv/modoboa/env/local/lib/python2.7/site-packages',  '/srv/modoboa/env/lib/python2.7/site-packages']
Sat, 19 Jan 2019 10:53:48 +0100


<!-- gh-comment-id:455766127 --> @cremesk commented on GitHub (Jan 19, 2019): @tonioo okay Done. The Calendar & Contact Page has an IO Error. You can Login the Demo Account an check it. ``` IOError at /calendars/ Error reading /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/../frontend/webpack-stats.json. Are you sure webpack has generated the file and the path is correct? Request Method: | GET -- | -- https://mail.secnux.net/calendars/ 1.11.18 IOError Error reading /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/../frontend/webpack-stats.json. Are you sure webpack has generated the file and the path is correct? /srv/modoboa/env/local/lib/python2.7/site-packages/webpack_loader/loader.py in _load_assets, line 32 /usr/bin/uwsgi-core 2.7.13 ['.', '', '/srv/modoboa/env/lib/python2.7', '/srv/modoboa/env/lib/python2.7/plat-x86_64-linux-gnu', '/srv/modoboa/env/lib/python2.7/lib-tk', '/srv/modoboa/env/lib/python2.7/lib-old', '/srv/modoboa/env/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/srv/modoboa/env/local/lib/python2.7/site-packages', '/srv/modoboa/env/lib/python2.7/site-packages'] Sat, 19 Jan 2019 10:53:48 +0100 ```
Author
Owner

@cremesk commented on GitHub (Feb 1, 2019):

@tonioo you have an idea?

<!-- gh-comment-id:459747364 --> @cremesk commented on GitHub (Feb 1, 2019): @tonioo you have an idea?
Author
Owner

@cremesk commented on GitHub (Feb 16, 2019):

Error reading /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/../frontend/webpack-stats.json

No '../frontend/..' Directory on my disk. But i can find this file in:
/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/static/modoboa_radicale/webpack-stats.json

<!-- gh-comment-id:464396710 --> @cremesk commented on GitHub (Feb 16, 2019): Error reading /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/../frontend/webpack-stats.json No '../frontend/..' Directory on my disk. But i can find this file in: /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/static/modoboa_radicale/webpack-stats.json
Author
Owner

@tonioo commented on GitHub (Feb 25, 2019):

@cremesk Yes, that's a know issue... What you can do is replace this line https://github.com/modoboa/modoboa-radicale/blob/master/modoboa_radicale/settings.py#L24 by the path you mentioned and it should work. The settings.py file you be located here: /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/settings.py

<!-- gh-comment-id:466954890 --> @tonioo commented on GitHub (Feb 25, 2019): @cremesk Yes, that's a know issue... What you can do is replace this line https://github.com/modoboa/modoboa-radicale/blob/master/modoboa_radicale/settings.py#L24 by the path you mentioned and it should work. The settings.py file you be located here: /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/settings.py
Author
Owner

@cremesk commented on GitHub (Feb 25, 2019):

@tonioo Thanks! With Line 24:
"STATS_FILE": "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/static/modoboa_radicale",

works the Calendar-Site without Errors. However, it is still not possible to create a calendar.

-rw-r--r-- 1 modoboa modoboa 2.6K Jan 16 18:57 /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/static/modoboa_radicale/webpack-stats.json

<!-- gh-comment-id:466965477 --> @cremesk commented on GitHub (Feb 25, 2019): @tonioo Thanks! With Line 24: `"STATS_FILE": "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/static/modoboa_radicale",` works the Calendar-Site without Errors. However, it is still not possible to create a calendar. `-rw-r--r-- 1 modoboa modoboa 2.6K Jan 16 18:57 /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/static/modoboa_radicale/webpack-stats.json`
Author
Owner

@tonioo commented on GitHub (Feb 25, 2019):

@cremesk Ok, so now you should be able to see more information using a javascript debugger. (Look at the network tab and check server's response).

<!-- gh-comment-id:466966452 --> @tonioo commented on GitHub (Feb 25, 2019): @cremesk Ok, so now you should be able to see more information using a javascript debugger. (Look at the network tab and check server's response).
Author
Owner

@cremesk commented on GitHub (Feb 25, 2019):

Error in Debugger Console:

Source map error: request failed with status 404
Resource URL: https://mail.secnux.net/sitestatic/bootstrap/dist/css/bootstrap.min.css
Source Map URL: bootstrap.min.css.map

Request-URL: https://mail.secnux.net/api/v1/user-calendars/
Methode: POST
Internal Server Error

Request headers:

Host: mail.secnux.net
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0
Accept: application/json, text/plain, */*
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate, br
Referer: https://mail.secnux.net/calendars/
X-CSRFTOKEN: uSgPUDi5ZCGlq9At0f1oJERNr57LH1NDv01UztNHqH673GGF0jUHt3iCePq2E6xS
Content-Type: application/json;charset=utf-8
X-Requested-With: XMLHttpRequest
Content-Length: 14
DNT: 1
Connection: keep-alive
Cookie: csrftoken=uSgPUDi5ZCGlq9At0f1oJERNr57LH1NDv01UztNHqH673GGF0jUHt3iCePq2E6xS; sessionid=uq8dbe0z4llp8d2bovy5accr0bnx9y6m

Response headers:

HTTP/1.1 500 Internal Server Error
Server: nginx/1.10.3
Date: Mon, 25 Feb 2019 10:56:53 GMT
Content-Type: text/plain
Content-Length: 20780
Connection: keep-alive
Vary: Accept-Language, Cookie
X-Frame-Options: SAMEORIGIN
Content-Language: en
<!-- gh-comment-id:466968784 --> @cremesk commented on GitHub (Feb 25, 2019): Error in Debugger Console: ``` Source map error: request failed with status 404 Resource URL: https://mail.secnux.net/sitestatic/bootstrap/dist/css/bootstrap.min.css Source Map URL: bootstrap.min.css.map ``` Request-URL: https://mail.secnux.net/api/v1/user-calendars/ Methode: POST Internal Server Error Request headers: ``` Host: mail.secnux.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0 Accept: application/json, text/plain, */* Accept-Language: de,en-US;q=0.7,en;q=0.3 Accept-Encoding: gzip, deflate, br Referer: https://mail.secnux.net/calendars/ X-CSRFTOKEN: uSgPUDi5ZCGlq9At0f1oJERNr57LH1NDv01UztNHqH673GGF0jUHt3iCePq2E6xS Content-Type: application/json;charset=utf-8 X-Requested-With: XMLHttpRequest Content-Length: 14 DNT: 1 Connection: keep-alive Cookie: csrftoken=uSgPUDi5ZCGlq9At0f1oJERNr57LH1NDv01UztNHqH673GGF0jUHt3iCePq2E6xS; sessionid=uq8dbe0z4llp8d2bovy5accr0bnx9y6m ``` Response headers: ``` HTTP/1.1 500 Internal Server Error Server: nginx/1.10.3 Date: Mon, 25 Feb 2019 10:56:53 GMT Content-Type: text/plain Content-Length: 20780 Connection: keep-alive Vary: Accept-Language, Cookie X-Frame-Options: SAMEORIGIN Content-Language: en ```
Author
Owner

@tonioo commented on GitHub (Feb 25, 2019):

Don't you see anything in the response body tab?

<!-- gh-comment-id:466969295 --> @tonioo commented on GitHub (Feb 25, 2019): Don't you see anything in the response body tab?
Author
Owner

@cremesk commented on GitHub (Feb 25, 2019):


Traceback:  

File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/utils/decorators.py" in inner
  185.                     return func(*args, **kwargs)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/utils/decorators.py" in inner
  185.                     return func(*args, **kwargs)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
  58.         return view_func(*args, **kwargs)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/viewsets.py" in view
  90.             return self.dispatch(request, *args, **kwargs)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/views.py" in dispatch
  489.             response = self.handle_exception(exc)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/views.py" in handle_exception
  449.             self.raise_uncaught_exception(exc)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/views.py" in dispatch
  486.             response = handler(request, *args, **kwargs)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/mixins.py" in create
  21.         self.perform_create(serializer)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/mixins.py" in perform_create
  26.         serializer.save()

File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/serializers.py" in save
  214.             self.instance = self.create(validated_data)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/serializers.py" in create
  43.         self.create_remote_calendar(calendar)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/serializers.py" in create_remote_calendar
  21.         backend.create_calendar(calendar.encoded_url)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/backends/caldav_.py" in create_calendar
  73.         self.client.mkcalendar(url)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/caldav/davclient.py" in mkcalendar
  201.         return self.request(url, "MKCALENDAR", body)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/caldav/davclient.py" in request
  247.                              auth=auth, verify=self.ssl_verify_cert)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/requests/api.py" in request
  60.         return session.request(method=method, url=url, **kwargs)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/requests/sessions.py" in request
  533.         resp = self.send(prep, **send_kwargs)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/requests/sessions.py" in send
  646.         r = adapter.send(request, **kwargs)

File "/srv/modoboa/env/local/lib/python2.7/site-packages/requests/adapters.py" in send
  514.                 raise SSLError(e, request=request)

Exception Type: SSLError at /api/v1/user-calendars/
Exception Value: HTTPSConnectionPool(host='mail.secnux.net', port=443): Max retries exceeded with url: /radicale/sven.kinne%40secnux.net/dev (Caused by SSLError(SSLError(1, u'[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:661)'),))
Request information:
USER: sven.kinne@secnux.net
<!-- gh-comment-id:466969406 --> @cremesk commented on GitHub (Feb 25, 2019): ``` Traceback: File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner 41. response = get_response(request) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/utils/decorators.py" in inner 185. return func(*args, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/utils/decorators.py" in inner 185. return func(*args, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view 58. return view_func(*args, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/viewsets.py" in view 90. return self.dispatch(request, *args, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/views.py" in dispatch 489. response = self.handle_exception(exc) File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/views.py" in handle_exception 449. self.raise_uncaught_exception(exc) File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/views.py" in dispatch 486. response = handler(request, *args, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/mixins.py" in create 21. self.perform_create(serializer) File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/mixins.py" in perform_create 26. serializer.save() File "/srv/modoboa/env/local/lib/python2.7/site-packages/rest_framework/serializers.py" in save 214. self.instance = self.create(validated_data) File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/serializers.py" in create 43. self.create_remote_calendar(calendar) File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/serializers.py" in create_remote_calendar 21. backend.create_calendar(calendar.encoded_url) File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/backends/caldav_.py" in create_calendar 73. self.client.mkcalendar(url) File "/srv/modoboa/env/local/lib/python2.7/site-packages/caldav/davclient.py" in mkcalendar 201. return self.request(url, "MKCALENDAR", body) File "/srv/modoboa/env/local/lib/python2.7/site-packages/caldav/davclient.py" in request 247. auth=auth, verify=self.ssl_verify_cert) File "/srv/modoboa/env/local/lib/python2.7/site-packages/requests/api.py" in request 60. return session.request(method=method, url=url, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/requests/sessions.py" in request 533. resp = self.send(prep, **send_kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/requests/sessions.py" in send 646. r = adapter.send(request, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/requests/adapters.py" in send 514. raise SSLError(e, request=request) Exception Type: SSLError at /api/v1/user-calendars/ Exception Value: HTTPSConnectionPool(host='mail.secnux.net', port=443): Max retries exceeded with url: /radicale/sven.kinne%40secnux.net/dev (Caused by SSLError(SSLError(1, u'[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:661)'),)) Request information: USER: sven.kinne@secnux.net ```
Author
Owner

@tonioo commented on GitHub (Feb 25, 2019):

@cremesk Can you try to update the pyOpenSSL and certifi packages:

> sudo -u modoboa
> source env/bin/activate
> pip install -U pyOpenSSL certifi
> exit
> sudo systemctl reload uwsgi
<!-- gh-comment-id:466971531 --> @tonioo commented on GitHub (Feb 25, 2019): @cremesk Can you try to update the pyOpenSSL and certifi packages: ```shell > sudo -u modoboa > source env/bin/activate > pip install -U pyOpenSSL certifi > exit > sudo systemctl reload uwsgi ```
Author
Owner

@cremesk commented on GitHub (Feb 25, 2019):

same error after do this :/

<!-- gh-comment-id:466973019 --> @cremesk commented on GitHub (Feb 25, 2019): same error after do this :/
Author
Owner

@cremesk commented on GitHub (Feb 25, 2019):

Summary:
Calendar settings.py need a modification on line 24:

From:
"STATS_FILE": CALENDAR_STATS_FILES.get("dev" if DEBUG else "prod"),
To:
"STATS_FILE": "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/static/modoboa_radicale/webpack-stats.json",

Same for Contacts:

"STATS_FILE": CONTACTS_STATS_FILES.get("dev" if DEBUG else "prod"),
"STATS_FILE": "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_contacts/static/modoboa_contacts/webpack-stats.json",

Shared-Calendars needs manual create directory '/srv/radicale/collections/collection-root/domain.com/'.
Deleted Calenders are only deleted on WebUI!

<!-- gh-comment-id:467010264 --> @cremesk commented on GitHub (Feb 25, 2019): **Summary:** Calendar settings.py need a modification on line 24: ``` From: "STATS_FILE": CALENDAR_STATS_FILES.get("dev" if DEBUG else "prod"), To: "STATS_FILE": "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_radicale/static/modoboa_radicale/webpack-stats.json", ``` Same for Contacts: ``` "STATS_FILE": CONTACTS_STATS_FILES.get("dev" if DEBUG else "prod"), "STATS_FILE": "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_contacts/static/modoboa_contacts/webpack-stats.json", ``` Shared-Calendars needs manual create directory '/srv/radicale/collections/collection-root/domain.com/'. Deleted Calenders are only deleted on WebUI!
Author
Owner

@stale[bot] commented on GitHub (Oct 23, 2020):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:715534830 --> @stale[bot] commented on GitHub (Oct 23, 2020): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1301
No description provided.