Comments (8)
Please attach your docker-compose.yml file.
from docker-otrs.
Its the default docker-compose-prod.yml with OTRS_INSTALL: "yes" uncommented.
version: '2'
services:
otrs:
image: juanluisbaptiste/otrs:latest
ports:
- "80:80"
links:
- mariadb:mariadb
- postfix:postfix
volumes_from:
- data-otrs
environment:
OTRS_INSTALL: "yes"
mariadb:
image: juanluisbaptiste/otrs-mariadb:latest
expose:
- "3306"
volumes_from:
- data
environment:
MYSQL_ROOT_PASSWORD: changeme
postfix:
image: juanluisbaptiste/postfix:latest
expose:
- "25"
env_file: credentials-smtp.env
data:
image: centos/mariadb:latest
volumes:
- ./volumes/mysql:/var/lib/mysql
- "/etc/localtime:/etc/localtime:ro"
command: /bin/true
data-otrs:
image: juanluisbaptiste/otrs:latest
volumes:
- ./volumes/config:/opt/otrs/Kernel
- "./otrs/backup:/var/otrs/backups"
- "/etc/localtime:/etc/localtime:ro"
command: /bin/true
from docker-otrs.
You have to make sure the otrs directory of the data volume has write permissions on the host where its mapped to.
from docker-otrs.
I updated the README.md file to be more clear on this.
from docker-otrs.
Please see the following output :
sudo /usr/local/bin/docker-compose up
Starting dockerotrs_postfix_1
Starting dockerotrs_data_1
Starting dockerotrs_data-otrs_1
Starting dockerotrs_mariadb_1
Recreating dockerotrs_otrs_1
Attaching to dockerotrs_data-otrs_1, dockerotrs_postfix_1, dockerotrs_data_1, dockerotrs_mariadb_1, dockerotrs_otrs_1
postfix_1 | postmap: fatal: bad string length 0 < 1: myhostname =
dockerotrs_data-otrs_1 exited with code 0
dockerotrs_data_1 exited with code 0
mariadb_1 | 170103 04:22:12 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
mariadb_1 | 170103 04:22:12 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
otrs_1 | [INFO] Enter
otrs_1 | [INFO] Server is up !
otrs_1 | [INFO] Starting OTRS 5.0.15-01 installer !!
otrs_1 | [INFO] Starting supervisord...
otrs_1 | [INFO] Restarting OTRS daemon...
otrs_1 | 2017-01-03 04:22:14,125 CRIT Supervisor running as root (no user in config file)
otrs_1 | 2017-01-03 04:22:14,172 INFO /var/tmp/supervisor.sock:Medusa (V1.1.1.1) started at Tue Jan 3 04:22:14 2017
otrs_1 | Hostname:
otrs_1 | Port:/var/tmp/supervisor.sock
otrs_1 | Can't locate Encode/Locale.pm in @inc (@inc contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Kernel/System/Encode.pm line 15.
otrs_1 | BEGIN failed--compilation aborted at Kernel/System/Encode.pm line 15.
otrs_1 | Compilation failed in require at Kernel/System/ObjectManager.pm line 29.
otrs_1 | BEGIN failed--compilation aborted at Kernel/System/ObjectManager.pm line 29.
otrs_1 | Compilation failed in require at /opt/otrs/bin/otrs.Daemon.pl line 35.
otrs_1 | BEGIN failed--compilation aborted at /opt/otrs/bin/otrs.Daemon.pl line 35.
otrs_1 | 2017-01-03 04:22:14,293 CRIT Running without any HTTP authentication checking
otrs_1 | 2017-01-03 04:22:14,294 INFO supervisord started with pid 9
otrs_1 | 2017-01-03 04:22:14,294 INFO spawned: 'httpd' with pid 13
otrs_1 | 2017-01-03 04:22:14,296 INFO spawned: 'crond' with pid 14
otrs_1 | 2017-01-03 04:22:14,306 INFO spawned: 'rsyslog' with pid 15
otrs_1 | 2017-01-03 04:22:14,682 INFO exited: httpd (exit status 1; not expected)
otrs_1 | 2017-01-03 04:22:14,682 INFO received SIGCLD indicating a child quit
postfix_1 | /usr/lib/python2.7/site-packages/supervisor/options.py:295: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
postfix_1 | 'Supervisord is running as root and it is searching '
postfix_1 | 2017-01-03 09:22:14,905 CRIT Supervisor running as root (no user in config file)
postfix_1 | 2017-01-03 09:22:14,905 WARN Included extra file "/etc/supervisord.d/postfix.ini" during parsing
postfix_1 | Unlinking stale socket /var/tmp/supervisor.sock
postfix_1 | 2017-01-03 09:22:15,238 INFO RPC interface 'supervisor' initialized
postfix_1 | 2017-01-03 09:22:15,238 CRIT Server 'unix_http_server' running without any HTTP authentication checking
postfix_1 | 2017-01-03 09:22:15,239 INFO supervisord started with pid 11
otrs_1 | 2017-01-03 04:22:15,683 INFO success: crond entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
otrs_1 | 2017-01-03 04:22:15,683 INFO success: rsyslog entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
otrs_1 | 2017-01-03 04:22:15,684 INFO spawned: 'httpd' with pid 19
otrs_1 | 2017-01-03 04:22:15,718 INFO exited: httpd (exit status 1; not expected)
otrs_1 | 2017-01-03 04:22:15,719 INFO received SIGCLD indicating a child quit
postfix_1 | 2017-01-03 09:22:16,241 INFO spawned: 'master' with pid 14
otrs_1 | Can't locate Encode/Locale.pm in @inc (@inc contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Kernel/System/Encode.pm line 15.
otrs_1 | BEGIN failed--compilation aborted at Kernel/System/Encode.pm line 15.
otrs_1 | Compilation failed in require at Kernel/System/ObjectManager.pm line 29.
otrs_1 | BEGIN failed--compilation aborted at Kernel/System/ObjectManager.pm line 29.
otrs_1 | Compilation failed in require at /opt/otrs/bin/otrs.Daemon.pl line 35.
otrs_1 | BEGIN failed--compilation aborted at /opt/otrs/bin/otrs.Daemon.pl line 35.
postfix_1 | 2017-01-03 09:22:17,243 INFO success: master entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
postfix_1 | 2017-01-03 09:22:17,253 INFO exited: master (exit status 1; not expected)
otrs_1 | 2017-01-03 04:22:17,722 INFO spawned: 'httpd' with pid 23
otrs_1 | 2017-01-03 04:22:17,755 INFO exited: httpd (exit status 1; not expected)
otrs_1 | 2017-01-03 04:22:17,755 INFO received SIGCLD indicating a child quit
otrs_1 | 2017-01-03 04:22:20,759 INFO spawned: 'httpd' with pid 24
otrs_1 | 2017-01-03 04:22:20,793 INFO exited: httpd (exit status 1; not expected)
otrs_1 | 2017-01-03 04:22:20,793 INFO received SIGCLD indicating a child quit
otrs_1 | 2017-01-03 04:22:21,794 INFO gave up: httpd entered FATAL state, too many start retries too quickly
from docker-otrs.
Did you try what I said before ?
from docker-otrs.
The permissions are correct as explained in the README. Volumes/mysql is owned by id 27 and volumes/config is owned by id 500 and group id 48.
from docker-otrs.
The error is because the otrs container can't access the host mount of /opt/otrs, thus not finding the configuration files.
from docker-otrs.
Related Issues (20)
- Bad exit status reported to docker HOT 11
- Service 'mariadb' failed to build: unable to find user HOT 3
- procmail routing HOT 10
- Migrating to Znuny HOT 43
- After restoring from standalone 6.0.29 calendar is not working HOT 2
- Changing Timezone to other than UTC corrupts code. HOT 4
- Docker-Images for otrs-mariadb with master-tag seem to be empty HOT 1
- Docker hub seems empty ... HOT 3
- [FEATURE] providing rsync for backups HOT 6
- Setting OTRS_DISABLE_EMAIL_FETCH=no does not re-enable email fetching HOT 3
- Minor version upgrade HOT 6
- provide Ubuntu 20.04 LTS image for otrs? HOT 1
- Feature: upgrade to znuny 6.3? HOT 3
- OTRS_HOSTNAME HOT 1
- upgrade 6.0.28 to 6.0.40 results in jquery errors HOT 16
- Outgoing Email Notifications HOT 1
- quoting of env-variables in /.backup.env is stripped, unexpected behaviour HOT 3
- otrs dockerfile
- Mounting local codebase on container
- vfailed: Can't connect to MySQL server on '127.0.0.1' (111) at /opt/otrs/Kernel/System/DB.pm line 205. otrs_1 | ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SystemConfigurationSyncManager-10 Perl: 5.16.3 OS: linux Time: Wed Feb 14 12:03:53 2024 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-otrs.