Leantime / docker-leantime

Official Docker Image for Leantime https://leantime.io
GNU Affero General Public License v3.0
190 stars 86 forks source link

Testing Email #76

Open johncadengo opened 5 months ago

johncadengo commented 5 months ago

I followed the documentation here.

Specifically, this is what I ran:

$ docker compose exec -it leantime /bin/sh
/var/www/html # ./bin/leantime email:test

 [ERROR] address parameter needs to be set  

How do I set this parameter correctly?

I have all the settings in the .env filled out. So I'm not sure if my settings are incorrect or if they are not being transferred properly into the configuration.

johncadengo commented 5 months ago

I figured out that you need to pass an email. I tried this at first:

/var/www/html # ./bin/leantime email:test email@email.com

No arguments expected for "email:test" command, got "email@email.com".  

email:test [--address ADDRESS]

This gives more clarity about how to properly run the command, which isn't indicated in the documentation.

Then when I run it properly, it just hangs:

/var/www/html # ./bin/leantime email:test --address email@email.com
Sending a test email using current configuration

It never gets past this command and it's just stuck. How can I debug this?

Increasing the verbosity has no additional debug messages:

/var/www/html # ./bin/leantime email:test --help
Description:
  Sends an email to test system configuration

Usage:
  email:test [options]

Options:
      --address=ADDRESS  Recipient email address
  -h, --help             Display help for the given command. When no command is given display help for the list command
  -q, --quiet            Do not output any message
  -V, --version          Display this application version
      --ansi|--no-ansi   Force (or disable --no-ansi) ANSI output
  -n, --no-interaction   Do not ask any interactive question
  -v|vv|vvv, --verbose   Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug