Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

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

    Kopano Groupware Core
    5
    11
    3302
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hispeed
      hispeed last edited by hispeed

      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,

      1 Reply Last reply Reply Quote 0
      • tjoen
        tjoen last edited by

        Is kopano-server running?

        1 Reply Last reply Reply Quote 0
        • hispeed
          hispeed last edited by hispeed

          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.

          1 Reply Last reply Reply Quote 0
          • jengelh
            jengelh Banned last edited by

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

            1 Reply Last reply Reply Quote 0
            • hispeed
              hispeed last edited by

              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

              1 Reply Last reply Reply Quote 0
              • tjoen
                tjoen last edited by

                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

                1 Reply Last reply Reply Quote 0
                • hispeed
                  hispeed last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • hispeed
                    hispeed last edited by hispeed

                    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.

                    1 Reply Last reply Reply Quote 0
                    • dev107
                      dev107 last edited by dev107

                      Hi there,

                      I’ve a similar issue:

                      Oct  3 15:44:12 server kopano-dagent[24905]: gsoap connect: ()
                      Oct  3 15:44:12 server kopano-dagent[24905]: HrLogon server "file:///var/run/kopano/server.sock" user "SYSTEM": network error
                      Oct  3 15:44:12 server kopano-dagent[24905]: gsoap connect: ()
                      Oct  3 15:44:12 server kopano-dagent[24905]: HrLogon server "file:///var/run/kopano/server.sock" user "User": network error
                      Oct  3 15:44:12 server kopano-dagent[24905]: Unable to connect to storage server for user User, using socket: "file:///var/run/kopano/server.sock"
                      Oct  3 15:44:12 server kopano-dagent[24905]: HRESULT deliver_recipient(pym_plugin_intf*, const char*, bool, FILE*, DeliveryArgs*): HrGetSession failed: network error (80040115)
                      Oct  3 15:44:12 server kopano-dagent[24905]: HRESULT direct_delivery(int, char**, DeliveryArgs&&, FILE*, bool): deliver_recipient failed: network error (80040115)
                      

                      If I change to another server_socket:

                      Oct  3 15:45:34 server kopano-dagent[25197]: gsoap connect: ()
                      Oct  3 15:45:34 server kopano-dagent[25197]: HrLogon server "default:" user "SYSTEM": network error
                      Oct  3 15:45:34 server kopano-dagent[25197]: gsoap connect: ()
                      Oct  3 15:45:34 server kopano-dagent[25197]: HrLogon server "default:" user "User": network error
                      Oct  3 15:45:34 server kopano-dagent[25197]: Unable to connect to storage server for user User, using socket: "default:"
                      Oct  3 15:45:34 server kopano-dagent[25197]: HRESULT deliver_recipient(pym_plugin_intf*, const char*, bool, FILE*, DeliveryArgs*): HrGetSession failed: network error (80040115)
                      Oct  3 15:45:34 server kopano-dagent[25197]: HRESULT direct_delivery(int, char**, DeliveryArgs&&, FILE*, bool): deliver_recipient failed: network error (80040115)
                      Unable to connect to storage server for user User, using socket: "default:"ct  3 15:44:12 server kopano-dagent[24905]: gsoap connect: ()
                      

                      And I’m stuck in the version 8.7.81.164.02d8c6ffb-0+257.1

                      If I upgrade I can’t start kopano-server (see my other post) and if I downgrade all is working fine, even kopano-dagent. But I’ve problems with Umlauts.

                      umgfoin 1 Reply Last reply Reply Quote 0
                      • umgfoin
                        umgfoin @dev107 last edited by

                        @hispeed

                        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

                        No, your fault was, configuring a directory where a fullpath to a socket is required.
                        As Jan already remarked, /var/run/kopanois the parent-directory of server.sock.
                        By commenting out server_socket = file:///var/run/kopano, you enable the defaults for server_socket, which luckily point to the correct location file:///var/run/kopano/server.sock.

                        1 Reply Last reply Reply Quote 0
                        • dev107
                          dev107 last edited by

                          I was able to solve it by upgrading to a newer version.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post