Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution for timescaledb startup failure #287

Closed
wijnsema opened this issue Mar 6, 2021 · 0 comments · Fixed by #578
Closed

Solution for timescaledb startup failure #287

wijnsema opened this issue Mar 6, 2021 · 0 comments · Fixed by #578

Comments

@wijnsema
Copy link

wijnsema commented Mar 6, 2021

Recently the container timescaledb stopped working, failing with a segmentation fault. More details can be found at timescale/timescaledb-docker#136

This will effect users creating a new (iot)stack with timescaledb and users updating their stack with docker pull. The problem started with timescale 2.0.1-pg12.

There is still no solution to this issue, but a work around is downgrading to 2.0.0-pg12.

To downgrade, add the following lines to the docker-override.yml file:

timescaledb:
    environment: 
    - POSTGRES_PASSWORD=choosepassword
    - POSTGRES_USER=postgres
    image: timescale/timescaledb:2.0.0-pg12

After generating the docker file the complete service looks like this:

timescaledb:
    environment:
    - POSTGRES_PASSWORD=choosepassword
    - POSTGRES_USER=postgres
    image: timescale/timescaledb:2.0.0-pg12
    container_name: timescaledb
    restart: unless-stopped
    ports:
    - "5432:5432"
    volumes:
    - ./volumes/timescaledb/data:/var/lib/postgresql/data
    networks:
    - iotstack_nw

This also solves an earlier issue #232 where the environment variables have a wrong syntax.

Do NOT use the user timescaleuser, this will lead to numerouse errors, just use POSTGRES_USER=postgres

ukkopahis added a commit to ukkopahis/IOTstack that referenced this issue Jun 19, 2022
Implements and resolves SensorsIot#232

Also changes user to reflect the strong recommendation of SensorsIot#287

As %randomPassword% doesn't seem to work, change to use the default
password as listed on Default-Configs.md.

Change default public port from 5433 to avoid port-conflict with posgresql.
ukkopahis added a commit to ukkopahis/IOTstack that referenced this issue Jun 25, 2022
Implements and resolves SensorsIot#232

Also changes user to reflect the strong recommendation of SensorsIot#287

As %randomPassword% doesn't seem to work, change to use the default
password as listed on Default-Configs.md and add support for SensorsIot#505
style variables.

Change default public port from 5433 to avoid port-conflict with posgresql.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant