GithubHelp home page GithubHelp logo

Comments (8)

juanluisbaptiste avatar juanluisbaptiste commented on July 28, 2024

Please attach your docker-compose.yml file.

from docker-otrs.

vijaykhurana avatar vijaykhurana commented on July 28, 2024

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.

juanluisbaptiste avatar juanluisbaptiste commented on July 28, 2024

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.

juanluisbaptiste avatar juanluisbaptiste commented on July 28, 2024

I updated the README.md file to be more clear on this.

from docker-otrs.

vijaykhurana avatar vijaykhurana commented on July 28, 2024

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.

juanluisbaptiste avatar juanluisbaptiste commented on July 28, 2024

Did you try what I said before ?

from docker-otrs.

vijaykhurana avatar vijaykhurana commented on July 28, 2024

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.

juanluisbaptiste avatar juanluisbaptiste commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.