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

[server] Db objects are not recreated upon server restart #1093

Closed
pinghe opened this issue May 13, 2024 · 2 comments · Fixed by #1095
Closed

[server] Db objects are not recreated upon server restart #1093

pinghe opened this issue May 13, 2024 · 2 comments · Fixed by #1095
Assignees
Labels

Comments

@pinghe
Copy link
Contributor

pinghe commented May 13, 2024

I attempted the following sequence:

  1. user_login_admin
  2. admin_user_add
  3. user_logout
  4. User_login
  5. db_add
  6. user_logout
  7. user_login_admin
  8. admin_shutdown

Then, upon restarting the agdb_server:
a. user_login
b. db_list --- error, indicating the database was not found.

However, if after the db_add step in the initialization process, I add:
5.1. db_backup

And after restarting the agdb_server, I then add:
a.1. db_restore
after the user_login step, everything works normally.

Is this a requirement, or is it a malfunction?

@michaelvlach michaelvlach self-assigned this May 14, 2024
@michaelvlach michaelvlach moved this to In Progress in agdb May 14, 2024
@michaelvlach michaelvlach changed the title [db] What is the correct initial process for the database? [server] What is the correct initial process for the database? May 14, 2024
@michaelvlach
Copy link
Collaborator

It is a genuine issue. The dbs are stored in the internal database but the db objects are not being recreated upon restart of the server. The backup/restore works because it does create new db object. Let me fix it.

@michaelvlach michaelvlach changed the title [server] What is the correct initial process for the database? [server] Db objects are not recreated upon server restart May 14, 2024
michaelvlach added a commit that referenced this issue May 14, 2024
* Update misc_routes.rs

* Update misc_routes.rs

* Update db_pool.rs
@github-project-automation github-project-automation bot moved this from In Progress to Done in agdb May 14, 2024
@michaelvlach
Copy link
Collaborator

This is now fixed and released in version 0.6.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants