Bitcoin Forum

Other => Meta => Topic started by: virasog on August 12, 2022, 10:15:49 AM



Title: I come across a Database Error
Post by: virasog on August 12, 2022, 10:15:49 AM
When i try to post, i see a database error. I wonder what is this error about as i did not saw this error before ?

https://i.imgur.com/xndE4rp.png

However it was just one time error, the next time i pressed the post button, the post got published.


Title: Re: I come across a Database Error
Post by: jackg on August 12, 2022, 10:30:08 AM
I think it's one of those errors that's given if there's an error but the server can't diagnose it (or it's a risk to the security of the forum if it does).

It's probably the database receiving too many requests to process at once, an error writing your post on the database or the post not being parsed correctly by the scanner that checks posts for things that are suspicious that just stopped working or was interrupted.


Title: Re: I come across a Database Error
Post by: DdmrDdmr on August 12, 2022, 10:42:45 AM
<...>
It seems that the error pop-up rather seldom, and has been doing so for over a decade (https://bitcointalk.org/index.php?topic=16063.0) on the forum. My gues it that it can’t write to the DB due to a temporary lock of some sort. These things normally get cleared rather quickly and kind of "self-cure" (well, rather, the DB engine takes care of it).

Normally it can occur when there are multiple simultaneous petition that need to access the same internal database page (i.e. concurrent write petitions, a longish read process that escalates to a page or table lock for a few seconds, and so forth).


Title: Re: I come across a Database Error
Post by: PX-Z on August 12, 2022, 10:43:58 AM
Found similar errors[1][2][3] but it's just rarely happens so i guess its just small downtime on the server side. Theymos could see it on the logs but probably won't explain what had happened.

[1] https://bitcointalk.org/index.php?topic=246674.0
[2] https://bitcointalk.org/index.php?topic=2486697.0
[3] https://bitcointalk.org/index.php?topic=2153452.0


Title: Re: I come across a Database Error
Post by: noormcs5 on August 12, 2022, 06:35:48 PM
Found similar errors[1][2][3] but it's just rarely happens so i guess its just small downtime on the server side. Theymos could see it on the logs but probably won't explain what had happened.

[1] https://bitcointalk.org/index.php?topic=246674.0
[2] https://bitcointalk.org/index.php?topic=2486697.0
[3] https://bitcointalk.org/index.php?topic=2153452.0

I checked all of these threads but there has been no solid reason described anywhere. Since this does not happen often, there is no requirement of clarifications.
I believe, that too many people pressing the post button simultaneously may result in this database error.


Title: Re: I come across a Database Error
Post by: Fivestar4everMVP on August 14, 2022, 10:57:40 PM
I believe, that too many people pressing the post button simultaneously may result in this database error.
You are right and this is exactly what I wanted to point out to op after reading the post.
I've had this same experience on several other platforms where so many users trying to use a feature at the same time,  and because the database could or can not handle that amount of request at the same time,  it causes that part of the platform, and sometimes,  the entire platform to crash.
So I believe ops experience is not possibly a database error per say since it was only a one time thing,  and he seems to be the only one that experienced this, this confirms the fact that it is possible that there were several other users clicking the "post" button when op click the button to publish his post.


Title: Re: I come across a Database Error
Post by: Pmalek on August 16, 2022, 09:06:34 AM
[2] https://bitcointalk.org/index.php?topic=2486697.0
This one is different from the other ones you mentioned and the one DdmrDdmr linked to. Although the title says "Database error", it has got nothing to do with a database error of the forum. It's an error message the user Nekeni experienced when he was trying to open his Armory wallet.

Hello,

I got a database error message when trying to launch Armory

"The DB has returned the following error : command checksum failure. Armory will now shut down."


Title: Re: I come across a Database Error
Post by: Welsh on August 16, 2022, 09:11:50 AM
It seems that the error pop-up rather seldom, and has been doing so for over a decade (https://bitcointalk.org/index.php?topic=16063.0) on the forum. My gues it that it can’t write to the DB due to a temporary lock of some sort. These things normally get cleared rather quickly and kind of "self-cure" (well, rather, the DB engine takes care of it).

Normally it can occur when there are multiple simultaneous petition that need to access the same internal database page (i.e. concurrent write petitions, a longish read process that escalates to a page or table lock for a few seconds, and so forth).

Yeah, I run into errors like this quite frequently, and without really looking into it, I suspected it would be along these lines. Especially, when you're doing things quickly, it seems to happen a little more frequently, or taking actions which take a lot longer, like deleting a lot of replies at once.

I never contacted anyone about it, since I suspected that every staff user runs into the error, as I'm not doing anything particularly out of the ordinary. I don't think I've ever run into it outside of that though, except when maybe the old statistics were available to view, but they've been long disabled now.