[GH-ISSUE #3041] Calendar creation fails with HTTP 504 #1742

Closed
opened 2026-02-27 11:18:53 +03:00 by kerem · 1 comment
Owner

Originally created by @dabis-eu on GitHub (Aug 9, 2023).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3041

Impacted versions

  • OS Type: Debian
  • OS Version: 11
  • Database Type: MySQL
  • Database version: 10.5.19 MariaDB
  • Modoboa: 2.1.2
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

Create simple user and/or Domain Admin. Log in as user. Click 'Calendars' from top bar. Click '+ New calendar'. Enter details and click 'Create'.

Current behavior

New calendar dialog box stays open and calendar is not created.
POST gets sent after about a minute following error is thrown in network console:

POST https://xxx.xxx.eu/api/v1/user-calendars/ 504 vue-resource.esm.js:996
(anonymous) @ vue-resource.esm.js:996
u @ vue-resource.esm.js:192
ce @ vue-resource.esm.js:935
de @ vue-resource.esm.js:1091
(anonymous) @ vue-resource.esm.js:1053
r @ vue-resource.esm.js:1050
_e @ vue-resource.esm.js:1300
Ce.o. @ vue-resource.esm.js:1361
A @ api.js:18
createCalendar @ calendar.js:25
(anonymous) @ vuex.esm.js:851
y.dispatch @ vuex.esm.js:516
dispatch @ vuex.esm.js:406
saveCalendar @ CalendarForm.vue:109
submit @ CalendarForm.vue:1
$n @ vue.runtime.esm.js:3017
n @ vue.runtime.esm.js:1815
Aa.o._wrapper @ vue.runtime.esm.js:7473
/calendars/#/:1 Uncaught (in promise) e {url: '/api/v1/user-calendars/', ok: false, status: 504, statusText: '', headers: e, …}
Promise.then (async)
saveCalendar @ CalendarForm.vue:109
submit @ CalendarForm.vue:1
$n @ vue.runtime.esm.js:3017
n @ vue.runtime.esm.js:1815
Aa.o._wrapper @ vue.runtime.esm.js:7473

If i go to /api/v1/user-calendars/ and try /api/v1/user-calendars/check_token/ i get the following response:

HTTP 405 Method Not Allowed
Allow: POST, OPTIONS
Content-Type: application/json
Vary: Accept

{
"detail": "Method "GET" not allowed."
}

Reading other closed problems with calendar creation i can rule out the following:
Certificate is letsencrypt full chain

/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py generate_rights --force Didn't solve the problem

/var/log/supervisor/radicale-stdout---supervisor-9hqo2x5x.log is empty

"ssl_verify_cert=False" line in /srv/modoboa/env/lib/pythonX.X/site-packages/modoboa_radicale/backends/caldav_.py is added

proxy_pass_header Authorization; is in nginx config (as per installer)

Expected behavior

Window closes and new calendar is created

Video/Screenshot link (optional)

Originally created by @dabis-eu on GitHub (Aug 9, 2023). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3041 # Impacted versions * OS Type: Debian * OS Version: 11 * Database Type: MySQL * Database version: 10.5.19 MariaDB * Modoboa: 2.1.2 * installer used: Yes * Webserver: Nginx # Steps to reproduce Create simple user and/or Domain Admin. Log in as user. Click 'Calendars' from top bar. Click '+ New calendar'. Enter details and click 'Create'. # Current behavior New calendar dialog box stays open and calendar is not created. POST gets sent after about a minute following error is thrown in network console: POST https://xxx.xxx.eu/api/v1/user-calendars/ 504 vue-resource.esm.js:996 (anonymous) @ vue-resource.esm.js:996 u @ vue-resource.esm.js:192 ce @ vue-resource.esm.js:935 de @ vue-resource.esm.js:1091 (anonymous) @ vue-resource.esm.js:1053 r @ vue-resource.esm.js:1050 _e @ vue-resource.esm.js:1300 Ce.o.<computed> @ vue-resource.esm.js:1361 A @ api.js:18 createCalendar @ calendar.js:25 (anonymous) @ vuex.esm.js:851 y.dispatch @ vuex.esm.js:516 dispatch @ vuex.esm.js:406 saveCalendar @ CalendarForm.vue:109 submit @ CalendarForm.vue:1 $n @ vue.runtime.esm.js:3017 n @ vue.runtime.esm.js:1815 Aa.o._wrapper @ vue.runtime.esm.js:7473 /calendars/#/:1 Uncaught (in promise) e {url: '/api/v1/user-calendars/', ok: false, status: 504, statusText: '', headers: e, …} Promise.then (async) saveCalendar @ CalendarForm.vue:109 submit @ CalendarForm.vue:1 $n @ vue.runtime.esm.js:3017 n @ vue.runtime.esm.js:1815 Aa.o._wrapper @ vue.runtime.esm.js:7473 If i go to /api/v1/user-calendars/ and try /api/v1/user-calendars/check_token/ i get the following response: HTTP 405 Method Not Allowed Allow: POST, OPTIONS Content-Type: application/json Vary: Accept { "detail": "Method \"GET\" not allowed." } Reading other closed problems with calendar creation i can rule out the following: Certificate is letsencrypt full chain /srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py generate_rights --force Didn't solve the problem /var/log/supervisor/radicale-stdout---supervisor-9hqo2x5x.log is empty "ssl_verify_cert=False" line in /srv/modoboa/env/lib/pythonX.X/site-packages/modoboa_radicale/backends/caldav_.py is added proxy_pass_header Authorization; is in nginx config (as per installer) # Expected behavior Window closes and new calendar is created # Video/Screenshot link (optional)
kerem closed this issue 2026-02-27 11:18:53 +03:00
Author
Owner

@dabis-eu commented on GitHub (Aug 18, 2023):

Turned out to be a firewall issue on our DMZ Network, ports was blocked
closed

<!-- gh-comment-id:1683447433 --> @dabis-eu commented on GitHub (Aug 18, 2023): Turned out to be a firewall issue on our DMZ Network, ports was blocked closed
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#1742
No description provided.