Error on startup: sed: -e expression #1, char 1: unknown command: `A'
lucollab opened this issue · 3 comments
Hey,
when i start the docker container, i get the following log with the error message
sed: -e expression #1, char 1: unknown command:
A'`.
The container is running fine, but I would like to fix this error.
Image: tiredofit/freescout | Version 1.17.37 Type 'image_changelog' for details
Repository/Documentation: https://github.com/tiredofit/docker-freescout/
If this image provides you value - Consider sponsoring my work for continued
development, timely updates, and feature requests. Commercial support available.
More Info: https://www.tiredofit.ca
2023-10-09.20:42:20 [NOTICE] ** [timezone] Timezone: Setting to 'Europe/Berlin' from 'Etc/GMT'
2023-10-09.22:42:20 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix modern'
2023-10-09.22:42:21 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
2023-10-09.22:42:21 [NOTICE] ** [messaging] Container configured to route mail via SMTP to 'postfix-relay'
2023-10-09.22:42:21 [NOTICE] ** [nginx] Enable Nginx FastCGI HTTPS Termination Support
2023-10-09.22:42:22 [NOTICE] ** [php-fpm] Creating sample index.php
2023-10-09.22:42:23 [WARN] ** [freescout] Potential New Installation / Standalone Installation Detected - Copying Freescout Sourcecode
2023-10-09.22:42:24 [WARN] ** [freescout] Detected /data directory. Persistently saving settings/sessions/cache/uploads/modules
2023-10-09.22:42:24 [INFO] ** [freescout] Auto Configuring based on Environment Variables
sed: -e expression #1, char 1: unknown command: `A'
2023-10-09.22:42:25 [WARN] ** [freescout] Installing Modules into container
2023-10-09.22:42:25 [WARN] ** [freescout] Running any Database Migrations
2023-10-09.22:42:26 [INFO] ** [freescout] Initialization Complete. Please visit https://ticket.domain.de and login with your credentials..
2023-10-09.22:42:27 [STARTING] ** [nginx] [1] Starting nginx 1.25.2
2023-10-09.22:42:27 [STARTING] ** [php-fpm] [1] Starting php-fpm 8.2.10
2023-10-09.22:42:27 [STARTING] ** [monitoring] [1] Starting Zabbix Agent (modern) 6.4.7
2023-10-09.22:42:27 [STARTING] ** [scheduling] [1] Starting cron
my docker compose file looks like this:
version: '2'
services:
freescout-app:
image: tiredofit/freescout:latest
container_name: freescout-app
ports:
- 8081:80
links:
- freescout-db
volumes:
- ./data:/data
- ./logs/:/www/logs
env_file:
- .env
environment:
- NO_PROXY=localhost
- CONTAINER_NAME=freescout-app
- ACTIVITY_LOGGER_DELETE_RECORDS_OLDER_THAN_DAYS=1
- DB_HOST=freescout-db
- DB_NAME=freescout
- DB_USER=freescout
- DB_PASS=jsdo-secret
- SITE_URL=https://ticket.domain.de
- ADMIN_EMAIL=mail@domain.de
- ADMIN_PASS=Hasn-secret
- ENABLE_SSL_PROXY=FALSE
- NGINX_ENABLE_FASTCGI_HTTPS=TRUE
- APP_FORCE_HTTPS=TRUE
- DISPLAY_ERRORS=FALSE
- TIMEZONE=Europe/Berlin
restart: always
freescout-db:
image: tiredofit/mariadb
container_name: freescout-db
volumes:
- ./db:/var/lib/mysql
environment:
- ROOT_PASS=k2j-secret
- DB_NAME=freescout
- DB_USER=freescout
- DB_PASS=jsdo-secret
- CONTAINER_NAME=freescout-db
restart: always
freescout-db-backup:
container_name: freescout-db-backup
image: tiredofit/db-backup
links:
- freescout-db
volumes:
- ./dbbackup:/backup
environment:
- CONTAINER_NAME=freescout-db-backup
- DB_HOST=freescout-db
- DB_TYPE=mariadb
- DB_NAME=freescout
- DB_USER=freescout
- DB_PASS=jsdo-secret
- DB_DUMP_FREQ=1440
- DB_DUMP_BEGIN=0000
- DB_CLEANUP_TIME=8640
- COMPRESSION=BZ
- MD5=TRUE
- CONTAINER_ENABLE_MONITORING=FALSE
restart: always
i have a .env file with the following content:
ACTIVITY_LOGGER_DELETE_RECORDS_OLDER_THAN_DAYS=1
ACTIVITY_LOGGER_ENABLED=false
What could be the problem with my Env-Variables?
Thank you very much for your help!
Kind regards
Luke
I have the same problem too and it seems to come from this file, inside the container: /etc/cont-init.d/30-freescout
at line 233
:
## Removals
# 1.8.78
sed -i --follow-symlinks "APP_FORCE_HTTP=/d" "${NGINX_WEBROOT}"/.env
Also, I have another related issue to report here: there is a missing dollar curly-brace at line 7
in this file /assets/defaults/30-freescout
:
APP_X_FRAME_OPTIONS=:-"TRUE"}
Thanks for doing the investigation and finding the source! I have a new release 1.17.47
being built:
https://github.com/tiredofit/docker-freescout/releases/tag/1.17.47
Please let me know if this new version resolves..
Can confirm it is ok now, thank you!