Hi Kopano-Team,

i’ve seen this problems before with older versions but it still remains within an update to news communit-version i made today.

If i do

systemctl stop kopano-search

then i get the following message:

Stopping Kopano Core Search Engine: 
● kopano-search.service - Kopano Core Search Engine
   Loaded: loaded (/etc/systemd/system/kopano-search.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2018-02-26 12:40:30 CET; 1s ago
     Docs: man:kopano-search(8)
           man:kopano-search.cfg(5)
  Process: 2828 ExecStart=/usr/sbin/kopano-search -F (code=exited, status=1/FAILURE)
 Main PID: 2828 (code=exited, status=1/FAILURE)

Feb 26 12:08:23 kopano systemd[1]: Started Kopano Core Search Engine.
Feb 26 12:40:30 kopano systemd[1]: Stopping Kopano Core Search Engine...
Feb 26 12:40:30 kopano kopano-search[2828]: Terminating on signal 15
Feb 26 12:40:30 kopano systemd[1]: kopano-search.service: Main process exited, code=exited, status=1/FAILURE
Feb 26 12:40:30 kopano systemd[1]: Stopped Kopano Core Search Engine.
Feb 26 12:40:30 kopano systemd[1]: kopano-search.service: Unit entered failed state.

Some additional Information:
/var/log/kopano/search.log

2018-02-26 12:48:29,548 - search - INFO - cannot open config file %s running with defaults
2018-02-26 12:48:29,548 - search - INFO - starting search
2018-02-26 12:48:29,732 - search - INFO - found previous server sync state: 0B000000E78D0000
2018-02-26 12:48:29,792 - search - INFO - starting incremental sync
2018-02-26 12:48:29,934 - query - INFO - listening on socket file:///var/run/kopano/search.sock
2018-02-26 12:48:45,032 - query - INFO - Command: PROPS
2018-02-26 12:48:45,040 - query - INFO - Response: OK:125 100 3102 117 26510 26511 26
2018-02-26 12:49:37,118 - search - INFO - stopping search

cannot open config file ??
It’s the one delivered with new package (core-8.6.80.3_0+79-Debian_9.0-amd64).

Config-File: /etc/kopano/search.cfg

##############################################################
# INDEXED SEARCH SERVICE SETTINGS

# Location of the index files
#index_path = /var/lib/kopano/search/

# run as specific user
#run_as_user         = kopano

# run as specific group
#run_as_group        = kopano

# control pid file
#pid_file            =   /var/run/kopano/search.pid

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

# Limit the number of results returned (0 = don't limit)
# Default: 0
#limit_results = 1000

##############################################################
# CONNECTION TO STORAGE SERVER SETTINGS
#

# Socket to find the connection to the storage server.
# Use https to reach servers over the network
#server_socket = file:///var/run/kopano/server.sock

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

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

##############################################################
# LISTEN SETTINGS
#

# binding address
# To setup for multi-server, use: http://0.0.0.0:port or https://0.0.0.0:port
#server_bind_name = file:///var/run/kopano/search.sock

# File with RSA key for SSL, used then server_bind_name uses https
#ssl_private_key_file = /etc/kopano/search/privkey.pem

# File with certificate for SSL, used then server_bind_name uses https
#ssl_certificate_file = /etc/kopano/search/cert.pem

##############################################################
# 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
# Default: -
log_file = /var/log/kopano/search.log

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


##############################################################
# ADVANCED INDEXED SEARCH SETTINGS

# Back end search engine (currently only xapian is supported)
#search_engine = xapian

# Size of indexing cache (used for indexing only, not for searching)
#term_cache_size = 64M

# Ignore properties upon indexing
# Only override this setting to expand the list
#index_exclude_properties = 007D 0064 0C1E 0075 678E 678F

# Number of indexing processes used during initial indexing
# Setting this to a higher value can greatly speed up initial indexing,
# especially when attachments are indexed.
#index_processes = 1

# Index drafts folder
#index_drafts = yes

# Index junk folder
#index_junk = yes

# Prepare search suggestions ("did-you-mean?") during indexing
# This takes up a large percentage of the used disk space
#suggestions = yes

##############################################################
# ATTACHMENT INDEX SETTINGS

# Should attachments be indexed
#index_attachments = no

# Maximum file size for attachments
#index_attachment_max_size = 5M

I added TimeoutStopSec=180 to Unit-File, to give the service more time to stop. This makes no differences.

systemctl cat kopano-search

# /etc/systemd/system/kopano-search.service
[Unit]
Description=Kopano Core Search Engine
Documentation=man:kopano-search(8) man:kopano-search.cfg(5)

[Service]
Type=simple
Environment=LC_ALL=C LANG=C
ExecStart=/usr/sbin/kopano-search -F
ExecReload=/bin/kill -HUP $MAINPID
TimeoutStopSec=180

[Install]
WantedBy=multi-user.target

Server: Debian_9 64bit
Kopano: core-8.6.80.3_0+79-Debian_9.0-amd64

Regards
Enno