Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: xboxedd on July 13, 2013, 04:28:22 PM
-
I re installed the version of ulx my server uses. When I replaced the new ban.txt file with my old ban.txt file it only shows half of the bans and when i re downloaded that file, the ban list had been cut in half. How can I use my old ban.txt list?
My old ban.txt file is 40kb and when i upload that file it is cut down to 20kb.
I REALLY don't want to have to reban half of the people who usted to be banned. I need help before they come back!
-
You had the server shut down when you did the over-write, right?
And, how old was your old ULX?
It's likely you have a corrupt original ban.txt. Old versions of ULX sometimes allowed players with assorted ascii that lua didn't like to read to be stored in the ban.txt, which would corrupt it.
If you had permanent bans in it, your server's "Real" banned_user.cfg list should already have all your bans.
Our ban.txt is really only needed to store the who banned, the reason, and when temporary ban, the length of time across server sessions.
(For whatever reason, Steam doesn't keep temp bans across server sessions)
-
You had the server shut down when you did the over-write, right?
And, how old was your old ULX?
It's likely you have a corrupt original ban.txt. Old versions of ULX sometimes allowed players with assorted ascii that lua didn't like to read to be stored in the ban.txt, which would corrupt it.
If you had permanent bans in it, your server's "Real" banned_user.cfg list should already have all your bans.
Our ban.txt is really only needed to store the who banned, the reason, and when temporary ban, the length of time across server sessions.
(For whatever reason, Steam doesn't keep temp bans across server sessions)
My server was off. I was and still use the 3.60 version because I can't get the SVN version on my server. The only difference I see is that new ban.txt files are not that organised. My old ban.txt file has suff written like
"Name
Steam id
Reason"
The new one writes stuff like
"Namesteam Idreason"
Is there anyone I can add on steam or talk to so i can fix this faster?
-
A file named bans_backup.txt appeared in my data/ulib folder that looks to be exactly the same as the ban.txt file that I uploaded in size and content. My bans.txt file has shrunk to 20kb from 40kb. It seems that when I replace my bans.txt file, that file is shrunk to 20kbs and another file named bans_backup.txt is created. Is this what's happening? If so, are both files being used to enforce the bans we've made?
-
When ULX creates backup files, it always explains why it's doing so from the server console. Read the console logs and report back.
-
When ULX creates backup files, it always explains why it's doing so from the server console. Read the console logs and report back.
I can't seem to find anything just scrolling through my logs. Is there a certain message I should be looking for?
Also, It seems that all of the bans returned somehow, is the backup also being used to keep track of bans? If so, is there a need to do anything at all?
-
No, the backup is not used at all. The message will appear during or shortly after ULX loads.
-
No, the backup is not used at all. The message will appear during or shortly after ULX loads.
I don't see any errors. The only thing I notice that could be an error would be
Server logging data to file logs\L0715001.log
PREP OK
Lua JIT is DISABLED!
///////////////////////////////
// Ulysses Library //
///////////////////////////////
// Loading... //
// shared/defines.lua //
// shared/misc.lua //
I don't know what specific error/message I'm looking for.
-
Show the rest of the startup log when an additional backup file is created.
-
Show the rest of the startup log when an additional backup file is created.
Ok. I attatched a file of my server's console when it started up after I restarted it.
-
Was a backup file created when the server started up? I'm thinking probably not, or it would have said something. :P
-
Was a backup file created when the server started up? I'm thinking probably not, or it would have said something. :P
This is from when my server started up this morning. So the backup file was already made. I can't find the log file from when I first put it in.
-
This is from when my server started up this morning. So the backup file was already made. I can't find the log file from when I first put it in.
You would need to put the original file back in to know what was wrong with it.
-
You would need to put the original file back in to know what was wrong with it.
Found the problem
Bans file was not formatted correctly. Attempting to fix and backing up original
Error while reading bans file was: Bad input on line 1
Original file was backed up to ulib/bans_backup.txt
Here is what my original bans.txt looks like
http://pastebin.com/HyrchMpN
and here is what my bans.txt file looks like after the backup is created.
http://pastebin.com/DXr1kF8V
-
Bumb. I really need this fixed. I only have 3 people banned other than the people who are perma banned...
-
Will look into it, may be able to check Saturday afternoon. Sorry I can't help you any sooner than that.
-
The original file you're showing only has 4 people in it.
Do you have a larger one somewhere?
-
The original file you're showing only has 4 people in it.
Do you have a larger one somewhere?
Yes.
My old ban.txt file is 40kb and when i upload that file it is cut down to 20kb.
You can see it here http://pastebin.com/NVapSkad . Though I don't really see why you need to see the full file though, the error says
Bans file was not formatted correctly. Attempting to fix and backing up original
Error while reading bans file was: Bad input on line 1
Original file was backed up to ulib/bans_backup.txt
So if formatting is the problem the first original should be fine since the error was on line 1 and the entire file is the same, just repeating with different bans.
Is it possible that this problem is occurring because text files from the servers aren't formatted like the original file anymore?
-
I should ask, which version of ULX are you using? SVN or release?
-
I should ask, which version of ULX are you using? SVN or release?
My bad. I thought I told you. I'm using the 3.60 version since my server host doesn't provide any admin mods and I can't upload a SVN version to my server. I just downloaded it from this site.
-
I can't upload a SVN version to my server. I just downloaded it from this site.
1) Garry broke file I/O. We wrote workarounds in our code since January release. (not guaranteed to fix your problem)
2) Cursory glance of your full file doesn't absolutely shout out to me 'this is broken'. However, since you're using old code, Gmod might be seeing a few of those funky ascii characters people like to put in their names but lua sees as splits if Gmod isn't perfectly doing what it should do, and we've written many workarounds for, and seeing your bans file as corrupt.
3) Your previous question regarding line 1, see #1 above.
4) Most Github code repositories offer somewhere in the code tree a link to get a zip file of the code.
https://github.com/Nayruden/Ulysses has a download zip on the right side of the page.
Though it's for EVERY project we have under ulysses, the two you need most up to date are there.
Now, feel free to try the latest greatest code along with your original bans file. If it still splits it, i'm betting it's an ascii character somewhere within the strings (we try our best to allow for them...gmod still breaks stuff sometimes.
-
1) Garry broke file I/O. We wrote workarounds in our code since January release. (not guaranteed to fix your problem)
2) Cursory glance of your full file doesn't absolutely shout out to me 'this is broken'. However, since you're using old code, Gmod might be seeing a few of those funky ascii characters people like to put in their names but lua sees as splits if Gmod isn't perfectly doing what it should do, and we've written many workarounds for, and seeing your bans file as corrupt.
3) Your previous question regarding line 1, see #1 above.
4) Most Github code repositories offer somewhere in the code tree a link to get a zip file of the code.
https://github.com/Nayruden/Ulysses has a download zip on the right side of the page.
Though it's for EVERY project we have under ulysses, the two you need most up to date are there.
Now, feel free to try the latest greatest code along with your original bans file. If it still splits it, i'm betting it's an ascii character somewhere within the strings (we try our best to allow for them...gmod still breaks stuff sometimes.
I didn't get ulx from githhub, i got it from http://ulyssesmod.net/downloads.php. Anyway, I tried replacing the 3.60 version of ulx with the ulx and ulib files from github. Not only did it not fix my original problem, but now it say that the xgui was not initialized properly with the server, a new bans backup is now created whenever the map changes (bans_backup3.txt), and I keep getting this error.
[ERROR] addons/ulib/lua/ulib/shared/util.lua:327: attempt to call field 'FileIsDir' (a nil value)
1. filesInDir - addons/ulib/lua/ulib/shared/util.lua:327
2. addForcedDownload - addons/ulx/lua/ulx/modules/sh/util.lua:215
3. fn - addons/ulx/lua/ulx/end.lua:25
4. fn - addons/ulx/lua/ulx/end.lua:117
5. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
In the error where it shows the reason for the backup being created still says that the bans file is not formatted correctly.
I am also getting the following errors (though they are likely not caused by ulx).
[ERROR] gamemodes/terrortown/entities/entities/ttt_map_settings/init.lua:27: attempt to index field 'crowbar_unlocks' (a nil value)
1. unknown - gamemodes/terrortown/entities/entities/ttt_map_settings/init.lua:27
[ERROR] gamemodes/terrortown/entities/entities/ttt_map_settings/init.lua:20: attempt to index field 'crowbar_unlocks' (a nil value)
1. unknown - gamemodes/terrortown/entities/entities/ttt_map_settings/init.lua:20
[ERROR] gamemodes/terrortown/entities/entities/ttt_map_settings/init.lua:24: attempt to index field 'crowbar_unlocks' (a nil value)
1. unknown - gamemodes/terrortown/entities/entities/ttt_map_settings/init.lua:24
I'm going to change the version back to 3.60 so my server so I only have one problem to deal with.
-
Update to my last post:
I can confirm that the github version caused those errors. When I changed my server's version back to 3.60 none of those errors came up except for one.
Even after I changed my version back, a new backup file is being created after every map change. The only thing that I can see as the source of this is that I clicked on the steam update button in my control panel, but I don't know if anything was updated. Also, there aren't any bans when I look in the bans tab of the xgui. I can only see source bans (which I amuse are the perma bans).
Can someone please add me on steam so we can try to fix this issue faster? It's been almost a week since this problem's started and I REALLY need my old bans back. http://steamcommunity.com/id/apalebluedot/
-
I confirmed that it works fine in the GitHub version. It's only if you move from the GitHub version back to release that this happens. Sorry, we have no way of accounting for that. I'm aiming to get another release out ASAP though, so it's a non-issue.
-
I confirmed that it works fine in the GitHub version. It's only if you move from the GitHub version back to release that this happens. Sorry, we have no way of accounting for that. I'm aiming to get another release out ASAP though, so it's a non-issue.
What do you mean by "it"? All I did was go to https://github.com/Nayruden/Ulysses, download the ulx and ulib folders, and uploaded them to my server. That's how I got those errors. Where do I get the newer github version? Also, what issue are you referring to when you say that your aiming to get another release out asap? The errors I had before or the bans_backup.txt error?
By the way the mutable bans_backup.txt files seem to have stooped for no reason and I am not getting anymore backups. Now there is only bans_backup.txt. Also, since the formatting is causing the backups, is it possible that I just need to change the format of the ban.txt file? If so what format is it?
-
Files are not saved with /r/n in garry's mod anymore, so the best way to convert it yourself is to use a tool like Notepad++ in Unix mode.
-
Files are not saved with /r/n in garry's mod anymore, so the best way to convert it yourself is to use a tool like Notepad++ in Unix mode.
What do you do when you open Notepad++ and change it to unix mode?
I tried saving the file after changing the mode to unix and uploading that to the server, but it still makes a backup and shrinks the ban file.
-
Xbox, Megiddo describing the correction of how to view/save the file in easier to read format won't fix it for ULX.
Garry broke file I/O some months ago. (I've no idea if he's fixed it since.)
ULX written in January broke when Gmod i/o broke.
We fixed ULib and ULX to work around Garry's broken I/O after that happened (now in SVN)
It's possible and likely that, due to Garry's breaking of I/O, your temp ban file got written in a corrupt way. (Again, we only store temp ban time, admin who did, reason, persons name who was banned in this file, all perm bans are stored in the normal Source server banned file, they just don't have the helpful who/how/why/when info.
Due to this broken I/O, we strongly recommend using the latest SVN.
Even if you were able to manually input/correct your file and get it working in the old ULX release, it would possibly get corrupted again. (though unsure, I've not heard Garry's fixed all I/O yet)
Your issues described regarding errors you got while after uploading SVN to your server sound like 1) server wasn't shut down when you updated code. 2) running other older non-updated addons 3) perhaps updated one part of the two required (both ULib/ULX) but not the other. 4) any mix of the previous.
Our SVN works. Many are using it, especially after the breakage the major update that broke our release (and many other addons) version.
We're more than happy to assist, but from the sounds, something on your server conflicted when you tried the SVN (or even previously, corrupting the bans file)
-
The errors I posted above were from the github version of ulx. When I upload the svn version to my server, it shows the pathway to a svn file/folder and says i don't have access to it, so I can't extract it. I can try deleting the svn folders that come with the rest of the files, as they seem useless. I'll give you an update when I try that.
Also, are you saying that an updated version of ulx from the svn would fix my problem with the bans, or are you saying that I need to start over with a new version and scrap my old bans.txt file?
-
Update to my last post...
I got the svn version and removed the svn folder inside (since I can't upload ulx with it) and got the exact same errors that I had with the github version...
Your issues described regarding errors you got while after uploading SVN to your server sound like 1) server wasn't shut down when you updated code. 2) running other older non-updated addons 3) perhaps updated one part of the two required (both ULib/ULX) but not the other. 4) any mix of the previous.
Well whatever the problem was it happened again... My server WAS shut down, I have no addons that effect bans, and I uploaded both the ulib & ulx files using the svn lins from your downloads page.
Our SVN works. Many are using it, especially after the breakage the major update that broke our release (and many other addons) version.
Well it's not working for me... Whenever I download it...
We're more than happy to assist, but from the sounds, something on your server conflicted when you tried the SVN (or even previously, corrupting the bans file).
I had this problem before I installed the svn version. What happened was that I downloaded my bans.txt file from my data/ulib folder, reinstalled version 3.60, and re-uploaded my bans.txt file (which I didn't do anything to). It was after that when I tried to install the svn version to fix the problem. If it helps, here is a screenshot of the error I get when I try to extract the svn ulx & ulib folders into my server's addons folder. http://i.imgur.com/bmZc7k5.jpg
-
Also, are you saying that an updated version of ulx from the svn would fix my problem with the bans, or are you saying that I need to start over with a new version and scrap my old bans.txt file?
I'm saying always use latest code, because old code got broke after a Gmod update (totally beyond our control at the time)
As for you 'having no addons that affect bans' has nothing to do with the fact you might have addons that affect writing files properly or adjusting/overwriting other functions ULX uses. (Fadmin is a perfect example of this, we recommend people use the latest of it because earlier versions were much worse about conflicts (and actually, we still often recommend using either Fadmin or ULX, not both)
I'm saying that, since your bans file was considered broken before you tried doing anything, there's a possibility you've lost it, yes.
Something corrupted it, whether it be due to your download/re-upload, or a bad zig when it should have zagged during a save, or Gmod not writing it properly, or someone with an odd character in their name.
As for your SVN troubles, if your using the zip file as I suggested from the github site. https://github.com/Nayruden/Ulysses/archive/master.zip - there are no .svn folders in it. at least that i can see, and I have show hidden files turned on. It contains files from every project we write, but, you'd only need to upload the ulib and ulx folders to your server.
There are only one or two github related files, and they should have no issue with them (a readme.md, and a file called .gtignore.
-
I'm saying always use latest code, because old code got broke after a Gmod update (totally beyond our control at the time)
And I'm saying I can't use the latest code because it causes the errors I posted...
As for you 'having no addons that affect bans' has nothing to do with the fact you might have addons that affect writing files properly or adjusting/overwriting other functions ULX uses. .... As for your SVN troubles, if your using the zip file as I suggested from the github site. https://github.com/Nayruden/Ulysses/archive/master.zip - there are no .svn folders in it. at least that i can see, and I have show hidden files turned on. It contains files from every project we write, but, you'd only need to upload the ulib and ulx folders to your server.
There are only one or two github related files, and they should have no issue with them (a readme.md, and a file called .gtignore.
Ok. So I temporarily removed all of my addons and installed the latest version of ulx (i just used the ulib and ulx folders). It still creates those errors I posted. The version of ulx that you gave me the link to in your last post. The version you said "works". Well I think I have made it obvious that the latest version causes errors for me and that it does not work. I think that it is annoying that your saying that it works when (for the third time now) I have found that it does not work.
I'm saying that, since your bans file was considered broken before you tried doing anything, there's a possibility you've lost it, yes.
Something corrupted it, whether it be due to your download/re-upload, or a bad zig when it should have zagged during a save, or Gmod not writing it properly, or someone with an odd character in their name.
So do you think i should just delete my bans.txt folder and my backups and allow a bran new bans.txt folder to be made? To be honest I wouldn't mind doing it that much. This thread has tacken so long that at least 1/4 of those temporary bans would be over by now and they were temporary bans after all...
-
Never said it worked for you.
I said it works for the majority of people... and I know it works for many here who have TTT servers, because we see questions/modules written for it here.
This leads me to believe you have a problem with something on your server.
As our latest fixes a nasty file reading/writing bug Garry introduced, I recommend you get it and work with us to troubleshoot the error you get before installing/using other gamemodes.
Are you sure you have the latest TTT server code? How are you updating Gmod? I've read that hlupdate doesn't work anymore, something called steampipe is needed.
You mention several times that you can't upload svn to your host... Do you mean just ULX, or do you mean for all addons? Because if you mean all, then you probably have older addons.
How do you upload files to your server? Your host control panel? Or what ftp program? Configuration of whatever program you're using can affect the way files are transferred.
For now, yes, I'd recommend moving on from the corrupt bans file.
-
Idk. This is the only time i've had a problem like this for version 3.60. Everything else works fine.
As our latest fixes a nasty file reading/writing bug Garry introduced, I recommend you get it and work with us to troubleshoot the error you get before installing/using other gamemodes.
I have no idea what that file is... Remember that I'm using 3.60 (i changed it back after the newer version was causing errors). I got the newer version from that link you sent me.
Are you sure you have the latest TTT server code? How are you updating Gmod?
Yes. I am updating my server by clicking on a "Steam Update" button in my control panel. It uses steampipe.
You mention several times that you can't upload svn to your host... Do you mean just ULX, or do you mean for all addons?
I don't know. ulx and ulib are the only svn versions of something that I've tried to upload. I don't really get anything for my server from svn. You can see the error I got here http://i.imgur.com/bmZc7k5.jpg as I posted before.
How do you upload files to your server? Your host control panel? Or what ftp program? Configuration of whatever program you're using can affect the way files are transferred.
My host is vilayer. I use their ACP control panel. To upload files, I go to the folder I want to upload the files to, click on the upload button, select the files I want to upload in a little popup window, then press the upload button in that popup window.