Code::Blocks Forums

User forums => Help => Topic started by: gd_on on March 27, 2021, 07:46:19 pm

Title: Is there a problem on forums?
Post by: gd_on on March 27, 2021, 07:46:19 pm
I can use the forums normally from my phone. But from my PC,  using Firefox, Edge or Chrome it's not usable because I obtain often a Database Error, telling me to report this To an administrator. I tried several things as changing user, resetting the cache... until now nothing works except my phone browser !
Title: Re: Is there a problem on forums?
Post by: Miguel Gimenez on March 27, 2021, 07:58:54 pm
Works OK here with Firefox 87 on Windows 7 and Windows 10
Title: Re: Is there a problem on forums?
Post by: BlueHazzard on March 28, 2021, 09:07:19 pm
Works also nice for me...
Title: Re: Is there a problem on forums?
Post by: ollydbg on March 29, 2021, 01:40:45 pm
works OK here, either from phone or Windows 7 with Firefox.
Title: Re: Is there a problem on forums?
Post by: gd_on on March 29, 2021, 03:25:53 pm
I continue to have problems and now also from my phone. I have the feeling that it comes from my internet link because it's happen when i use my box. This message is written directly using mobile data on my phone and stopping wifi connection. Quite strange because only the connection to codebblocks forums has this Database Error. All other Internet links work...
Title: Re: Is there a problem on forums?
Post by: New Pagodi on March 29, 2021, 11:26:28 pm
I also can't read the forum.  If I clear the site data and log in again, I can load maybe 1 page before I get nothing but database error messages.
Title: Re: Is there a problem on forums?
Post by: ollydbg on March 30, 2021, 12:40:30 am
I see some icon issue:

Do you guys have your own forum icon?
I see most of the forum users have a "Question mark icon". For example, in this thread,  New Pagodi, gd_on, BlueHazzard and Miguel Gimenez's icon are all question marks.
I can see my own icon shown correctly.
Title: Re: Is there a problem on forums?
Post by: gd_on on March 30, 2021, 10:00:34 am
I have no avatar set (no icons) . But some other users have the same configuration and forums work for them. More, if you see a question mark you see the forums with the new look? For me, that was the case last week during 3 or 4 days but now i see them with the old look. But this is not the real problem even if i don't see in my profile if i can change that. As told before the only way i found to communicate with forums is through mobile data on my phone... it's realy tedious!
Title: Re: Is there a problem on forums?
Post by: Commaster on March 30, 2021, 11:40:30 am
Could you hook your PC to the mobile data and open the forum like that? I suspect your ISP might be doing something...

In an ideal situation you could compare the network requests and the received page contents via your ISP and your mobile data.
Title: Re: Is there a problem on forums?
Post by: gd_on on March 30, 2021, 12:21:48 pm
Yes, I'm able to connect to the C::B forums through mobile data of my phone. But I have to do that from an other PC because my main one is a desktop without bluetooth !
On that other PC, a laptop, I have to connect it to my phone via bluetooth, declare my phone to share the internet connection via mobile data.
OK ... but it's also tedious, and apparently I'm not alone with this problem : New Pagody seems to have the same problem. And of course, only guys able to connect to forums can tell you that they have a problem ! Sometimes, it seems to work, but in the "best" case, after filling a new post, you obtain this Database Error when clicking on the "post" button ! very frustrating !
Title: Re: Is there a problem on forums?
Post by: oBFusCATed on March 30, 2021, 08:56:12 pm
"Database Error" sounds like something failing on the server, which doesn't seem like something related to the connection between you and the server.
Title: Re: Is there a problem on forums?
Post by: gd_on on March 31, 2021, 10:06:25 am
I agree with you.
But why using mobile data from my phone works and standard internet access from my PCs does not (laptop, desktop and even my phone if I use Wifi to use my box). Not easy to understand.
It's also true that this happend after the switch to a new forum look, and switch back to the old look. But, is it related ?
More, I obtain also this "database error" when I am connected as a guest, not with my account.
I have also remarked that at the bottom of the main forums page, I can see that the number of guest is generally quite high but the number of registered connected users is generally very low (2 or 3 max). If I remember well, it was not like that. But this is just a feeling, maybe. Have you connection statistics to see this: This may indicate some connections problems.

PS : re-reding https://forums.codeblocks.org/index.php/topic,24422.msg166571.html#msg166571, I see how to switch between forum looks. But, the problem is not there !
Title: Re: Is there a problem on forums?
Post by: gd_on on March 31, 2021, 07:27:26 pm
An interesting test : on the SMF forum itself, for example on https://www.simplemachines.org/community/index.php, I have no such problems. So, my feeling is that there is something wrong on the C::B forum server. A problem during last week migration maybe.
Title: Re: Is there a problem on forums?
Post by: gd_on on April 01, 2021, 03:50:15 pm
May be I have found a way to make it work again on my PC. Just a workaround ?
In the configuration of my Ethernet card, I desactivated Internet protocol IpV6 to keep only IpV4 activated. Like that, it seems it work. Very strange !
Title: Re: Is there a problem on forums?
Post by: BlueHazzard on April 01, 2021, 03:51:21 pm
My ISP does not have ipv6 so i can not test this...
Title: Re: Is there a problem on forums?
Post by: Commaster on April 01, 2021, 04:52:29 pm
This could very well be the reason, I also don't have an IPv6 address... Hmmm!
Title: Re: Is there a problem on forums?
Post by: New Pagodi on April 01, 2021, 06:11:12 pm
ipv6 does seem to be the problem.  Based on this post (https://www.reddit.com/r/ipv6/comments/a1srbp/firefox_addon_to_downgrade_ipv6_website_to_ipv4/), in firefox's about:config page, I created the new field

Code
network.dns.ipv4OnlyDomains
and set its value to

Code
forums.codeblocks.org
and I can browse the forum again.

Title: Re: Is there a problem on forums?
Post by: gd_on on April 01, 2021, 07:56:31 pm
Cool for firefox. Do you know how to do the same configuration in other browsers : chrome, Edge, ... Of course, in Ethernet configuration, but it switch off all ipv6, so less elegant !

Also, an other problem, but on the wiki this time. I  can navigate it, but I can't connect to the wiki (in case I want to modify/add something) : top button "Anonymous" does not do anything. Did I forget something (how to connect) or is it a migration problem ?
Title: Re: Is there a problem on forums?
Post by: Miguel Gimenez on April 01, 2021, 08:48:39 pm
From the news, https://www.codeblocks.org/post/infrastructure-migration/ (https://www.codeblocks.org/post/infrastructure-migration/):

Quote
During the migration, the forums will be in maintenance mode (no new posts) and the wiki will be in read-only mode.

Looks like it is still in read only mode.
Title: Re: Is there a problem on forums?
Post by: MaxGaspa on April 01, 2021, 09:17:57 pm
In the last few weeks I had a lot of with the CB   forum using Win7 and Firefox (latest) but no issues using Win10 and Edge (latest). I fix my issues on Win7 using the instruction in

https://support.mozilla.org/en-US/kb/firefox-cant-load-websites-other-browsers-can#w_ipv6

I set in about:config

network.dns.disableIPv6


to

true

and now everything is working fine.

Hope this helps
Title: Re: Is there a problem on forums?
Post by: Commaster on April 02, 2021, 05:39:38 am
I suspect the server code is asking Cloudflare for the origin IPv4 and getting an empty result back when the connection is purely IPv6, which leads to the database error when the server is trying to track active users/guests. (I had this issue in a different project using Cloudflare, we had to ignore IPv6 users in the end...)
Title: Re: Is there a problem on forums?
Post by: Commaster on April 07, 2021, 05:32:14 pm
"Forum stats" panel really doesn't like quotes:
Code
Latest Post: "Re: Error "quotThe project ..."
there's an extra "quot" word.
The original post name is
Code
Re: Error "The project file does not exist ..." when trying to open multiple project
Title: Re: Is there a problem on forums?
Post by: sodev on April 15, 2021, 04:50:56 pm
After running this for some time now, i can confirm that i am still affected by that Database Error problem. Basically i can open a few threads, then i am greeted with the message:

Code
Database Error
Please try again. If you come back to this error screen, report the error to an administrator.

Using the above mentioned method to enforce the usage of IPv4 for forums.codeblocks.org solves the issue for me on the Desktop. However, i cannot change this setting on my mobile browser so i am still locked out on my mobile phone. This is the only website i experience this problem so im pretty sure this is a problem on your side. What i do not understand is why aren't there more reports about this? IPv6 connections should be pretty common these days, there should be more people affected?
Title: Re: Is there a problem on forums?
Post by: Miguel Gimenez on April 15, 2021, 07:02:46 pm
At least now the IP shown when posting is correct.
Title: Re: Is there a problem on forums?
Post by: ollydbg on April 17, 2021, 05:15:11 am
I enable this option in my Firefox, but I still see this error.

I never see this error before, it only starts from tomorrow.

Sometimes, I can only reply, and some times I can't. I can't start a new thread in the "Help" user forums. Not sure why.

EDIT: for me, I see "network.dns.disableIPv6" is not the cause of the database error, it is some url text pattern error, see my next post.
Title: Re: Is there a problem on forums?
Post by: ollydbg on April 17, 2021, 05:33:34 am
I found a very strange issue, if my post contains such string, then, I will get the database error:

see the image shot below:

So, it means some special web link text pattern will cause the database error.  :(
Title: Re: Is there a problem on forums?
Post by: Miguel Gimenez on April 17, 2021, 11:26:00 am
The problem may be with the square brackets or the strange character – , checking the modified link:

Bug 49951 <4.5/4.6/4.7 Regression> Debug stepping behavior regarding g++ Class destructor has changed for the worse starting at gcc 4.5.0 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49951)
Title: Re: Is there a problem on forums?
Post by: ollydbg on April 17, 2021, 12:20:15 pm
The problem may be with the square brackets or the strange character – , checking the modified link:

Bug 49951 <4.5/4.6/4.7 Regression> Debug stepping behavior regarding g++ Class destructor has changed for the worse starting at gcc 4.5.0 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49951)

Good catch!
I can confirm this is the true problem of my "database error" issue.
Thanks.
Title: Re: Is there a problem on forums?
Post by: gaiusbonus on May 12, 2021, 11:11:12 am
I think you are mixing two problems.
One of them is the IPv6 issue.

After a transition period of 23 years for IPv6, the ISPs in my region (Germany) only use DS-Lite for new (private) contracts.
I just tried to use the search function with a DS-Lite -> database error
Then tried to use the search function with a Dual-Stack -> worked after telling firefox network.dns.disableIPv6 = true
Then tried to use the search function with an old Telekom 8!!MBit DSL with only IPv4 Support -> worked well.

The problem seems to be the missing IPv6 support in SMF 2.0. Found something here https://www.simplemachines.org/community/index.php?topic=575249.msg4071226#msg4071226 (https://www.simplemachines.org/community/index.php?topic=575249.msg4071226#msg4071226)...

PHP should not be the problem, because the server uses v7.3.24
Title: Re: Is there a problem on forums?
Post by: BlueHazzard on May 12, 2021, 03:15:54 pm
This seems to be a solution... https://custom.simplemachines.org/mods/index.php?mod=3051
best would be to update to SMF 2.1, but there is no official release...