Comments (24)
@compi-tom thx für the suggestion of switching back to v3.39.0 it seems to work.
@JanCizmar do you need more information or was that information enough and the things you wanted to know?
from tolgee-platform.
@JanCizmar I created a new instance with latest as the tag and on first start the container starts without issue, but after a restart the DB doesn't mount correctly and the Tolgee web interface isn't accessible.
from tolgee-platform.
We use the following config:
tolgee:
authentication:
initial-password: $Initial_Password$
initial-username: $Initial_Username$
enabled: true
machine-translation:
google:
api-key: my_google_api_key
smtp:
auth: false
from: Antistasi Translate <$Sender_Mail$>
host: $Mailserver_IP$
password: 'omg/my/password'
port: 25
ssl-enabled: false
username: $Sender_Mail$
rate-limits:
enabled: false
in which these parameters are actually replaced with the depending values:
$Initial_Password$
$Initial_Username$
$Sender_Mail$
$Sender_Mail$
all other values are like in the code block above
from tolgee-platform.
Our docker compose file is the following:
version: '7'
services:
app:
image: tolgee/tolgee:latest
volumes:
- ./data:/data
- ./config.yaml:/config.yaml # <--- this line
ports:
- '25432:25432'
- '8080:8080'
environment:
spring.config.additional-location: file:///config.yaml # <--- this line
from tolgee-platform.
Getting the same error
from tolgee-platform.
Hey guys,
since one of the recent updates tolgee isn't able to connect to the internal postgresql database. We currently run into the issue seen in the attached log: tolgee-log.txt
With Kind Regards Targetingsnake / Antistasi Dev-Team
Hi, as you can see i had the same issue, I investiaged the postgres directory and saw that it had weird permissions it was owned by the user and group 70 which doesnt exist on my server.
I chowned the data/postgres directory to root again and started tolgee up and it worked afterwards. Did you check the permissions of the postgres folder?
from tolgee-platform.
that's kind of interesting can confirm that on my docker as well
total 132K
drwx------ 19 70 root 4.0K Jan 20 16:59 .
drwxr-xr-x 4 root root 4.0K Jul 29 00:39 ..
drwx------ 6 70 70 4.0K Jul 29 00:41 base
drwx------ 2 70 70 4.0K Jan 21 03:00 global
drwx------ 2 70 70 4.0K Jul 27 17:16 pg_commit_ts
drwx------ 2 70 70 4.0K Jul 27 17:16 pg_dynshmem
-rw------- 1 70 70 4.8K Jul 29 00:33 pg_hba.conf
-rw------- 1 70 70 1.6K Jul 27 17:16 pg_ident.conf
drwx------ 4 70 70 4.0K Jan 20 16:59 pg_logical
drwx------ 4 70 70 4.0K Jul 27 17:16 pg_multixact
drwx------ 2 70 70 4.0K Jul 27 17:16 pg_notify
drwx------ 2 70 70 4.0K Jul 27 17:16 pg_replslot
drwx------ 2 70 70 4.0K Jul 27 17:16 pg_serial
drwx------ 2 70 70 4.0K Jul 27 17:16 pg_snapshots
drwx------ 2 70 70 4.0K Jan 8 13:42 pg_stat
drwx------ 2 70 70 4.0K Jan 21 12:58 pg_stat_tmp
drwx------ 2 70 70 4.0K Oct 1 13:01 pg_subtrans
drwx------ 2 70 70 4.0K Jul 27 17:16 pg_tblspc
drwx------ 2 70 70 4.0K Jul 27 17:16 pg_twophase
-rw------- 1 70 70 3 Jul 27 17:16 PG_VERSION
drwx------ 3 70 70 4.0K Dec 8 00:13 pg_wal
drwx------ 2 70 70 4.0K Jul 27 17:16 pg_xact
-rw------- 1 70 70 88 Jul 27 17:16 postgresql.auto.conf
-rw------- 1 70 70 28K Jul 29 00:33 postgresql.conf
-rw------- 1 70 70 24 Jan 20 16:59 postmaster.opts
-rw------- 1 70 70 85 Jan 20 16:59 postmaster.pid
from tolgee-platform.
that's kind of interesting can confirm that on my docker as well
run chown root:root ./data/postgres/ -R
to fix it but from what I see once you restart the container it will break again so something in the current release changes the permission for whatever reason.
from tolgee-platform.
Okay i did the chown
with chown root:root -Rv ./data/postgres/
which does the same, directory permissions afterwards:
total 132K
drwx------ 19 root root 4.0K Jan 21 13:01 .
drwxr-xr-x 4 root root 4.0K Jul 29 00:39 ..
drwx------ 6 root root 4.0K Jul 29 00:41 base
drwx------ 2 root root 4.0K Jan 21 13:01 global
drwx------ 2 root root 4.0K Jul 27 17:16 pg_commit_ts
drwx------ 2 root root 4.0K Jul 27 17:16 pg_dynshmem
-rw------- 1 root root 4.8K Jul 29 00:33 pg_hba.conf
-rw------- 1 root root 1.6K Jul 27 17:16 pg_ident.conf
drwx------ 4 root root 4.0K Jan 21 13:01 pg_logical
drwx------ 4 root root 4.0K Jul 27 17:16 pg_multixact
drwx------ 2 root root 4.0K Jul 27 17:16 pg_notify
drwx------ 2 root root 4.0K Jul 27 17:16 pg_replslot
drwx------ 2 root root 4.0K Jul 27 17:16 pg_serial
drwx------ 2 root root 4.0K Jul 27 17:16 pg_snapshots
drwx------ 2 root root 4.0K Jan 8 13:42 pg_stat
drwx------ 2 root root 4.0K Jan 21 13:02 pg_stat_tmp
drwx------ 2 root root 4.0K Oct 1 13:01 pg_subtrans
drwx------ 2 root root 4.0K Jul 27 17:16 pg_tblspc
drwx------ 2 root root 4.0K Jul 27 17:16 pg_twophase
-rw------- 1 root root 3 Jul 27 17:16 PG_VERSION
drwx------ 3 root root 4.0K Dec 8 00:13 pg_wal
drwx------ 2 root root 4.0K Jul 27 17:16 pg_xact
-rw------- 1 root root 88 Jul 27 17:16 postgresql.auto.conf
-rw------- 1 root root 28K Jul 29 00:33 postgresql.conf
-rw------- 1 root root 24 Jan 21 13:01 postmaster.opts
-rw------- 1 root root 85 Jan 21 13:01 postmaster.pid
and after i started it again:
total 132K
drwx------ 19 70 root 4.0K Jan 21 13:05 .
drwxr-xr-x 4 root root 4.0K Jul 29 00:39 ..
drwx------ 6 70 root 4.0K Jul 29 00:41 base
drwx------ 2 70 root 4.0K Jan 21 13:01 global
drwx------ 2 70 root 4.0K Jul 27 17:16 pg_commit_ts
drwx------ 2 70 root 4.0K Jul 27 17:16 pg_dynshmem
-rw------- 1 70 root 4.8K Jul 29 00:33 pg_hba.conf
-rw------- 1 70 root 1.6K Jul 27 17:16 pg_ident.conf
drwx------ 4 70 root 4.0K Jan 21 13:05 pg_logical
drwx------ 4 70 root 4.0K Jul 27 17:16 pg_multixact
drwx------ 2 70 root 4.0K Jul 27 17:16 pg_notify
drwx------ 2 70 root 4.0K Jul 27 17:16 pg_replslot
drwx------ 2 70 root 4.0K Jul 27 17:16 pg_serial
drwx------ 2 70 root 4.0K Jul 27 17:16 pg_snapshots
drwx------ 2 70 root 4.0K Jan 8 13:42 pg_stat
drwx------ 2 70 root 4.0K Jan 21 13:05 pg_stat_tmp
drwx------ 2 70 root 4.0K Oct 1 13:01 pg_subtrans
drwx------ 2 70 root 4.0K Jul 27 17:16 pg_tblspc
drwx------ 2 70 root 4.0K Jul 27 17:16 pg_twophase
-rw------- 1 70 root 3 Jul 27 17:16 PG_VERSION
drwx------ 3 70 root 4.0K Dec 8 00:13 pg_wal
drwx------ 2 70 root 4.0K Jul 27 17:16 pg_xact
-rw------- 1 70 root 88 Jul 27 17:16 postgresql.auto.conf
-rw------- 1 70 root 28K Jul 29 00:33 postgresql.conf
-rw------- 1 70 root 24 Jan 21 13:05 postmaster.opts
-rw------- 1 70 70 85 Jan 21 13:05 postmaster.pid
and Tolgee didn't start again. But that might be the case cause i run the docker with the rootless mode. Log will follow in a Minute
from tolgee-platform.
i think the 70 might be an user in the docker container? Also here is the new log: new-tolgee-log.txt
Also tested with a copy of the files under the root user, doesn't work either.
from tolgee-platform.
what happens if you do docker compose up -d && chown root:root ./data/postgres/ -R
from tolgee-platform.
that doesn't help either
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
803903a933c0 tolgee/tolgee:latest "ash -c 'java -cp ap…" 2 minutes ago Up 2 minutes (health: starting) 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp, 5432/tcp, 0.0.0.0:25432->25432/tcp, :::25432->25432/tcp tolgee-app-1
and the webpage isn't reachable
from tolgee-platform.
that doesn't help either
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 803903a933c0 tolgee/tolgee:latest "ash -c 'java -cp ap…" 2 minutes ago Up 2 minutes (health: starting) 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp, 5432/tcp, 0.0.0.0:25432->25432/tcp, :::25432->25432/tcp tolgee-app-1
and the webpage isn't reachable
what do the logs say
from tolgee-platform.
@Flo4604
I actually can't get an log like previously as i created them starting the container with docker compose up
and piped the output into tee. So basicly i did docker compose up | tee -a log.txt
. Also a manual check on the webaddress still brings that tolgee isn't reachable.
I don't think it is an issue with the database as i pulled a dump from it after tolgee didn't wanted to start. The database itself seems to be fine. (Did that with the 70:70 permissions)
from tolgee-platform.
Hello!
Can you share this information?
- OS
- Docker version
- From what version you were upgrading Tolgee
- To what version of Tolgee
Thanks a lot!
from tolgee-platform.
OS:
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
with kernel Linux vm-name 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64 GNU/Linux
Dockerversion: Docker version 24.0.7, build afdd53b
Version which i think we're updating from from: v3.41.4
with id 6f499ba09e73
Current Installed Docker-Container image id of tolgee: c492434846d7
Just to be safe i will put here the Dockerimages which are on the host as list down below. I didn't removed any image so that's basicly our update history. We have the problem since roughly 3 week:
REPOSITORY TAG IMAGE ID CREATED SIZE
tolgee/tolgee latest c492434846d7 3 days ago 707MB
tolgee/tolgee <none> 9c691da90358 5 days ago 707MB
tolgee/tolgee <none> 7dffcc02ab8d 2 weeks ago 707MB
tolgee/tolgee v3.43.2 7b0137167f07 3 weeks ago 720MB
tolgee/tolgee v3.42.3 1fe5c16bac20 3 weeks ago 720MB
tolgee/tolgee v3.41.4 6f499ba09e73 4 weeks ago 719MB
tolgee/tolgee <none> 62c265ee984c 6 weeks ago 672MB
tolgee/tolgee <none> f5e8c5dd63da 2 months ago 661MB
tolgee/tolgee <none> 862fc1b7d585 3 months ago 661MB
tolgee/tolgee <none> 237abc90aca0 3 months ago 661MB
tolgee/tolgee <none> 58dee9e131be 6 months ago 661MB
hello-world latest 9c7a54a9a43c 8 months ago 13.3kB
from tolgee-platform.
Hello!
Can you share this information?
- OS
- Docker version
- From what version you were upgrading Tolgee
- To what version of Tolgee
Thanks a lot!
Hi,
Small contribution to this issue. I've been playing with Tolgee for the first time today and encountered the same issue.
OS:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
Docker version:
Client: Docker Engine - Community
Version: 25.0.1
API version: 1.44
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 25.0.1
API version: 1.44 (minimum version 1.24)
Built: Tue Jan 23 23:09:23 2024
OS/Arch: linux/amd64
From what / to what version of Tolgee: None as I started playing with it, it was just an empty shell.
I noticed that from version 3.40.x to the latest, which was posted a few hours ago, restarting the container ends up with the postgresql issue mentioned by @targetingsnake. So I'm currently playing with v3.39.0!
Hope this helps
from tolgee-platform.
Hey! Thanks for the info! I'll try to look into it soon. Sorry for the delay.
from tolgee-platform.
Sorry folks, I still don't have much time to look into that. Hope you've found some workarounds. I guess this happened with the update to the Spring Boot 3, where we also updated out base Dockerfile to align it with the last Postgres 13.
3147302#diff-a7a92e793e13161b58a26c6c1c0445fef52d1b6fd0cc081d71701d0a1ad5c089
However, on the first look I haven't spot anything what would affect the permissions 🤔
from tolgee-platform.
I have the same issue. I tried version 3.38.3 at some point in dev environment when I was testing the platform and I didn't have any issues, I was able to start/restart the container without any problems.
When I started rolling to production I used version 3.43.0 and I was unable to start the container even once (unable to connect to postgres). I was under the impression there was some problem on my end, but after some trial and error I decided to downgrade to the version that I used (3.38.3) and I was able to start it without problem.
BUT after a week in production my translators reported that portal is down. I checked the logs, lo and behold, the same issue came up again. I was unable to restart container after that. Resetting permissions helped, but it's kinda troublesome to do that like every X days :(
If I understand this correctly, 3.38.3 is before spring boot 3 update, so maybe the problem is somewhere else?
OS:
Distributor ID: CentOS
Description: CentOS Linux release 7.9.2009 (Core)
Release: 7.9.2009
Codename: Core
Docker container:
tolgee/tolgee v3.38.3 3ddce2cb557e 2 months ago 672MB
from tolgee-platform.
I'm running into the same problem with latest tag
from tolgee-platform.
@OliverGeneser Do you mean that you updated to latest tag from some other version and you're getting the errors?
from tolgee-platform.
Hey! Since I am super busy now with implementing this, I cannot really dig deeper to find what happens. I've added this documentation section which is a workaround for this.
So you can simply Tolgee to run with external db, which is run separately by docker compose.
If someone is interested into digging deeper and finding a solution, the cause can probably be found in docker/base/Dockerfile
. You can build complete Tolgee image by running ./gradlew docker
, which builds a tagged image tolgee/tolgee:latest
on your local machine.
from tolgee-platform.
It looks like, there is no development to this, so I am closing it. If there are more similar reports, we can reopen it.
from tolgee-platform.
Related Issues (20)
- iOS characters escaping issues HOT 8
- REST API: Translations - Return translations in project endpoint HOT 2
- AI translator enhancement HOT 1
- Allow import XLS and CSV HOT 5
- Activity and notifications HOT 3
- Improvement of Figma plugin HOT 1
- Feature Request: Add config option to select how translation percentages are calculated HOT 3
- 401 error code HOT 3
- Accounts cannot be deleted HOT 2
- Feature: machine translation during import HOT 4
- optimalization, UX pricing
- Single page view not respecting namespace in the url
- Add SSO feature to Cloud and Self-hosted
- Filter improvement HOT 2
- Incorrect request on docs HOT 5
- Data integrity violation error when saving multiple translations
- Connection leak in translation export endpoint HOT 1
- Trying to disable native authentication with `tolgee.authentication.native-enabled`=`false` doesn't work HOT 4
- Integration with Vue 2 HOT 3
- Fix allow text selection in translation tools
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 tolgee-platform.