Regged user lost after reboot
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Regged user lost after reboot

Started by Ravage, 13 May, 2012, 19:25:58

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ravage

Ptokax 0.4.2.0 [build 390] LUA 5.2.0 on Winserver 2008 R2 Data Center or Windows 7 HP 64 bit

Hi,

one of my hubs is on a virtual server, the server is rented.
Anyone who has had experience with virtual servers rented, knows
that it may come to accidental shutdowns and reboots sometime.
Well sometimes it makes sense, because updates must be installed etc, but
this is not the main problem.

The problem I have is, if the server restarts are executed, then I discover
always that recently registered users, no longer can be found in the registry list.
Well, I thought no problem, the user must be just registered again.

A few days later, the same phenomenon, which previously registered user
were again not shown in the user registry list, afer the server restarted even
though they were in the registry list before in the GUI.
Of course, people get angry when they lose their account permanently ...

I then have set up on a test basis another new hub on my home server to find the cause.

Test:
I have registered a user, he apeared in the Reg List in the GUI and closed the hubsoft and
restarted my machine, and reboot I noticed that he is not listed in the reg list anymore.
Well, here I am then stumbled on something...
Once I've registered a user, then they appear in the GUI in the Registered user list
but not in the RegisteredUsers.xml file. I noticed, those ppl that are in the XML file
are save from getting lost :p sounds stupid I know.


I asked myself how can I get the previous registered user in the RegisteredUsers.xml file?
Well, the solution was simply to click on "Save Settings",
and voila, there they are.

Question:
Am I doing something wrong? No?
Can we get the "auto save all settings every [XX] Minutes" Option ?

Regards,
Ravage
Classic Rock to Modern Metal
metal-unity.no-ip.org:980
Join Us!

PPK

nSaveInterval = 60 -- save interval in minutes

function OnStartup()
   TmrMan.AddTimer(nSaveInterval * (60 * 1000), "SaveRegs")
end

function SaveRegs(uTimerId)
   RegMan.Save()
end
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

Ravage

Thanks much,
Appreciate.


Regards,
Ravage
Classic Rock to Modern Metal
metal-unity.no-ip.org:980
Join Us!

Black-Dragon

Hi, I wanted to know and do possibbile so that when you save the settings in the main feed I send a chat in the op?

the-master

nSaveInterval = 60 -- save interval in minutes

function OnStartup()
   TmrMan.AddTimer(nSaveInterval * (60 * 1000), "SaveRegs")
end

function SaveRegs(uTimerId)
   RegMan.Save()
   Core.SendToOpChat("<"..SetMan.GetString(21).."> Registered Userlist Updated")
end
keep on sharing :)

SMF spam blocked by CleanTalk