Internal Server error for URL: http://localhost:8090/mr/contact/create

45 views
Skip to first unread message

Mahesh Null

unread,
Jan 27, 2025, 11:19:30 PMJan 27
to rapidpro-dev
Hi, I am doing a custom installation of Rapid Pro. I have a ubuntu server running, postgresql, node, django etc as required. I am running this VM in a virtual box. 
I can login and create workspace and organization. I could also create telegram channel to test. 
But when I try to create flow, server gives me this error. I have also installed golang and mailroom/redis is running fine. Could anyone give me some hints on what could be probable cause of this and where should I debug further? 


ed01f0ae-8e8d-42d2-8983-49f970a367d8.jpg

Rudi Giesler

unread,
Jan 28, 2025, 12:41:26 AMJan 28
to Mahesh Null, rapidpro-dev
Hi

That looks to be a 500 error from mailroom, so you should check the mailroom logs and see what the issue is there.

Regards,
Rudi

--
You received this message because you are subscribed to the Google Groups "rapidpro-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rapidpro-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/rapidpro-dev/0dae8c0e-8a56-4df2-bad9-de949b085fe3n%40googlegroups.com.

Blessing Tsenesa

unread,
Jan 28, 2025, 3:11:52 AMJan 28
to Rudi Giesler, Mahesh Null, rapidpro-dev
Hi

Just out of interest how do I enable logging for mailroom, courier et. Do I include this as an environment variable

Many thanks

Blessing

Rudi Giesler

unread,
Jan 28, 2025, 3:30:17 AMJan 28
to Blessing Tsenesa, Mahesh Null, rapidpro-dev
Hi

Config like "MAILROOM_LOG_LEVEL" and "COURIER_LOG_LEVEL" will set the logging level, by default they are set to WARNING level, which will log all errors and warnings, so errors should be logged already.

Regards,
Rudi

Mahesh Null

unread,
Jan 28, 2025, 3:47:04 AMJan 28
to rapidpro-dev
Thanks a lot. I appreciate your response to this. I want some advice on how to configure the mailroom. 
The documentation at https://github.com/rapidpro/mailroom mentions that mailroom --help should expose the variables needed to be configured and it is also showing them. However, I am not particularly sure where to configure these variables? are there any commands exposed? like mailroom --address 127.0.0.1 or is there a YAML file to write the configs. The source code does not have any such file. If this should be created on which path? 

Rudi Giesler

unread,
Jan 28, 2025, 4:09:15 AMJan 28
to Mahesh Null, rapidpro-dev
Hi

Here's the relevant section from the documentation:

The service uses a tiered configuration system, each option takes precendence over the ones above it:
  1.     The configuration file
  2.     Environment variables starting with MAILROOM_
  3.     Command line parameters
The config library they use is here: https://github.com/nyaruka/ezconf , and has some more information.

The config file defaults to `config.toml`

For example, to configure the log level:
For the configuration file, you create a `config.toml` file, and in it you place: 'log_level = "INFO"'
For the environment variable, you can set it with `export MAILROOM_LOG_LEVEL=INFO`
And for the command line parameter, `./mailroom --log-level INFO`

Regards,
Rudi

Reply all
Reply to author
Forward
0 new messages