mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #2990] Unable to create calendar #1723
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1723
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NABarnes on GitHub (May 1, 2023).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2990
Impacted versions
Steps to reproduce
Create simple user. Log in as user. Click 'Calendars' from top bar. Click '+ New calendar'. Enter details and click 'Create'.
Current behaviour
New calendar dialog box stays open and calendar is not created. No error messages are given.
Expected behaviour
Dialogue box closes and calendar is created.
@Spitfireap commented on GitHub (May 2, 2023):
Hi, do you have a self-signed cert or a let's encrypt one ?
@NABarnes commented on GitHub (May 2, 2023):
Self-signed on the modoboa box itself, but accessed through a nginx reverse proxy with a LE cert.
@Spitfireap commented on GitHub (May 2, 2023):
Okay, could you please try to modify this file :
/srv/modoboa/env/lib/pythonX.X/site-packages/modoboa_radicale/backends/caldav_.pyThen find this :
And add
ssl_verify_cert=False. So it should be :Then restart uwsgi service and retry to create a calendar.
@NABarnes commented on GitHub (May 2, 2023):
Tried that and it did not resolve the issue.
Rebooted and cleared browser cache just in case and still not resolved.
@Spitfireap commented on GitHub (May 2, 2023):
Ok, do you have any error in the browser console ?
@Spitfireap commented on GitHub (May 2, 2023):
Nice, so can you edit
/srv/modoboa/instance/instance/settings.pyand setDEBUGto True ? and restart uwsgi.Then post what shows in the browser console when creating a calendar
@NABarnes commented on GitHub (May 2, 2023):
Ah, yes.

@NABarnes commented on GitHub (May 2, 2023):
With DEBUG=True I get no more information in the console than that above.
@Spitfireap commented on GitHub (May 2, 2023):
You need to go to
Networktab and check for the 'Response' of the request@NABarnes commented on GitHub (May 2, 2023):
"Failed to load response data: Request content was evicted from inspector cache"
@Spitfireap commented on GitHub (May 2, 2023):
Is it for the
api/v1/user-calendarsrequest ? Can you try to create a calendar on the old interface ?@NABarnes commented on GitHub (May 2, 2023):
I'm just logged in as a simple user using the default interface (as per the install script). I can't see anywhere to change to any other interface.
@Spitfireap commented on GitHub (May 2, 2023):
So you are on the old.
Regarding the response, are you sure it is on user-calendars request (filter the results with
XHR/Fetchoption@NABarnes commented on GitHub (May 2, 2023):
@aaalkhonji73 commented on GitHub (May 2, 2023):
XHR/Fetch
@Spitfireap commented on GitHub (May 2, 2023):
Just before creating the calendar, clear the history on the Network tab and uncheck
Preserve logif checked. Then look again at the response of user-calendars.@NABarnes commented on GitHub (May 2, 2023):
OK. Switched to Firefox which just worked, of course. Shouldn't have been in Chrome in the first place.
"maximum recursion depth exceeded while calling a Python object"
Redacted raw reponse attached.
modoboa_create_calendar_debug.txt
@Spitfireap commented on GitHub (May 2, 2023):
Thanks. Can you share the output of
pip listwith your venv activated plz?@NABarnes commented on GitHub (May 2, 2023):
Package Version
appdirs 1.4.4
bottle 0.12.19
brz-etckeeper 0.0.0
certifi 2020.6.20
chardet 4.0.0
distlib 0.3.1
fail2ban 0.11.2
filelock 3.0.12
idna 2.10
importlib-metadata 1.6.0
inithooks 1.0.3
more-itertools 4.2.0
pip 20.3.4
pycurl 7.43.0.6
pycurl-wrapper 2.0-2-g027c28a
Pygments 2.7.1
pythondialog 3.5.1
PyYAML 5.3.1
pyzor 1.0.0
requests 2.25.1
setuptools 52.0.0
six 1.16.0
supervisor 4.2.2
turnkey-conffile 1.0
turnkey-netinfo 1.0
turnkey-sysinfo 1.1
turnkey-version 1.1
TurnkeyLazyClass 1.0
urllib3 1.26.5
virtualenv 20.4.0+ds
wheel 0.34.2
zipp 1.0.0
@Spitfireap commented on GitHub (May 2, 2023):
seems to be on global here :
/srv/modoboa/env/bin/pip listperhaps ?@NABarnes commented on GitHub (May 2, 2023):
Apologies. What I know about python you could write on the head of a pin!
Package Version
aioredis 2.0.1
aiosmtplib 2.0.1
asgiref 3.6.0
async-timeout 4.0.2
attrs 23.1.0
bcrypt 4.0.1
caldav 1.1.3
certifi 2022.12.7
cffi 1.15.1
chardet 5.1.0
charset-normalizer 3.1.0
cryptography 40.0.2
defusedxml 0.7.1
dj-database-url 2.0.0
Django 3.2.18
django-braces 1.15.0
django-ckeditor 6.3.0
django-filter 22.1
django-js-asset 2.0.0
django-otp 1.1.6
django-phonenumber-field 7.0.2
django-rename-app 0.1.5
django-reversion 5.0.4
django-webpack-loader 1.8.1
django-xforwardedfor-middleware 2.0
djangorestframework 3.14.0
djangorestframework-simplejwt 5.2.2
dnspython 2.3.0
drf-nested-routers 0.93.4
drf-spectacular 0.26.2
feedparser 6.0.10
filelock 3.12.0
gevent 22.10.2
greenlet 2.0.2
html2text 2020.1.16
icalendar 5.0.5
idna 3.4
inflection 0.5.1
jsonfield 3.1.0
jsonschema 4.17.3
lxml 4.9.2
modoboa 2.1.1
modoboa-amavis 1.4.0
modoboa-contacts 0.9.3
modoboa-postfix-autoreply 1.7.1
modoboa-radicale 1.6.3
modoboa-sievefilters 1.6.0
modoboa-webmail 1.7.2
oath 1.4.4
ovh 1.1.0
passlib 1.7.4
phonenumbers 8.13.11
Pillow 9.5.0
pip 23.1.2
pkg_resources 0.0.0
progressbar33 2.4
psycopg2-binary 2.8.6
pycparser 2.21
PyJWT 2.6.0
pypng 0.20220715.0
pyrsistent 0.19.3
python-dateutil 2.8.2
python-magic 0.4.27
pytz 2023.3
pytz-deprecation-shim 0.1.0.post0
PyYAML 6.0
qrcode 7.4.2
recurring-ical-events 2.0.2
redis 4.5.4
reportlab 3.6.13
requests 2.29.0
requests-file 1.5.1
rrdtool 0.1.16
setuptools 57.5.0
sgmllib3k 1.0.0
sievelib 1.2.1
six 1.16.0
sqlparse 0.4.4
tldextract 3.4.1
typing_extensions 4.5.0
tzdata 2023.3
tzlocal 4.3
uritemplate 4.1.1
urllib3 1.26.15
vobject 0.9.6.1
x-wr-timezone 0.0.5
zope.event 4.6
zope.interface 6.0
@Spitfireap commented on GitHub (May 2, 2023):
No worries. I can't reproduce the issue so I'm just rubber ducking here ;).
Can you check if there is a log corresponding to radicale here :
/var/log/supervisor?Also can you try to run this :
and try again ?
@Spitfireap commented on GitHub (May 2, 2023):
Oh and can you post this file plz :
cat /etc/radicale/config?@NABarnes commented on GitHub (May 2, 2023):
Yes, there's a file at /var/log/supervisor/radicale-stdout---supervisor-do_a027l.log but it is empty.
/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py generate_rights --force and then restart doesn't solve the problem.
/etc/radicale/config is as follows:
@NABarnes commented on GitHub (May 2, 2023):
Just a thought - Modoboa is running in a container under Proxmox while I test it out. I can't see that that would cause the problem, but I will try installing in a VM instead (which is how the final install will be anyway).
@NABarnes commented on GitHub (May 2, 2023):
Exactly the same problem running as a VM. I'll try stock Debian next rather than Turnkey Core.
@NABarnes commented on GitHub (May 2, 2023):
After a glitch (I just got a server error at the home page) and a re-install of Stock Debian 11, I still get exactly the same error trying to create a user's calendar.
@Spitfireap commented on GitHub (May 3, 2023):
Does your VM run behind a reverse proxy as well ?
@Spitfireap commented on GitHub (May 3, 2023):
I think you simply need to add this
proxy_pass_header Authorization;to your nginx reverse proxy for modoboa proxy@NABarnes commented on GitHub (May 3, 2023):
Yay, we're there!! Thank you.
OK. So the "ssl_verify_cert=False" line in /srv/modoboa/env/lib/pythonX.X/site-packages/modoboa_radicale/backends/caldav_.py definitely needs to be added (took it out and got an SSL error). And then "proxy_pass_header Authorization;" needs to be added to the nginx configuration.
Thank you for working through this with me.
@Spitfireap commented on GitHub (May 3, 2023):
Nice to hear :)