Replies: 3 comments
-
It looks like you are not using default postgres user teslamate, check your |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks! I will check and report back |
Beta Was this translation helpful? Give feedback.
0 replies
-
I confirm that's the solution. I had the same error and using the correct user defined in the .env file solved the point |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I get [FATAL: role "teslamate"] does not exist when trying to backup or restore the Teslamate database
Expected behavior
backup or restore without a Fatal error
How to reproduce it (as minimally and precisely as possible):
I destroyed the Droplet on Digital Ocean, started a new Droplet and reinstalled Teslamate using Traefik: same Fatal error
Relevant entries from the logs
Data
For example, to export charge data after January 1, 2020:
$ docker-compose exec database psql teslamate teslamate -c
"COPY (select * from charges where date > '2020-01-01') TO STDOUT WITH CSV HEADER" > charges.csv
gives same error: FATAL: role "teslamate" does not exist
$ docker-compose exec database psql teslamate teslamate -c
"COPY (select * from charging_processes where start_date > '2020-01-01') TO STDOUT WITH CSV HEADER" > charging_processes.csv
gives same error: FATAL: role "teslamate" does not exist
To export drive data after January 1, 2020:
$ docker-compose exec database psql teslamate teslamate -c
"COPY (select id, car_id, drive_id, date, elevation, speed, power, odometer, ideal_battery_range_km, est_battery_range_km, rated_battery_range_km, battery_level, usable_battery_level, battery_heater_no_power, battery_heater_on, battery_heater, inside_temp, outside_temp, fan_status, driver_temp_setting, passenger_temp_setting, is_climate_on, is_rear_defroster_on, is_front_defroster_on from positions where date > '2020-01-20') TO STDOUT WITH CSV HEADER" > positions.csv
gives same error: FATAL: role "teslamate" does not exist
$ docker-compose exec database psql teslamate teslamate -c
"COPY (select * from drives where start_date > '2020-01-01') TO STDOUT WITH CSV HEADER" > drives.csv
gives same error: FATAL: role "teslamate" does not exist
Environment
Beta Was this translation helpful? Give feedback.
All reactions