Giter VIP home page Giter VIP logo

docker-osticket's Introduction

github.com/tiredofit/docker-osticket

GitHub release Build Status Docker Stars Docker Pulls Become a sponsor Paypal Donate


About

This will build a Docker Image for OSTicket - An open source helpdesk / ticketing system.

  • Automatically installs and sets up installation upon first start

Maintainer

Table of Contents

Prerequisites and Assumptions

  • Assumes you are using some sort of SSL terminating reverse proxy such as:
  • Requires access to a MySQL/MariaDB Server

Installation

Build from Source

Clone this repository and build the image with docker build -t (imagename) .

Prebuilt Images

Builds of the image are available on Docker Hub

docker pull docker.io/tiredofit/osticket:(imagetag)

Builds of the image are also available on the Github Container Registry

docker pull ghcr.io/tiredofit/docker-osticket:(imagetag)

The following image tags are available along with their tagged release based on what's written in the Changelog:

Container OS Tag
Debian :latest

Configuration

Quick Start

The first boot can take from 2 minutes - 5 minutes depending on your CPU to setup the proper schemas.

  • Login to the web server and enter in your admin email address, admin password and start configuring the system!

Persistent Storage

The following directories are used for configuration and can be mapped for persistent storage.

Directory Description
/www/osticket (Not needed as we want to keep base clean, move to a custom/assets approach) Root Directory
/www/logs Nginx and php-fpm logfiles

Environment Variables

Base Images used

This image relies on an Alpine Linux or Debian Linux base image that relies on an init system for added capabilities. Outgoing SMTP capabilities are handlded via msmtp. Individual container performance monitoring is performed by zabbix-agent. Additional tools include: bash,curl,less,logrotate,nano.

Be sure to view the following repositories to understand all the customizable options:

Image Description
OS Base Customized Image based on Debian Linux
Nginx Nginx webserver
PHP-FPM PHP Interpreter
Parameter Description default
INSTALL_SECRET A Large and Random Installation String (Auto Generates on Install if empty)
INSTALL_EMAIL Installer Email (Use different email then ADMIN_EMAIL) [email protected]
INSTALL_NAME Site Name My Helpdesk
ADMIN_FIRSTNAME First name of Admin User
ADMIN_LASTNAME Last name of Admin User
ADMIN_EMAIL Admin Email address (Make sure it is different than INSTALL_EMAIL)
ADMIN_USER Admin Username Must be more than 5 characters
ADMIN_PASS Admin Password
CRON_INTERVAL Amount of time in Minutes to Check Incoming Mail 10
DB_HOST Host or container name of MariaDB Server e.g. osticket-db
DB_PORT MariaDB Port 3306
DB_NAME MariaDB Database name e.g. osticket
DB_USER MariaDB Username for above Database e.g. osticket
DB_PASS MariaDB Password for above Database e.g. password
DB_PREFIX Prefix for Tables ost_
SMTP_HOST SMTP Host postfix
SMTP_PORT SMTP Host Port 25
SMTP_FROM SMTP From Address [email protected]
SMTP_TLS Should TLS be used (0=no 1=yes) 1
SMTP_USER SMTP Authentication user
SMTP_PASS SMTP Authentication password

Networking

The following ports are exposed.

Port Description
80 HTTP

Maintenance

Shell Access

For debugging and maintenance purposes you may want access the containers shell.

bash docker exec -it (whatever your container name is) bash

Support

These images were built to serve a specific need in a production environment and gradually have had more functionality added based on requests from the community.

Usage

  • The Discussions board is a great place for working with the community on tips and tricks of using this image.
  • Consider sponsoring me for personalized support

Bugfixes

  • Please, submit a Bug Report if something isn't working as expected. I'll do my best to issue a fix in short order.

Feature Requests

  • Feel free to submit a feature request, however there is no guarantee that it will be added, or at what timeline.
  • Consider sponsoring me regarding development of features.

Updates

  • Best effort to track upstream changes, More priority if I am actively using the image in a production environment.
  • Consider sponsoring me for up to date releases.

License

MIT. See LICENSE for more details.

References

docker-osticket's People

Contributors

cdhowie avatar dekat avatar eisenheimjelid avatar lemaik avatar snackywell avatar tiredofit avatar wowsel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-osticket's Issues

Uptade 3.5.5 to latest

Do I have to do something special?

I updated the docker and it stopped working, I failed to connect to the BDD, a rollback, that is, going back to the previous version, fixed it.

osticket not compatible with Alpine (musl libc)

There are various errors/warnings from osticket's PHP code resulting in incompatibilities between musl libc and GNU libc. For example, on the "install a new plugin" page, the following PHP notices appear:

Warning: Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE' (this will throw an Error in a future version of PHP) in /www/osticket/include/class.plugin.php on line 253

Warning: A non-numeric value encountered in /www/osticket/include/class.plugin.php on line 253

This is because the GLOB_BRACE flag is not provided by musl's libc and the corresponding functionality is not implemented. See docker-library/php#719.

Admin username error

Dont use admin username with lower than 5 characters osticket will not work

023-06-05.18:46:43 [ERROR] ** [osticket] Admin user need to be 5 characters or greater. Exiting..

I was using "nik" as my admin username on the docker compose file.

Connection with administrator user impossible

Entered to /scp/login.php use the docker-compose values:
ADMIN_USER=deleted
ADMIN_PASS=deleted

What is elsewhere? Or other data?

The user has 5 characters, I also tried the ADMIN_EMAIL

Database is not created with the installation

Hello Everyone,

I have an issue with the creation of the osticket-app. Looks like the system does not create the database when I run the first time the docker-composer.

Does anyone know what should be the possible issue?

Kind Regards

DB Error #1021 - notifications from Docker Image

Hello,

I managed to host osticket in docker, and test it with a few users.

Today, I noticed that the docker service was running very slow, and I started receiving these notifications from the docker image -

[SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'ost_queue' AND TABLE_SCHEMA = DATABASE() ORDER BY ORDINAL_POSITION]

Disk full (/tmp/#sql-temptable-23b-e-c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")<br />
<br />
---- Backtrace ----<br />
#0 (root)/include/mysqli.php(201): osTicket->logDBError('DB Error #1021', '[SELECT COLUMN_...')<br />
#1 (root)/include/class.orm.php(3466): db_query('SELECT COLUMN_N...', true, true)<br />
#2 (root)/include/class.orm.php(3522): MySqlExecutor->execute()<br />
#3 (root)/include/class.orm.php(3265): MySqlExecutor->getRow()<br />
#4 (root)/include/class.orm.php(292): MySqlCompiler->inspectTable('ost_queue')<br />
#5 (root)/include/class.orm.php(255): ModelMeta->inspectFields()<br />
#6 (root)/include/class.orm.php(3017): ModelMeta->getFieldNames()<br />
#7 (root)/include/class.orm.php(1632): MySqlCompiler->compileSelect(Object(QuerySet))<br />
#8 (root)/include/class.orm.php(1844): QuerySet->getQuery()<br />
#9 (root)/include/class.orm.php(1567): ModelInstanceManager->__construct(Object(QuerySet))<br />
#10 (root)/include/class.orm.php(1555): QuerySet->getIterator()<br />
#11 (root)/include/class.queue.php(1447): QuerySet->__call('asArray', Array)<br />
#12 (root)/scp/tickets.php(29): CustomQueue::getHierarchicalQueues(Object(StaffSession))<br />

I'm getting this notification constantly. I have edited the docker-compose.yml to mount another directory as temp storage, to be precise the following changes were made

    volumes:
      - ./data/:/www/osticket
      - ./logs/:/www/logs
      - ./tmp:/tmp # My addition

But it doesn't seem to be helping with the error messages. The tmp directory has two folders inside it as well

tmp
├── nginx
└── state
    ├── 00-startup-init
    ├── 01-timezone-init
    ├── 02-permissions-init
    ├── 03-monitoring
    ├── 03-monitoring-init
    ├── 04-scheduling
    ├── 04-scheduling-init
    ├── 05-logging-init
    ├── 06-messaging-init
    ├── 10-nginx
    ├── 10-nginx-init
    ├── 11-nginx-config-reload-init
    ├── 20-php-fpm
    ├── 20-php-fpm-init
    ├── 30-osticket-init
    ├── 99-container-init
    └── cron
        └── 1672725677

Now I'm getting a 503 ngix bad gateway error. I'm stumped, any help will be appreciated!

Access denied using ADMIN_USER and ADMIN_PASS

I checked the closed issues and followed their suggestions. It's still not working for me.

I am setting up the system in my local environment. I changed the ADMIN_USER and ADMIN_PASS variables to dummy values, but it's not working.

image

I also added the ports property, since I have something else running in port 80.

image

CRON_PERIOD or CRON_INTERVAL

Looking at the docker compose example it uses "CRON_PERIOD=10" but in the documentation it shows "CRON_INTERVAL"
Which one should I use?

Note: It may not be the site to thank but thank you, because it is very easy to get up and running.

osticket-db is not accessible

The power went out and it stayed, I had been using it for a few weeks.
The logs show:

osticket-db           | 2023-06-13.11:56:54 [NOTICE] ** [timezone] Timezone: Setting to 'Europe/Madrid' from 'Etc/GMT'
osticket-db           | 2023-06-13.13:56:55 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix modern'
osticket-db           | 2023-06-13.13:56:55 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
osticket-db           | 2023-06-13.13:56:56 [NOTICE] ** [mariadb] Initializing MariaDB - Please wait..
osticket-db-backup    |                                                                        ,---.
osticket-db-backup    | ,--------.,--.                 ,--.            ,---.    ,--. ,--------.|   |
osticket-db-backup    | '--.  .--'`--',--.--. ,---.  ,-|  |     ,---. /  .-'    |  | '--.  .--'|  .'
osticket-db-backup    |    |  |   ,--.|  .--'| .-. :' .-. |    | .-. ||  `-,    |  |    |  |   |  |
osticket-db-backup    |    |  |   |  ||  |   \   --.\ `-' |    ' '-' '|  .-'    |  |.--.|  |   `--'
osticket-db-backup    |    `--'   `--'`--'    `----' `---'      `---' `--'      `--''--'`--'   .--.
osticket-db-backup    |                                                                        '--'
osticket-db-backup    | Image:  tiredofit/db-backup | Version  3.9.1 Type 'image_changelog' for details
osticket-db-backup    | Repository/Documentation: https://github.com/tiredofit/docker-db-backup/
osticket-db-backup    |
osticket-db-backup    | If this image provides you value  - Consider sponsoring my work for continued
osticket-db-backup    | development, timely updates, and feature requests. Commercial support available.
osticket-db-backup    |
osticket-db-backup    |                     More Info:  https://www.tiredofit.ca
osticket-db-backup    |
osticket-db-backup    | 2023-06-13.11:56:47 [NOTICE] ** [timezone] Timezone: Setting to 'Europe/Madrid' from 'Etc/GMT'
osticket-db-backup    | 2023-06-13.13:56:48 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix modern'
osticket-db-backup    | 2023-06-13.13:56:48 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
osticket-db-backup    | 2023-06-13.13:56:49 [STARTING] ** [monitoring] [1] Starting Zabbix Agent (modern) 6.4.2
osticket-db-backup    | 2023-06-13.13:56:49 [STARTING] ** [scheduling] [1] Starting cron
osticket-db-backup    | 2023-06-13.13:56:54 [INFO] ** [db-backup] Next Backup at 2023-06-14 00:00:00 CEST
osticket-app          | 2023-06-13.13:57:36 [WARN] ** [osticket] MySQL/MariaDB Server 'osticket-db' is not accessible, retrying.. (30 seconds so far)
osticket-app          | 2023-06-13.13:57:41 [WARN] ** [osticket] MySQL/MariaDB Server 'osticket-db' is not accessible, retrying.. (35 seconds so far)
osticket-app          | 2023-06-13.13:57:46 [WARN] ** [osticket] MySQL/MariaDB Server 'osticket-db' is not accessible, retrying.. (40 seconds so far)
osticket-app          | 2023-06-13.13:57:51 [WARN] ** [osticket] MySQL/MariaDB Server 'osticket-db' is not accessible, retrying.. (45 seconds so far)
osticket-app          | 2023-06-13.13:57:56 [WARN] ** [osticket] MySQL/MariaDB Server 'osticket-db' is not accessible, retrying.. (50 seconds so far)
osticket-app          | 2023-06-13.13:58:01 [WARN] ** [osticket] MySQL/MariaDB Server 'osticket-db' is not accessible, retrying.. (55 seconds so far)

It gives the impression that mariadb does not start. Use your docker.

Entering the "machine" database

[tiredofit/mariadb:10.11-4.2.2 14:00:53 /] $ mysql
ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld//mysqld.sock' (2)

error.log

[tiredofit/mariadb:10.11-4.2.2 14:02:21 /logs] $ cat error.log
2023-06-13 13:56:56 0 [Note] Starting MariaDB 10.11.2-MariaDB source revision cafba8761af55ae16cc69c9b53a341340a845b36 as process 896
2023-06-13 13:56:56 0 [Note] InnoDB: Compressed tables use zlib 1.2.13
2023-06-13 13:56:56 0 [Note] InnoDB: Number of transaction pools: 1
2023-06-13 13:56:56 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2023-06-13 13:56:56 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
2023-06-13 13:56:56 0 [Note] InnoDB: Using Linux native AIO
2023-06-13 13:56:56 0 [Note] InnoDB: Initializing buffer pool, total size = 256.000MiB, chunk size = 4.000MiB
2023-06-13 13:56:56 0 [Note] InnoDB: Completed initialization of buffer pool
2023-06-13 13:56:56 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2023-06-13 13:56:56 0 [ERROR] InnoDB: Missing FILE_CHECKPOINT(16894923) at 16894923
2023-06-13 13:56:56 0 [ERROR] InnoDB: Log scan aborted at LSN 16894923
2023-06-13 13:56:56 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2023-06-13 13:56:56 0 [Note] InnoDB: Starting shutdown...
2023-06-13 13:56:56 0 [ERROR] Plugin 'InnoDB' init function returned error.
2023-06-13 13:56:56 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2023-06-13 13:56:56 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2023-06-13 13:56:56 0 [ERROR] Aborting

In dbackup there is nothing... any idea?

I'm surprised it says:
Unknown/unsupported storage engine: InnoDB

○ → docker ps -a | grep tire
38abe1c095ed   tiredofit/osticket                     "/init"                  9 minutes ago   Up 9 minutes              80/tcp, 2020/tcp, 9000/tcp, 10050/tcp                                                                                         osticket-app
580936dbf508   tiredofit/mariadb:10.11                "/init"                  9 minutes ago   Up 9 minutes              2020/tcp, 3306/tcp, 10050/tcp                                                                                                 osticket-db
349926e6703e   tiredofit/db-backup:latest             "/init"                  9 minutes ago   Up 9 minutes              2020/tcp, 10050/tcp                                                                                                           osticket-db-backup

LDAP plugin issue

Hello Guys,

Did anyone have a problem with LDAP plugin ? I can't get it to work. The first thing is that i am getting some PHP warnings while saving changes made on Multi-LDAP Authentication plugin.

Warning: Creating default object from empty value in /www/osticket/include/plugins/multi-ldap/config.php on line 57
Warning: Cannot modify header information - headers already sent by (output started at /www/osticket/include/plugins/multi-ldap/config.php:57) in /www/osticket/include/staff/header.inc.php on line 2
Warning: Cannot modify header information - headers already sent by (output started at /www/osticket/include/plugins/multi-ldap/config.php:57) in /www/osticket/include/staff/header.inc.php on line 3

Despite of the errors above when I give it a try and login - it says in the event log "invalid DN syntax"

image

Cheers
/Radek

docker-compose up gets stuck at [scheduling] [1] Starting cron

I want to deploy osticker over intranet. My config file is modified as follows -

Changing the main URL
- traefik.frontend.rule=Host:172.16.34.64
- traefik.port=911

Disabled the reference to broken mariadb image

Apart from this I've not made any other changes. The process hangs at the below command

osticket-app    | [services.d] starting services
osticket-app    | [services.d] done.
osticket-app    | 2022-08-29-10:52:28 [STARTING] ** [nginx] [1] Starting nginx 1.21.5
osticket-app    | 2022-08-29-10:52:28 [STARTING] ** [monitoring] [1] Starting Zabbix Agent (classic) 5.4.9
osticket-app    | 2022-08-29-10:52:28 [STARTING] ** [php-fpm] [1] Starting php-fpm 7.4.27
osticket-app    | 2022-08-29-10:52:28 [STARTING] ** [scheduling] [1] Starting cron

Leaving it for hours yields no change. Am I missing something?

docker-compose error

@tiredofit
Using the example docker-compose file gives an error due to an incorrect image name.

osticket-db-backup:
    container_name: osticket-db-backup
    image: tiredofit/mariadb-backup

should be

osticket-db-backup:
    container_name: osticket-db-backup
    image: tiredofit/db-backup

Unless there is a mariadb-backup image that you pulled down for some reason.

I've been testing out ticket systems, which is why I noticed this and also commented on the Freescout page.

Missing "/usr/src/plugins/*.phar" files during docker build process

I followed the instructions to build the docker image based on the Dockerfile of this repo, but during the process, I obtained the same output as the last GitHub Actions output on the last build execution:

 > [3/4] RUN set -x &&     cd /usr/src/plugins &&     php make.php hydrate &&     for plugin in $(find * -maxdepth 0 -type d ! -path doc ! -path lib); do cp -r ${plugin} /assets/install/include/plugins; done;     cp -R /usr/src/plugins/*.phar /assets/install/include/plugins/ &&     cd / &&         git clone https://github.com/clonemeagain/osticket-plugin-archiver /assets/install/include/plugins/archiver &&     git clone https://github.com/clonemeagain/attachment_preview /assets/install/include/plugins/attachment-preview &&     git clone https://github.com/clonemeagain/plugin-autocloser /assets/install/include/plugins/auto-closer &&     git clone https://github.com/bkonetzny/osticket-fetch-note /assets/install/include/plugins/fetch-note &&     git clone https://github.com/Micke1101/OSTicket-plugin-field-radiobuttons /assets/install/include/plugins/field-radiobuttons &&     git clone https://github.com/clonemeagain/osticket-plugin-mentioner /assets/install/include/plugins/mentioner &&     git clone https://github.com/philbertphotos/osticket-multildap-auth /assets/install/include/plugins/multi-ldap &&     mv /assets/install/include/plugins/multi-ldap/multi-ldap/* /assets/install/include/plugins/multi-ldap/ &&     rm -rf /assets/install/include/plugins/multi-ldap/multi-ldap &&     git clone https://github.com/clonemeagain/osticket-plugin-preventautoscroll /assets/install/include/plugins/prevent-autoscroll &&     git clone https://github.com/clonemeagain/plugin-fwd-rewriter /assets/install/include/plugins/rewriter &&     git clone https://github.com/clonemeagain/osticket-slack /assets/install/include/plugins/slack &&     git clone https://github.com/ipavlovi/osTicket-Microsoft-Teams-plugin /assets/install/include/plugins/teams &&         touch /var/log/msmtp.log &&     chown nginx:www-data /var/log/msmtp.log &&        apt-get clean &&     rm -rf /var/lib/apt/lists/* &&     rm -rf /tmp/* &&     rm -rf /usr/src/* &&     rm -rf /root/.composer/cache:
#0 0.279 + ' ' cd /usr/src/plugins
#0 0.279 /bin/bash: line 1:  : command not found
#0 0.279 + cp -R '/usr/src/plugins/*.phar' /assets/install/include/plugins/
#0 0.280 cp: cannot stat '/usr/src/plugins/*.phar': No such file or directory
------
WARNING: buildx: failed to get git commit: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Dockerfile:52
--------------------
  51 |         git clone -b develop https://github.com/osTicket/osTicket-plugins /usr/src/plugins
  52 | >>> RUN set -x && \    cd /usr/src/plugins && \
  53 | >>>     php make.php hydrate && \
  54 | >>>     for plugin in $(find * -maxdepth 0 -type d ! -path doc ! -path lib); do cp -r ${plugin} /assets/install/include/plugins; done; \
  55 | >>>     cp -R /usr/src/plugins/*.phar /assets/install/include/plugins/ && \
  56 | >>>     cd / && \
  57 | >>>     \
  58 | >>> # Add Community Plugins
  59 | >>>     ## Archiver
  60 | >>>     git clone https://github.com/clonemeagain/osticket-plugin-archiver /assets/install/include/plugins/archiver && \
  61 | >>>     ## Attachment Preview
  62 | >>>     git clone https://github.com/clonemeagain/attachment_preview /assets/install/include/plugins/attachment-preview && \
  63 | >>>     ## Auto Closer
  64 | >>>     git clone https://github.com/clonemeagain/plugin-autocloser /assets/install/include/plugins/auto-closer && \
  65 | >>>     ## Fetch Note
  66 | >>>     git clone https://github.com/bkonetzny/osticket-fetch-note /assets/install/include/plugins/fetch-note && \
  67 | >>>     ## Field Radio Buttons
  68 | >>>     git clone https://github.com/Micke1101/OSTicket-plugin-field-radiobuttons /assets/install/include/plugins/field-radiobuttons && \
  69 | >>>     ## Mentioner
  70 | >>>     git clone https://github.com/clonemeagain/osticket-plugin-mentioner /assets/install/include/plugins/mentioner && \
  71 | >>>     ## Multi LDAP Auth
  72 | >>>     git clone https://github.com/philbertphotos/osticket-multildap-auth /assets/install/include/plugins/multi-ldap && \
  73 | >>>     mv /assets/install/include/plugins/multi-ldap/multi-ldap/* /assets/install/include/plugins/multi-ldap/ && \
  74 | >>>     rm -rf /assets/install/include/plugins/multi-ldap/multi-ldap && \
  75 | >>>     ## Prevent Autoscroll
  76 | >>>     git clone https://github.com/clonemeagain/osticket-plugin-preventautoscroll /assets/install/include/plugins/prevent-autoscroll && \
  77 | >>>     ## Rewriter
  78 | >>>     git clone https://github.com/clonemeagain/plugin-fwd-rewriter /assets/install/include/plugins/rewriter && \
  79 | >>>     ## Slack
  80 | >>>     git clone https://github.com/clonemeagain/osticket-slack /assets/install/include/plugins/slack && \
  81 | >>>     ## Teams (Microsoft)
  82 | >>>     git clone https://github.com/ipavlovi/osTicket-Microsoft-Teams-plugin /assets/install/include/plugins/teams && \
  83 | >>>     \
  84 | >>> ### Log Miscellany Installation
  85 | >>>     touch /var/log/msmtp.log && \
  86 | >>>     chown nginx:www-data /var/log/msmtp.log && \
  87 | >>>    \
  88 | >>> ## Cleanup
  89 | >>>     apt-get clean && \
  90 | >>>     rm -rf /var/lib/apt/lists/* && \
  91 | >>>     rm -rf /tmp/* && \
  92 | >>>     rm -rf /usr/src/* && \
  93 | >>>     rm -rf /root/.composer/cache
  94 |     
--------------------
ERROR: failed to solve: process "/bin/bash -c set -x && \\    cd /usr/src/plugins &&     php make.php hydrate &&     for plugin in $(find * -maxdepth 0 -type d ! -path doc ! -path lib); do cp -r ${plugin} /assets/install/include/plugins; done;     cp -R /usr/src/plugins/*.phar /assets/install/include/plugins/ &&     cd / &&         git clone https://github.com/clonemeagain/osticket-plugin-archiver /assets/install/include/plugins/archiver &&     git clone https://github.com/clonemeagain/attachment_preview /assets/install/include/plugins/attachment-preview &&     git clone https://github.com/clonemeagain/plugin-autocloser /assets/install/include/plugins/auto-closer &&     git clone https://github.com/bkonetzny/osticket-fetch-note /assets/install/include/plugins/fetch-note &&     git clone https://github.com/Micke1101/OSTicket-plugin-field-radiobuttons /assets/install/include/plugins/field-radiobuttons &&     git clone https://github.com/clonemeagain/osticket-plugin-mentioner /assets/install/include/plugins/mentioner &&     git clone https://github.com/philbertphotos/osticket-multildap-auth /assets/install/include/plugins/multi-ldap &&     mv /assets/install/include/plugins/multi-ldap/multi-ldap/* /assets/install/include/plugins/multi-ldap/ &&     rm -rf /assets/install/include/plugins/multi-ldap/multi-ldap &&     git clone https://github.com/clonemeagain/osticket-plugin-preventautoscroll /assets/install/include/plugins/prevent-autoscroll &&     git clone https://github.com/clonemeagain/plugin-fwd-rewriter /assets/install/include/plugins/rewriter &&     git clone https://github.com/clonemeagain/osticket-slack /assets/install/include/plugins/slack &&     git clone https://github.com/ipavlovi/osTicket-Microsoft-Teams-plugin /assets/install/include/plugins/teams &&         touch /var/log/msmtp.log &&     chown nginx:www-data /var/log/msmtp.log &&        apt-get clean &&     rm -rf /var/lib/apt/lists/* &&     rm -rf /tmp/* &&     rm -rf /usr/src/* &&     rm -rf /root/.composer/cache" did not complete successfully: exit code: 1

System offline / scp login failed

The System is offline / SCP login fails if the environment variable "ADMIN_USER" is equal to or shorter than 5 characters (example: admin)

Please add a note to the variables in readme.md

'osticket-db' is not accessible, retrying..

Used the example yml as written with password variables changed and seeing this error:
osticket-app | [WARN] ** [osticket] MySQL/MariaDB Server 'osticket-db' is not accessible, retrying..

I am not the best with docker networking to understand why.

Additional page not found

Hello,

just start up the container and it works all out of the box. Also need a static page with privacy notes.
So I created a new page with
Admin Panel >> Manage >> Pages >> Add new Page

Set Name:test,
Type: other
status:active

After ADD PAGE, i see "Successfully added test"

image

When I perform the Link

image

https://[servername]/pages/test

I catch 404 from ngnix.

image

But I would expect:

image

Im not sure but it looks like an nginx or php rewrite setting.

My settings: using latetest Image here

image

Thanks for any hints.

Wrong path to cron.php in crontab

I had to change the path to cron.php from /www/osticket/upload/api/cron.php to /www/osticket/api/cron.php because that's the location on a fresh install.

I suggest to update docker-osticket/install/assets/cron/crontab.txt accordingly.

SMTP environmental variables

Hi,

I need to pass through some more SMTP environmental variables to get msmtprc working.
Specifically "auth on" and "tls_starttls on"

These are not listed as supported environmental variables in the documentation so how do I add these?

Thanks

Example docker-compose.yml formatting error

The example docker-compose.yml accidentally introduced an empty labels key

version: '3.7'
services:

  osticket-app:
    image: tiredofit/osticket
    container_name: osticket-app
    labels:
    labels:
      - traefik.enable=true

Running it will throw the following error:

>docker compose up
parsing .\docker-compose.yml: yaml: unmarshal errors:
  line 8: mapping key "labels" already defined at line 7

Problem with DB (DB Error # 1054)

An error is generated when querying. Use your docker-compose.yml without any modification in a sandbox. When a user query is made the error is generated.
Thank you very much for your work, happy to help you.
Greetings
Captura de pantalla de 2021-09-16 22-28-26
Captura de pantalla de 2021-09-16 22-31-56

.

Install fails in bash "wc" command

Hi!

I have tried several tags, 3.5.3, 3.5.2, etc.. all fails with this for me:
2023-05-27.22:59:54 [ERROR] ** [php-fpm] Requested enabling openssl however it doesn't exist! 2023-05-27.22:59:55 [ERROR] ** [php-fpm] Requested enabling session however it doesn't exist! wc: radokristof: No such file or directory /etc/cont-init.d/30-osticket: line 14: [: : integer expression expected sed: -e expression #1, char 22: unterminated s' command`

Only proxy IP is visible in logs

I'm using caddy as a reverse proxy, also CloudFlare DDos protection is used (so generally another proxy).

In docker-compose right now for testing purposes I have this:

   - NGINX_SET_REAL_IP_FROM=0.0.0.0/0

Caddy config is simple:

support.example.com {
        reverse_proxy localhost:8181
}

Thought even this way, I can only see Cloudflare IPs in the logs.
Docker gets IP from 192.168.0.0/16 range, so this is also unique.
If I remove the NGINX_SET_REAL_IP env, I can only see the docker IP address, with this setting Cloudflare proxy IP, but I never seen the real IP in the logs.

What am I missing, what should be configured?

Persistent storage

The README says:

/www/osticket | (Not needed as we want to keep base clean, move to a custom/assets approach) Root Directory

And yes, we should keep the base clean, if we don't do it this way, even a simple update will not work correctly.
However, how can I use the custom/assets approach to install plugins/languages which will be persistent?

Support for single DATABASE_URL env var

I'm trying to install this on Dokku, and like many PaaS systems it provides only a single DATABASE_URL env var.

What is the best way to support this here?

Thank you.

Bootloop in "Starting Zabbix Agent (classic) 5.4.9"

After starting the docker with docker-compose up -d, it never goes beyond that point, it continues indefinitely until I stop it manually.
The database does not have any table created.

Log

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] 00-functions: applying...
[fix-attrs.d] 00-functions: exited 0.
[fix-attrs.d] 01-s6: applying...
[fix-attrs.d] 01-s6: exited 0.
[fix-attrs.d] 02-zabbix: applying...
[fix-attrs.d] 02-zabbix: exited 0.
[fix-attrs.d] 03-logrotate: applying...
[fix-attrs.d] 03-logrotate: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-startup: executing...
[cont-init.d] 00-startup: exited 0.
[cont-init.d] 01-timezone: executing...
[cont-init.d] 01-timezone: exited 0.
[cont-init.d] 02-permissions: executing...
[cont-init.d] 02-permissions: exited 0.
[cont-init.d] 03-monitoring: executing...
2022-01-14-09:43:31 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix classic'
[cont-init.d] 03-monitoring: exited 0.
[cont-init.d] 04-scheduling: executing...
2022-01-14-09:43:31 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
[cont-init.d] 04-scheduling: exited 0.
[cont-init.d] 05-logging: executing...
2022-01-14-09:43:31 [NOTICE] ** [logging] Disabling Log Shipping Functionality
[cont-init.d] 05-logging: exited 0.
[cont-init.d] 06-messaging: executing...
2022-01-14-09:43:31 [NOTICE] ** [messaging] Container configured to route mail via SMTP to 'smtp.gmail.com'
[cont-init.d] 06-messaging: exited 0.
[cont-init.d] 10-nginx: executing...
2022-01-14-09:43:31 [NOTICE] ** [nginx] Disable Nginx FastCGI HTTPS Termination Support
[cont-init.d] 10-nginx: exited 0.
[cont-init.d] 11-nginx-config-reload: executing...
[cont-init.d] 11-nginx-config-reload: exited 0.
[cont-init.d] 20-php-fpm: executing...
2022-01-14-09:43:36 [ERROR] ** [php-fpm] Requested enabling openssl however it doesn't exist!
2022-01-14-09:43:37 [ERROR] ** [php-fpm] Requested enabling session however it doesn't exist!
2022-01-14-09:43:38 [NOTICE] ** [php-fpm] PHP-FPM Preparing to start with the following plugins enabled: apcu bcmath bz2 ctype curl dom exif fileinfo gd iconv imap intl json ldap mbstring mysqli mysqlnd opcache pdo pdo_mysql pgsql phar simplexml tokenizer xml xmlreader xmlwriter
[cont-init.d] 20-php-fpm: exited 0.
[cont-init.d] 30-osticket: executing...
2022-01-14-09:43:39 [NOTICE] ** [osticket] Applying configuration file security
[cont-init.d] 30-osticket: exited 0.
[cont-init.d] 99-container: executing...
[cont-init.d] 99-container: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2022-01-14-09:43:40 [STARTING] ** [nginx] [1] Starting nginx 1.21.5
2022-01-14-09:43:40 [STARTING] ** [monitoring] [1] Starting Zabbix Agent (classic) 5.4.9
2022-01-14-09:43:40 [STARTING] ** [php-fpm] [1] Starting php-fpm 7.4.27
2022-01-14-09:43:40 [STARTING] ** [scheduling] [1] Starting cron
2022-01-14-09:43:41 [STARTING] ** [monitoring] [2] Starting Zabbix Agent (classic) 5.4.9
2022-01-14-09:43:42 [STARTING] ** [monitoring] [3] Starting Zabbix Agent (classic) 5.4.9
2022-01-14-09:43:43 [STARTING] ** [monitoring] [4] Starting Zabbix Agent (classic) 5.4.9
2022-01-14-09:43:44 [STARTING] ** [monitoring] [5] Starting Zabbix Agent (classic) 5.4.9
2022-01-14-09:43:45 [STARTING] ** [monitoring] [6] Starting Zabbix Agent (classic) 5.4.9
...
[s6-finish] sending all processes the KILL signal and exiting.
[s6-finish] sending all processes the TERM signal.
[s6-finish] waiting for services.
[cont-finish.d] done.
[cont-finish.d] executing container finish scripts...
basename: write error: Broken pipe

imagen

Latest OSTicket requires PHP8

Hello there!

Trying to install the latest version of this image (version 3.5.0) it fails to install OSTicket automatically. I simply get the message: "Support Ticket System Offline".

Manually activating the setup process reveals that the PHP version of the image (7.4.33) doesn't meet the requirements of the latest OSTicket version:
Screenshot 2023-04-06 140916

Would it be possible to release a new version with a more recent version of PHP?

Thanks!

ngix 500 error

Hi

i'm trying to use your docker image but i'm always getting a 500 from ngix when i try to access the url of the installation.
Any steps i'm missing?

Regards

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.