zokradonh / kopano-docker

Unofficial Kopano Docker images for all Kopano services.
MIT License
59 stars 37 forks source link

fails on restart #322

Closed paladine-raistlin closed 4 years ago

paladine-raistlin commented 4 years ago

Describe the bug zokradonh/kopano_web does not come up on docker-compose down && docker-compose up -d error in logs is docker logs 1dd6a79d0e01 chown: /.kweb/locks: Permission denied chown: /.kweb/acme: Permission denied

To Reproduce Steps to reproduce the behavior: docker-compose down && docker-compose up -d

Custom Modifications modified docker-compose.yml to address error Waiting for file:///var/lib/dbus/machine-id: stat /var/lib/dbus/machine-id: no such file or directory. as per https://github.com/zokradonh/kopano-docker/issues/317

and multiserver .env

# please consult https://github.com/zokradonh/kopano-docker
# for possible configuration values and their impact
CORE_VERSION=latest
WEBAPP_VERSION=latest
ZPUSH_VERSION=latest
KONNECT_VERSION=latest
KWM_VERSION=latest
MEET_VERSION=latest
KDAV_VERSION=latest

LDAP_CONTAINER=kopano_ldap_demo
LDAP_ORGANISATION="Technologies"
LDAP_DOMAIN=mail.tech.ca
LDAP_BASE_DN=dc=mail,dc=tech,dc=ca
LDAP_SERVER=ldap://ldap:389
LDAP_ADMIN_PASSWORD=zxwlYCurLL81hZCrV68vuS
LDAP_READONLY_USER_PASSWORD=lSaNI7i9xP2rLOWzoW2Z
LDAP_BIND_DN=cn=readonly,dc=mail,dc=tech,dc=ca
LDAP_BIND_PW=lSaNI7i9xP2r5mgLOWzoW2Z
LDAP_SEARCH_BASE=dc=mail,dc=tech,dc=ca

# LDAP query filters
LDAP_QUERY_FILTER_USER=(&(kopanoAccount=1)(mail=%s))
LDAP_QUERY_FILTER_GROUP=(&(objectclass=kopano-group)(mail=%s))
LDAP_QUERY_FILTER_ALIAS=(&(kopanoAccount=1)(kopanoAliases=%s))
LDAP_QUERY_FILTER_DOMAIN=(&(|(mail=*@%s)(kopanoAliases=*@%s)))
SASLAUTHD_LDAP_FILTER=(&(kopanoAccount=1)(uid=%s))

# LDAP user password self-service reset settings
SELF_SERVICE_SECRETEKEY=yMV6MiIppi7x3EC413Og8Ia
SELF_SERVICE_PASSWORD_MIN_LENGTH=5
SELF_SERVICE_PASSWORD_MAX_LENGTH=0
SELF_SERVICE_PASSWORD_MIN_LOWERCASE=0
SELF_SERVICE_PASSWORD_MIN_UPPERCASE=0
SELF_SERVICE_PASSWORD_MIN_DIGIT=1
SELF_SERVICE_PASSWORD_MIN_SPECIAL=1

# switch the value of these two variables to use the activedirectory configuration
KCUNCOMMENT_LDAP_1=!include /usr/share/kopano/ldap.openldap.cfg
KCCOMMENT_LDAP_1=!include /usr/share/kopano/ldap.active-directory.cfg

MYSQL_HOST=db
MYSQL_ROOT_PASSWORD=f3UOiJbQ763pa4dXzz
MYSQL_USER=kopano
MYSQL_PASSWORD=o7Ln0EEfbs6VCM7jMQwF
MYSQL_DATABASE=kopano

KCCONF_SERVER_SERVER_NAME=Kopano

POSTMASTER_ADDRESS=admin@tech.ca
MAILBOXLANG=en_US.UTF-8
TZ=America/Toronto

# Defines how Kopano can be accessed from the outside world
FQDN=mail.ech.ca
FQDNCLEANED=mail.tech.ca
DEFAULTREDIRECT=/webapp
EMAIL=ssl@tech.ca
CADDY=2015
HTTP=80
HTTPS=443
LDAPPORT=389
SMTPPORT=25
SMTPSPORT=465
MSAPORT=587
IMAPPORT=143
ICALPORT=8080
KOPANOPORT=236
KOPANOSPORT=237

# Settings for test environments
INSECURE=no

# Docker and docker-compose settings
# Docker Repository to push to/pull from
docker_repo=zokradonh
COMPOSE_PROJECT_NAME=kopano
COMPOSE_FILE=docker-compose.yml:docker-compose.ports.yml:docker-compose.db.yml:docker-compose.ldap.yml:docker-compose.mail.yml:examples/kopano-multiserver/kopano-multiserver.yml:ldap-extras/ldap-extras.yml

# Modify below to build a different version, than the kopano nightly release
#KOPANO_CORE_REPOSITORY_URL=https://serial:REPLACE-ME@download.kopano.io/supported/core:/final/Debian_9.0/
#KOPANO_MEET_REPOSITORY_URL=https://serial:REPLACE-ME@download.kopano.io/supported/meet:/final/Debian_9.0/
#KOPANO_WEBAPP_REPOSITORY_URL=https://serial:REPLACE-ME@download.kopano.io/supported/webapp:/final/Debian_9.0/
#KOPANO_WEBAPP_FILES_REPOSITORY_URL=https://serial:REPLACE-ME@download.kopano.io/supported/files:/final/Debian_9.0/
#KOPANO_WEBAPP_MDM_REPOSITORY_URL=https://serial:REPLACE-ME@download.kopano.io/supported/mdm:/final/Debian_9.0/
#KOPANO_WEBAPP_SMIME_REPOSITORY_URL=https://serial:REPLACE-ME@download.kopano.io/supported/smime:/final/Debian_9.0/
#KOPANO_ZPUSH_REPOSITORY_URL=http://repo.z-hub.io/z-push:/final/Debian_9.0/
#RELEASE_KEY_DOWNLOAD=1
#DOWNLOAD_COMMUNITY_PACKAGES=0

# Additional packages to install
ADDITIONAL_KOPANO_PACKAGES=""
ADDITIONAL_KOPANO_WEBAPP_PLUGINS=""

################################## kopano_server.env

KCCONF_SERVER_ENABLE_HOSTED_KOPANO=YES
KCCONF_LDAP_LDAP_COMPANY_TYPE_ATTRIBUTE_VALUE=kopano-company
fbartels commented 4 years ago

Hi @paladine-raistlin,

is this a new installation or was kopano-docker already running for some time? I've seen the kweb error before after switching the process to running as nobody. The quick fix here is to simply drop the web volume. Its just used to store ssl certificates and these will be recreated on the next start.