Back

Server Error: when try delete, update a document

  • 0
  • Self Hosted
  • Databases
Binho.dev πŸ’™
18 Aug, 2023, 12:35

Hi πŸ‘‹, getting this error when try delete or update a document from admin console:

TypeScript
[Error] Timestamp: 2023-08-18T12:29:34+00:00
[Error] Method: DELETE
[Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents/:documentId
[Error] Type: Exception
[Error] Message: Unknown PDO Type for object
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Adapter/MariaDB.php
[Error] Line: 1347
[Error] Timestamp: 2023-08-18T12:30:10+00:00
[Error] Method: DELETE
[Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents/:documentId
[Error] Type: PDOException
[Error] Message: There is already an active transaction
[Error] File: @swoole-src/library/core/Database/PDOProxy.php
[Error] Line: 43
TL;DR
Users are encountering a server error when trying to delete or update a document in the admin console. The error message states "Unknown PDO Type for object" and "There is already an active transaction." Restarting the server temporarily resolves the issue, but it is not a permanent solution. The root cause of the error is unknown. There is a related GitHub issue that may be relevant.
Binho.dev πŸ’™
18 Aug, 2023, 12:35

Server Error: when try delete a document

Binho.dev πŸ’™
18 Aug, 2023, 12:42

Server Error: when try delete, update a document

Drake
18 Aug, 2023, 19:01

any idea how this started? you might need to restart the appwrite container or the appwrite stack

Binho.dev πŸ’™
18 Aug, 2023, 19:39

No... I have to keep restarting the server so that this error doesn't happen, but that's annoying, there are times when I can't delete a document or update it.

Drake
18 Aug, 2023, 19:46

Of course it would be best to try and figure out the root cause

Drake
18 Aug, 2023, 19:46

So far, we don't know the root cause

Binho.dev πŸ’™
18 Aug, 2023, 20:13

it is necessary to investigate

Guille
19 Aug, 2023, 02:49

Are you using relationships?

Binho.dev πŸ’™
20 Aug, 2023, 01:40

Hi, yes...

Binho.dev πŸ’™
20 Aug, 2023, 01:41

Yes, that's about it, I tried to delete a field that is related and this error happens.

Binho.dev πŸ’™
20 Aug, 2023, 01:44

After error, if i try update a field, i get the same error i and need restart appwrite, but cannot delete, first of all i need delete the related field.

Binho.dev πŸ’™
20 Aug, 2023, 01:45

I configured the relationship when deleting to make the object null, but it seems that it doesn't have the effect.

Drake
20 Aug, 2023, 02:31

This might be totally unrelated 🧐 would you be able to create a GitHub issue for this with reproducible steps?

Drake
20 Aug, 2023, 02:32

Maybe this is the same problem: https://github.com/appwrite/appwrite/issues/6012

Binho.dev πŸ’™
21 Aug, 2023, 12:02

In this case it is with attribute.

Pavan
26 Sep, 2023, 12:57

I am facing the same issue with 1.4.3 now..

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more