ergochat / ergo

A modern IRC server (daemon/ircd) written in Go.
https://ergo.chat/
MIT License
2.21k stars 176 forks source link

exit at startup without error message #2087

Closed blackheaven closed 10 months ago

blackheaven commented 10 months ago

I'm trying to use v2.11.1 with this file:

accounts:
  authentication-enabled: true
  multiclient:
    allowed-by-default: true
    always-on: opt-out
    auto-away: opt-out
    enabled: true
  registration:
    allow-before-connect: true
    bcrypt-cost: 4
    email-verification:
      enabled: false
    enabled: true
    throttling:
      duration: 10m
      enabled: true
      max-attempts: 30
channels:
  default-modes: +ntC
  registration:
    enabled: true
datastore:
  autoupgrade: true
  path: /mnt/hannibal_medias/irc/ergochat/ircd.db
debug:
  recover-from-errors: true
enforce-utf8: true
fakelag:
  enabled: false
history:
  autoreplay-on-join: 1
  autoresize-window: 3d
  channel-length: 2048
  chathistory-maxmessages: 100
  client-length: 256
  enabled: true
  restrictions:
    expire-time: 1w
    grace-period: 1h
    query-cutoff: none
  retention:
    allow-individual-delete: false
    enable-account-indexing: false
  tagmsg-storage:
    default: false
    whitelist:
    - +draft/react
    - +react
  znc-maxmessages: 2048
limits:
  awaylen: 390
  channellen: 64
  identlen: 20
  kicklen: 390
  nicklen: 32
  topiclen: 390
lock-file: /mnt/hannibal_medias/irc/ergochat/ircd.lock
logging:
- level: debug
  method: stderr
  type: '* -internal -server'
network:
  name: Barracuda_local_IRC
oper-classes:
  chat-moderator:
    capabilities:
    - kill
    - ban
    - nofakelag
    - relaymsg
    - vhosts
    - sajoin
    - samode
    - snomasks
    - roleplay
    title: Chat Moderator
  server-admin:
    capabilities:
    - rehash
    - accreg
    - chanreg
    - history
    - defcon
    - massmessage
    extends: chat-moderator
    title: Server Admin
opers:
  admin:
    class: server-admin
    hidden: true
    password: $2a$04$jXIJ4gMk3fHLg2UmK.RlYOuzzBQAhqJ6YJKypWl2TqAE/02UMJYLa
    whois-line: is the server administrator
server:
  casemapping: permissive
  check-ident: false
  enforce-utf: true
  forward-confirm-hostnames: false
  ip-cloaking:
    enabled: false
  ip-limits:
    count: false
    throttle: false
  listeners:
    :6502: {}
    :6667: {}
  lookup-hostnames: false
  max-sendq: 1M
  name: local-irc.barracuda.local
  relaymsg:
    enabled: false

However, when I run it, it immediately without error:

warning: the following units failed: ergochat.service

× ergochat.service - Ergo IRC daemon
     Loaded: loaded (/etc/systemd/system/ergochat.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Sun 2023-09-10 09:09:08 CEST; 127ms ago
   Duration: 41ms
    Process: 242148 ExecStart=/bin/ergo run --conf /etc/ergo.yaml (code=exited, status=1/FAILURE)
   Main PID: 242148 (code=exited, status=1/FAILURE)
         IP: 0B in, 0B out
        CPU: 24ms

Sep 10 09:09:08 barracuda systemd[1]: Started Ergo IRC daemon.
Sep 10 09:09:08 barracuda systemd[1]: ergochat.service: Main process exited, code=exited, status=1/FAILURE
Sep 10 09:09:08 barracuda systemd[1]: ergochat.service: Failed with result 'exit-code'.

is there a way to get more details?

thanks.

slingamn commented 10 months ago

As mentioned on #2085, please change the logging type from * -internal -server to something that includes the internal and server categories. The recommended default is * -userinput -useroutput; this should suffice to get the error, but for temporary debugging, * is fine too.

blackheaven commented 10 months ago

My bad, I read it wrong, I thought - was adding them, sorry for that.