-
Notifications
You must be signed in to change notification settings - Fork 900
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
Backup and recovery not working #1797
Comments
Your first issue with the error messages is known/harmless; please see: #1581 For the second issue, in slack you mentioned that your backup was 1.5.1 and the new DB was 1.6.1, is that still the case? You need to restore into the same version of the extension as the backup: so restore into 1.5.1, then upgrade the restored DB from 1.5.1 to 1.6.1. (We are working on a tool to overcome this limitation.) |
i already upgraded the extension of my old_db to 1.6.1, then i took the backup and restoring in to new DB (which too has the version 1.6.1 installed) |
Can you do a Also, what happens when you just |
do you mean SELECT count(*) FROM timescaledb_information.hypertable;?
|
No, I was more curious about the row count in each of your hypertables, to better understand if data was somehow not copied. Are you continuing to see the |
row counts are same in both the DB.. however the size of old DB and new DB is differing size of old DB is below
where as the size of new db is
yes i am seeing the below error even after restarting the DB
|
The size of the db differing is not that surprising you have likely eliminated some table bloat. |
Yes i found the total number of records are same. however some of the indexes are missing in all the tables. example below Old DB: table
where as in the new DB
seems dump fail to fetch all the index (postgress issue) |
Did you get any output about that during pg_restore or pg_dump? |
some error while pg_restore
the corresponding line in sql file is
this states that constraints are not restored.. Note: i have multiple db running in my db instance and i am not restoring all the database, i just wanted to restore one DB |
Any update on this? |
I noticed while re-storing the extensions, it is storing the function name with schema Old DB has following extensions
where as New DB has the schema before the function name
How can we get rid of the schema name while restoring or is there any work around |
i found what the issue was.. all the TSDB functions are restoring under different schema.. to restore all the functions to particular schema, i used the below commands
|
Thank you very much @sshamsudheen This help me to solve my case. |
Hi, Is the issue fixed where you have to restore from the same version? |
Hello,
Yes its been fixed
Regards,
Samsudheen S
…On Tue, Sep 20, 2022 at 6:01 AM Abhinav Srivastava ***@***.***> wrote:
https://docs.timescale.com/latest/using-timescaledb/backup
Hi Is the issue fixed where you have to restore in a same version.
—
Reply to this email directly, view it on GitHub
<#1797 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFNO5EJTMVZOMLBNTW53I3V7ESHHANCNFSM4L34DQBQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
One of my DB is using 1.7.5 extension of timescale and I was doing a restore on extension 2.8.0. I am not able to see any data after the restore |
Hello @dev-elixir, Thank you very much for reaching out. I would like to reproduce this behavior. Is it possible for you to provide the schema you used, some sample data, and the steps you took to perform the backup and restore? |
Hi,
I don’t have the schema, it’s been years now since I did this.
…On Thu 22. Sep 2022 at 12.01, Jan Nidzwetzki ***@***.***> wrote:
Hello @dev-elixir <https://github.com/dev-elixir>,
Thank you very much for reaching out. I would like to reproduce this
behavior. Is it possible for you to provide the schema you used, some
sample data, and the steps you took to perform the backup and restore?
—
Reply to this email directly, view it on GitHub
<#1797 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFNO5CBOPPSNYKVVPYDKVDV7QU73ANCNFSM4L34DQBQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello @sshamsudheen, Thank you very much for your reply. Just to make sure I understand the situation correctly: the problem with your database is completely solved and the problem mentioned by @dev-elixir is a new and independent one? @dev-elixir Please note that restoring a backup with a different version of TimescaleDB not recommended. Please try to restore your backup with the originally used version of TimescaleDB and then upgrade to the latest version of TimescaleDB as described here. If you encounter any problems, please do not hesitate to contact us. |
Dear Author, This issue has been automatically marked as stale due to lack of activity. With only the issue description that is currently provided, we do not have enough information to take action. If you have or find the answers we would need, please reach out. Otherwise, this issue will be closed in 30 days. Thank you! |
I have the same issue. Versions on both servers is 2.8.1. |
Sorry, my fault - I looked at the logs inattentively, it turns out there was not enough disk space. |
Hi @rkakrik! I will close the issue since it seems there are no actions for us to do here. Please re-open if I misunderstood the situation. |
System Information:
OS: Linux ip-10-79-3-192 4.15.0-1063-aws #67-Ubuntu SMP Mon Mar 2 07:24:29 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Psql version: psql (PostgreSQL) 11.7 (Ubuntu 11.7-2.pgdg18.04+1)
Timescale version: 1.6.1
I followed the link (https://docs.timescale.com/latest/using-timescaledb/backup) to recover the DB from backing up the timescaledb.
I ended up many notice and at the end the db is not recovered fully.
pg_dump gave me some notice, after going through various discussion i found the below notices can be ignored
pg_dump -h localhost -U username -p 5434 -Fc -f old_db.back old_db
executed below command to restore
After this i found that the Access privilegs for the new database is missing and hyper table information returns the values which is less comparing to old_db
also selecting chunks from new db gives the below error where it works fine in old_db
may i know where am i making mistake.. or do i missing anything?
The text was updated successfully, but these errors were encountered: