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

PostgreSQL Archive DB transfer issues. #197

Closed
mesteele opened this issue May 11, 2023 · 4 comments
Closed

PostgreSQL Archive DB transfer issues. #197

mesteele opened this issue May 11, 2023 · 4 comments
Assignees
Labels
bug Something isn't working DB Database Issues invalid This doesn't seem right LCB-TechDebt Issue exists in Legacy Code Base. We inherited it. Prod Observed in Production Environment. Stability Issue impacts or is related to App Stability.
Milestone

Comments

@mesteele
Copy link

mesteele commented May 11, 2023

Item Description Deleting selected events works but moving or copying selected events to the archive database causes the screen to come back as incomplete. This issue only happening in PostgreSQL. The process of moving or copying events does complete, but when the page refreshes. It appears it is trying to close the PostgreSQL database and it has already been closed.
File(s):
Class:
Function:
Similar Issues:
Depends on Issue(s):
Dependency Type:
Misc. Info.:

Expected Behavior:
Current Behavior:
2023-05-11_17-49-13
php_errors.log
u_ex230511.log

@mesteele mesteele changed the title PostgreSQL Moving or Copying events to Archive database causes error PostgreSQL Moving or Copying events to Archive database causes issues May 14, 2023
@mesteele
Copy link
Author

mesteele commented May 18, 2023

This is happening under:
1) PHP 5.6.40 - BASE latest Devl for 8 - adodb 5.20.20 - PostgreSQL 15.2
Log for above.
php_errors5.log

2) PHP 8.2.6 - BASE latest Devl for 8 - adodb 5.22.5 - PostgreSQL 15.2
Log for above.
php_errors8.log

This is not happening under:
3) PHP 5.6.40 - Original 1.4.5 BASE - adodb 5.20.20 - PostgreSQL 15.2
Log for above.
php_errors.log
2023-05-18_18-39-14

The Original 1.4.5 BASE works either Moving or Deleting events to the Archive PostgreSQL 15.2 database with no issues.

For 1 and 2 above I can go back into the archive database, and the event that I either copied or moved is there. So, it does complete the transfer but the fails to come all the way back to the main BASE page. I am using the same database for all three. I just have to use adodb 5.20.20 for PHP 5.

All I did for each of the above was Delete the PHP error log, list the events, select 1 event and used the move.

@NathanGibbs3 NathanGibbs3 added the DB Database Issues label May 19, 2023
@NathanGibbs3
Copy link
Owner

FYI: you 'should' be able to run newer versions of ADOdb on PHP 5x up to a certain point.
See the wiki page on that.
Most of the results on that page have been verified by Travis-CI runs. Where we don't know, the verified column is marked as No.
That may help you, as you would have the benefits of running on newer ADOdb code.

Either way, I'll need to figure our why we lose the PostgreSQL DB connection after the archive DB action.

@NathanGibbs3
Copy link
Owner

This is probably not the cause, however we need to eliminate anything obviously simple.
Are the $db_connect_method settings in your configurations on MySQL & PostgreSQL the same?

@mesteele
Copy link
Author

mesteele commented May 19, 2023

They are both set to:
$db_connect_method = 1;

For PostgreSQL I change the below from 0 to 1 and the extra tables are installed:

/* Use referential integrity
 *   1  : use
 *   0  : ignore (not installed)
 *
 * Note: Only PostgreSQL and MS-SQL Server databases support
 *       referential integrity.  Use the associated
 *       create_acid_tbls_?_extra.sql script to add this
 *       functionality to the database.
 *
 *       Referential integrity will greatly improve the
 *       speed of record deletion, but also slow record
 *       insertion.
 */
$use_referential_integrity = 1;

@NathanGibbs3 NathanGibbs3 self-assigned this May 21, 2023
@NathanGibbs3 NathanGibbs3 added bug Something isn't working invalid This doesn't seem right Prod Observed in Production Environment. LCB-TechDebt Issue exists in Legacy Code Base. We inherited it. Stability Issue impacts or is related to App Stability. labels May 21, 2023
@NathanGibbs3 NathanGibbs3 changed the title PostgreSQL Moving or Copying events to Archive database causes issues PostgreSQL Archive DB transfer issues. May 30, 2023
@NathanGibbs3 NathanGibbs3 added this to the 1.4.6 milestone Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DB Database Issues invalid This doesn't seem right LCB-TechDebt Issue exists in Legacy Code Base. We inherited it. Prod Observed in Production Environment. Stability Issue impacts or is related to App Stability.
Projects
None yet
Development

No branches or pull requests

2 participants