Rename server broken

Post Reply
Maccara
Posts: 35
Joined: Thu Nov 06, 2008 12:18 pm
Location: Finland

Rename server broken

Post by Maccara »

Hi,

Just noticed, that "rename server" is broken. It just hangs when you try to change the server name with constant high CPU usage, forcing me to kill it manually via taskmgr.

Just trying to change existing eu.Ngroups.NET:563 to us.Ngroups.NET:563, since their EU servers are still shit after recent changes. I know it used to work way back when (1.x or 2.x series).

Oh well. Back to downloading headers yet again...

Oh, system = XP64 and UE version 3.1.1 (64bit)
alex
Posts: 4538
Joined: Thu Feb 27, 2003 5:57 pm

Re: Rename server broken

Post by alex »

The code didn't change.

What are other servers in the server list (you may pm me).

Probably something related to changing position in the list, if I have the same position change maybe I'll reproduce it if it is real.

I checked here with 64 bit version as well, all works.

Old ngroups servers are still operational for how long? Or they split customers without giving a choice.
The new servers had problem with boneless group, I don't know whether it has been fixed.
Maccara
Posts: 35
Joined: Thu Nov 06, 2008 12:18 pm
Location: Finland

Re: Rename server broken

Post by Maccara »

alex wrote:The code didn't change.

What are other servers in the server list (you may pm me).
127.0.0.1 (for posting through proxy - only tested once, disabled for other tasks)
Probably something related to changing position in the list, if I have the same position change maybe I'll reproduce it if it is real.
Nope. No position change either - still last on the list.
Old ngroups servers are still operational for how long? Or they split customers without giving a choice.
The new servers had problem with boneless group, I don't know whether it has been fixed.
I received their mail couple weeks ago, and in that mail they said old servers would stop functioning in about a week (so they should be offline already - haven't tested if old works anymore). New EU server seemed to work for a while, but recently they're missing a ton of headers and most of new headers since a couple of days. US server is ok (just tested). And nGroups actually recommends using the US servers for now.

Huh. It is strange renaming is not working for me, if you haven't done any code changes. Is it possible you have changed something else which shares code? Because I haven't changed anything either and it used to work in some ancient UE version since I last needed it.

What does changing server name entail (for code)? I would've thought it is a simple string replace (akin to "update servers name=new_name where id=chg_id"), at least I can't think of any reason to do anything else (which would explain high cpu usage and hang), but I have no clue what kind of data you use to store that so I'm just guessing. (like the cardinal mistake in db design of using names as identifiers, perhaps :))

Nevertheless, I now "solved" the problem a roundabout way by just adding a new server, deleting old and redownloading headers (which probably was a good idea anyway).
alex
Posts: 4538
Joined: Thu Feb 27, 2003 5:57 pm

Re: Rename server broken

Post by alex »

With those two servers renaming is still working here.

If you have little time try to create a new database (properties->general->change folder), then copy reg.dat to the new database settings directory, then try to rename, if it hangs, delete newsgroups, clear history, delete the servers passwords from history, if it still hangs email me reg.dat, if it doesn't hang maybe need to rename groups instead of deleting them.

In the test database I added couple of groups, also I tried both small letters and the exact case as in your forum post above.

There is one universal sync function for all occasions, so it is not as trivial as delete / add entry, the function is also used to change newsgroup/server status, server counters etc, it just reflects differences in all panes, it is old code.
Maccara
Posts: 35
Joined: Thu Nov 06, 2008 12:18 pm
Location: Finland

Re: Rename server broken

Post by Maccara »

Thanks. I'll try to do some testing next week (not terribly important at the moment anyway, as there was a workaround for me).

Let's see if I can narrow it down where it breaks.
Post Reply