jamesrwhite / minicron

🕰️ Monitor your cron jobs
GNU General Public License v3.0
2.34k stars 154 forks source link

Connection error & Connect ok but jobs run failed #252

Closed crazw closed 6 years ago

crazw commented 7 years ago

Hello, I have two questions to ask for help, Thank you very much!

wechatimg32

Wating for your help. Thank you very much.



# this is my minicron.toml
[root@es04 ~]# cat /etc/minicron.toml
# Example config file

# Global options
verbose = false
debug = false # Useful for debugging

# Client options
[client]
  [client.server]
  scheme = "http" # [http, https]
  host = "10.47.113.207"
  port = 9292
  path = "/"
  connect_timeout = 5
  inactivity_timeout = 5
  # CLI options
  [client.cli]
  mode = "line" # [line, char]
  dry_run = false

# Server options
[server]
host = "10.47.113.207"
port = 9292
path = "/"
pid_file = "/tmp/minicron.pid"
  [server.session]
  name = "minicron.session"
  domain = "10.47.113.207"
  path = "/"
  ttl = 86400
  secret = "crazw"
  [server.database]
  type = "mysql" # [mysql, postgresql, sqlite]
  # The options below are for mysql and postgresql only
  host = "127.0.0.1"
  database = "minicron"
  username = "root"
  password = ""
  [server.ssh]
  connect_timeout = 10

# Alerting options
[alerts]
  [alerts.email]
  enabled = false
  # from = "from@example.com" # "Your Name <from@example.com>" syntax is also supported
  # to = "to@example.com"
    [alerts.email.smtp]
    address = "localhost" # "smtp.gmail.com" for gmail
    port = 25 # 587 for gmail
    # domain = "your.domain.name"
    # user_name = "username@email.com"
    # password = "password"
    # authentication = "plain"
    enable_starttls_auto = true

  [alerts.sms]
  enabled = false
  # from = "+442222222222"
  # to = "+443333333333"
    [alerts.sms.twilio]
    # account_sid = "YOUR_TWILIO_ACCOUNT_SID"
    # auth_token = "YOUR_TWILIO_AUTH_TOKEN"

  [alerts.pagerduty]
  enabled = false
  # service_key = "YOUR_PAGERDUTY_SERVICE_KEY"

  [alerts.aws_sns]
  enabled = false
  # secret_access_key = "YOUR_SECRET_ACCESS_KEY"
  # access_key_id = "YOUR_ACCESS_KEY_ID"
  # region = "AWS_REGION"
  # topic_arn = "YOUR_SNS_TOPIC_ARN"
mrzewucki commented 6 years ago

Hi,

I had the same issue and the following symlink helped: ln -s /root/.ssh /.ssh

Not sure, but either it is related with server.session.path or it is a bug.

Regards.