[SOLVED] [ 3744] HrLogon server "file:///var/run/kopano" user "SYSTEM": network error

I have installed everything on a testserver and it worked. So I started with the productive. Everything is running. I can recieve E-Mails. Kopano-Core, Webapp, Kopano-Spooler, Kopano-Dagent all are running.

I recieve in the spooler log this error. This is the reason why when I try to send an enmail via webapp it’s not sending it.
I have googled it and tried a lot of stuff. The last idea I have, will be an update but I already use a very new version.

Tue Jul 10 18:59:41 2018: [error  ] [ 3744] gsoap connect: ()
Tue Jul 10 18:59:41 2018: [error  ] [ 3744] HrLogon server "file:///var/run/kopano" user "SYSTEM": network error
Tue Jul 10 18:59:41 2018: [error  ] [ 3744] Unable to open admin session: network error (80040115)
Tue Jul 10 18:59:44 2018: [error  ] [ 3744] gsoap connect: ()
Tue Jul 10 18:59:44 2018: [error  ] [ 3744] HrLogon server "file:///var/run/kopano" user "SYSTEM": network error
Tue Jul 10 18:59:44 2018: [error  ] [ 3744] Unable to open admin session: network error (80040115)

spooler.cfg

##############################################################
# SPOOLER SETTINGS

# Outgoing mailserver name or IP address
smtp_server = localhost

# Port number for outgoing mailserver
smtp_port = 25

# Server Unix socket location
server_socket = file:///var/run/kopano

# drop privileges and run the process as this user
run_as_user =

# drop privileges and run the process as this group
run_as_group =

# create a pid file for stopping the service via the init.d scripts
pid_file = /var/run/kopano/spooler.pid

# run server in this path (when not using the -F switch)
running_path = /var/lib/kopano

# create memory coredumps upon crash [no, systemdefault, yes]
coredump_enabled = no

# for temporary files
# consider mounting a `tmpfs' underneath this path (wherever you
# point it to)
tmp_path = /tmp

##############################################################
# SPOOLER LOG SETTINGS

# Logging method (syslog, file)
log_method = file

# Loglevel (0(none), 1(crit), 2(err), 3(warn), 4(notice), 5(info), 6(debug))
log_level = 6

# Logfile for log_method = file, use '-' for stderr
log_file = /var/log/kopano/spooler.log

# Log timestamp - prefix each log line with timestamp in 'file' logging mode
log_timestamp = yes

# Buffer logging in what sized blocks. 0 for line-buffered (syslog-style).
log_buffer_size = 4096

# Dump raw messages into specified directory before sending to smtpd.
# log_raw_message_path = /tmp
# log_raw_message_stage1 = no

##############################################################
# SPOOLER SSL LOGIN SETTINGS
#
# Note: server_socket must be set to https://servername:portname/
#       to use this type of login method

# Login to the storage server using this SSL Key
#sslkey_file = /etc/kopano/ssl/spooler.pem

# The password of the SSL Key
#sslkey_pass = replace-with-server-cert-password

##############################################################
# SPOOLER THREAD SETTINGS

# Maximum number of threads used to send outgoing messages
max_threads = 5

##############################################################
# SPOOLER FAXING SETTINGS

# When sending an email that must go to a fax address, the address
# will be rewritten to <phonenumber>@<fax_domain>
# fax_domain =

# If the received number starts with a '+', it will be replaced by
# the fax_international value.
# e.g. +3112345678@fax.local will be rewritten to 003112345678@fax.local
# fax_international = +

##############################################################
# SPOOLER DELEGATE SETTINGS
# Set this value to 'yes' to let the spooler always send emails with
# delegates (other user than yourself in the From: header)
# In installations before 6.20, this value was always 'yes'.
# IMPORTANT: This feature overrides "send-as" functionality.
# always_send_delegates = yes

# Set this value to 'no' if you do NOT want to allow redirected e-mails
# being sent with their original 'FROM' header
allow_redirect_spoofing = yes

# Copies the sent mail of delegates and send-as mails in the
# "Sent Items" folder of the representer.
copy_delegate_mails = yes

# Allow to forward and sent a meeting request as delegate Kopano and
# SMTP user.
allow_delegate_meeting_request = yes

# Allow users to send email to the 'everyone' group
allow_send_to_everyone = yes

##############################################################
##############################################################
# SPOOLER OUTPUT SETTINGS

# Set this value to 'yes' to always send meeting request information
#   using TNEF method (winmail.dat attachments).
#   Otherwise, the meeting request information is sent using
#   iCalendar (calendar.ics attachment).
# Mail bodies created in RTF text format will also use TNEF.
always_send_tnef = no

# The us-ascii charset will be upgraded to this charset, to allow more
# use of high-characters.
charset_upgrade = windows-1252

# Request SMTP Delivery Status Notifications if the MTA support it
enable_dsn = yes

##############################################################
# SPOOLER GROUP EXPANSION

# Set this value to 'yes' if groups should be expanded to their
# members; This means that the receiving party will see the names
# of the group members in the To: header for example. If set to
# 'no', the name of the group will appear in the headers.
#
# Note: groups with email addresses are never expanded
expand_groups = no

##############################################################
##############################################################
# SPOOLER ARCHIVING SETTINGS

# Enable archive_on_send to automatically archive all outgoing
# messages.
# This will do nothing if no archive is attached to the source mailbox.
archive_on_send = no

##############################################################
# SPOOLER PLUGIN SETTINGS

# Enable the spooler plugin framework
plugin_enabled = yes

# Path to the spooler plugin manager
plugin_manager_path = /usr/share/kopano-spooler/python

# Path to the activated spooler plugins.
#   This folder contains symlinks to the kopano plugins and custom scripts. The plugins are
#   installed in '/usr/share/kopano-spooler/python/plugins/'. To activate a plugin create a symbolic
#   link in the 'plugin_path' directory.
#
#  $ ln -s /usr/share/kopano-spooler/python/plugins/disclaimer.py /var/lib/kopano/spooler/plugins/disclaimer.py
plugin_path = /var/lib/kopano/spooler/plugins

Any ideas are welcome?

Thanks,

Is kopano-server running?

yes tjoen :=).

● kopano-server.service - Kopano Core Storage Server
   Loaded: loaded (/lib/systemd/system/kopano-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2018-07-10 18:43:57 UTC; 37min ago
     Docs: man:kopano-server(8)
           man:kopano-server.cfg(5)
           man:kopano-admin(8)
 Main PID: 3638 (kopano-server)
    Tasks: 20 (limit: 2322)
   CGroup: /system.slice/kopano-server.service
           └─3638 /usr/sbin/kopano-server -F

Jul 10 18:43:57 svgwma-kopa-01 systemd[1]: Started Kopano Core Storage Server.
Jul 10 18:43:57 svgwma-kopa-01 kopano-server[3638]: Starting kopano-server version 8.6.80 (pid 3638)

EDIT: 2
I can have the same issue on my testserver. Probably something is not started yet on the productive server.

Good luck trying to establish a network connection with… a directory, 'cause that’s what /var/run/kopano normally is.

Ok if I comment it out the error is gone but the mail won’t send. I want to send it to postfix which is running on the same server. What config do you recommend?

I have to say that it’s actually working with: server_socket = file:///var/run/kopano

https://documentation.kopano.io/kopanocore_administrator_manual/configure_kc_components.html#configure-the-kopano-spooler is confusing: default value is /var/run/kopano
man kopano-spooler.cfg says: Default: file:///var/run/kopano/server.sock

It’s not only this confusing ;=).

I have tested with: /var/run/kopano -> same result [error ] [ 3744] HrLogon server “file:///var/run/kopano” user “SYSTEM”: network error

I don’t know what I should do. The setup used to work 2 weeks agon on my testserver and now I have this problem on the new productive and also on the testserver. i have something changed but I don’t know what it was. Probably somwhere in the config.

Solution:

My main fault was probably on the Kopano-User I had the wrong E-Mail Adress. When I created the user I copied the command. I didn’t change the e-mail adress so that’s why postfix couldn’t send the mail.

And I comment out: server_socket = file:///var/run/kopano

This thread can be closed :=), I hope this was the last one.