ggmj.de

German Giant Map Junkies
Aktuelle Zeit: Mi Jan 17, 2018 1:51 pm

Alle Zeiten sind UTC + 1 Stunde




Ein neues Thema erstellen Auf das Thema antworten  [ 15 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: Need some help please!!
BeitragVerfasst: Di Mai 16, 2006 2:08 am 
Offline

Registriert: Di Mai 16, 2006 1:55 am
Beiträge: 9
Hey guys need some help with UTLOGCHECK 1.1.0 I have it loaded on 3 of or servers, It is loaded and you can log in and and every thing is working ok but when I do a getlog it will not download the log files.
It keeps saying "0 log file transfered" when I see there are log files on the servers. I can download the files from the servers with my standard ftp program so I have ftp access. The path is right or it would come up with some kind of error, I check the ftp server and it is accessing the ftp but it is not finding the files and they are named correctly. Any ideal why it would be doing this.


Thanks.


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Di Mai 16, 2006 9:55 am 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
Hi,
did you set the correct port of your gameserver it in the config.php?
Do the files have a names like "PlayerJoin_30147_2006_05_08_19_52_01.log"?
30147 is the port in this example.

Greetz - ~3DC~

PS: If you want to look for yourself a bit: the part of the script where it does the ftp-stuff can be found on line 237-266 in the index.php.

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Di Mai 16, 2006 3:15 pm 
Offline

Registriert: Di Mai 16, 2006 1:55 am
Beiträge: 9
This is what the log files look like. playerjoin_7777_2006_05_15_13_04_52.log I get no errors at all it works fine goes threw and lets you login get log and everything else, it just will not download these files I checked the ftp server when utlog try's to access and get the files and it show the program is allowed acces and it goes to the "userlog" folder but does not find any files when I know there are logs in there.
It has me bugged I will try and remove them completely and reinstall the whole thing again and see what happens.

This is the content of the config.php file.

Code:
<?
/////////////////////////////////////////////
// (c)05 3dc                               //
/////////////////////////////////////////////
                                //
$plserver   ="localhost";       //  IP-Adress of DB: mostly localhost (let unchanged if you're unsure)
$pluser     ="xxxxxxx";         //  name of DB-User
$plpass     ="xxxxxxx";      //  your DB-password
$pldataBase ="xxxxxxx";       //  the database to be used

$ftp_server     ="xx.xx.xx.xx";                              // FTP-Server-IP
$ftp_user_name  ="xxxxxx";                             // FTP-Server-Username
$ftp_user_pass  ="xxxxxxx";                             // FTP-Server-Password
$ftp_logs_dir   ="/userlogs/";               // Path to the PlayerJoin*.log - Files on FTP-Server

$standardlng="en";                  // Language on startup every time (en or de)
$numcharscomment=10;                // Chars of the comment to be shown in Search-Results
$numcharscommentoverview=100;       // Chars of the comment to be shown on "Show Comments"-Page

// END OF USER-CONFIGURATION-AREA ;)


///////DO//NOT//CHANGE//ANYTHING//BELOW//THIS//LINE/////////
include ("lngtxt.php");
$current_dir = getcwd()."/logs/";          // Path where the Logs will be saved before checking
$current_dir2 = getcwd()."/checkedlogs/";            // Path where the checked logs will be saved
////////////////////////////////////////////////////////////
$dbHandle =mysql_connect($plserver,$pluser,$plpass)
or  die("Connection to DB failed.<br />\n".mysql_error());
mysql_select_db($pldataBase,$dbHandle)
or die("DB ".$dataBase." not found.<br />\n".mysql_error());

?>


Thanks :)


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Di Mai 16, 2006 4:08 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
hey no, stop da reinstall :)

the port-config-thing i was talking about was a temporarily variable i set' at our local installation of utlc.
sorry, didnt remember this variable wasnt included in the package everyone can download. forgive me ;-D

But i see some errors:

- "userlogs" should be "UserLogs". the pathes are case-sensitive at linux... maybe that's wrong
- the full path like "/home/utuser/servers/publicserver1/UserLogs" should be entered.
- please dont add a slash at the end of the path

for example an correct entry should look like:

Code:
$ftp_logs_dir="/home/utuser/servers/arenamaster/UserLogs";  // Path to the PlayerJoin*.log - Files on FTP-Server


Hope this helps, if not we can tryout something else.

Greetz - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Mi Mai 17, 2006 2:10 am 
Offline

Registriert: Di Mai 16, 2006 1:55 am
Beiträge: 9
We are running windows servers this is buggin the crap out of me it is working and it access's the servers threw the ftp and is lookking in the right folder but still is not finding any log files when they are thereI see them and can open them, I don't uderstand it driveing me nutts. :scratch:


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Mi Mai 17, 2006 10:09 am 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
phew,
please check the permission on the UserLogs-Folder. Maybe utlc cant delete the files in it?! Or maybe utlc cant write in the /logs - Folder on the webserver?

Greetz

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Do Mai 18, 2006 1:28 am 
Offline

Registriert: Di Mai 16, 2006 1:55 am
Beiträge: 9
This is what the ftp server says when accesing the game servers and trying to get the log files, all permmison are correct and seems to work like i said before it is righting the logs in the /userlog folder but it is just not getting retreiving from the UTLC program.

This is the log windows from the game servers after running the get log.

(000204) 5/17/2006 8:24:43 PM - (not logged in) (12.203.197.143) > connected to ip : xx.xxx.xxx.xx
(000204) 5/17/2006 8:24:43 PM - (not logged in) (12.203.197.143) > sending welcome message.
(000204) 5/17/2006 8:24:43 PM - (not logged in) (12.203.197.143) > 220 FTP
(000204) 5/17/2006 8:24:43 PM - (not logged in) (12.203.197.143) > USER xxxxxx
(000204) 5/17/2006 8:24:43 PM - (not logged in) (12.203.197.143) > 331 Password required for xxxxxx.
(000204) 5/17/2006 8:24:43 PM - (not logged in) (12.203.197.143) > PASS ********
(000204) 5/17/2006 8:24:43 PM - UT_67 (12.203.197.143) > logged in.
(000204) 5/17/2006 8:24:43 PM - UT_67 (12.203.197.143) > 230 User xxxxxx logged in.
(000204) 5/17/2006 8:24:43 PM - UT_67 (12.203.197.143) > CWD /userlogs
(000204) 5/17/2006 8:24:43 PM - UT_67 (12.203.197.143) > asked to change directory : 'C:\SERVERS\UT_67\ -> C:\SERVERS\UT_67\userlogs\' --> Access allowed.
(000204) 5/17/2006 8:24:43 PM - UT_67 (12.203.197.143) > 250 CWD command successful. "/userlogs" is current directory.
(000204) 5/17/2006 8:24:43 PM - UT_67 (12.203.197.143) > PORT 12,203,197,143,6,109
(000204) 5/17/2006 8:24:43 PM - UT_67 (12.203.197.143) > 200 Port command successful.
(000204) 5/17/2006 8:24:43 PM - UT_67 (12.203.197.143) > LIST .
(000204) 5/17/2006 8:24:43 PM - UT_67 (12.203.197.143) > 150 Opening data connection for directory list.
(000204) 5/17/2006 8:24:44 PM - UT_67 (12.203.197.143) > 226 Transfer ok
(000204) 5/17/2006 8:24:44 PM - UT_67 (12.203.197.143) > QUIT
(000204) 5/17/2006 8:24:44 PM - UT_67 (12.203.197.143) > 221 Bye bye ...
(000204) 5/17/2006 8:24:44 PM - UT_67 (12.203.197.143) > disconnected. (00:00:00)


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Do Mai 18, 2006 9:38 am 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
Could you please try this index.php?
http://ggmj.de/download/utlc/index.php.txt
rename it to index.php...

the difference is in line 253,
Code:
if(count($ftpcontentline2)==2&&$ftpcontentline2[1]=="log"&&ereg("^PlayerJoin", $ftpcontentline2[0])==true)

is now
Code:
if(count($ftpcontentline2)==2&&$ftpcontentline2[1]=="log"&&ereg("^playerjoin", $ftpcontentline2[0])==true)


Should work then?! Please try :)

Greetz - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Sa Mai 20, 2006 3:05 am 
Offline

Registriert: Di Mai 16, 2006 1:55 am
Beiträge: 9
That worked awsome man you rock...

Thank you so much for the support bro..


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Sa Mai 20, 2006 8:47 am 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
cool, thx 8)
have fun with this script m8, good luck!

Greetz - ~3DC~

ps: you gave good error-reports, this made it a lot easier to find the error. Thank you too! :)

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Do Mär 29, 2007 1:14 am 
Offline

Registriert: Di Mai 16, 2006 1:55 am
Beiträge: 9
This is a update on this I just moved our website to a new hosting company and have eveything running smooth but now I am having a problem downloding the log files.

Eveything is set the same as the old server for the exceptsion of the ftp and sever login and paths witch I changed to meet our current hosting in the config file.

All I get is "0Files transferred" there are files there I can see them so the logs are beging generated, I have checked all the permmisions and they are correct checked the ftp log and it shows it logging in but just can not find the files.

You posted a replacement index file at one time the link is no longer good can you please post that again ill give that a try.
I can manuly downlod and move the files from the game server to the log folder in UTLOG and it works from there just the transfer part is not working.

Thanks

=DM


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Di Apr 03, 2007 1:07 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
Sorry for the delay again :/

You can do it yourself, search for
if(count($ftpcontentline2)==2&&$ftpcontentline2[1]=="log"&&ereg("^PlayerJoin", $ftpcontentline2[0])==true)
and replace it with
if(count($ftpcontentline2)==2&&$ftpcontentline2[1]=="log"&&ereg("^playerjoin", $ftpcontentline2[0])==true)

the difference is just the Word Playerjoin/playerjoin

Greetz

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Do Apr 12, 2007 7:38 pm 
Offline

Registriert: Di Mai 16, 2006 1:55 am
Beiträge: 9
Well got it to work and it is downloading the files and seems to be updating the database but for some reason the below error is showing at the top.

Notice: Undefined offset: 8 in /hsphere/local/home/ndpclan/ndpclan.biz/ut6man/index.php on line 252.

below is the index if you want take a look at it.

index

Thanks

-DM


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Fr Apr 13, 2007 7:54 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
Guten Tag 8)

please take look at this link, it should help you...
http://www.ggmj.de/index.php?name=PNphp ... 4606#24606

Greetz - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Mi Apr 25, 2007 5:44 am 
Offline

Registriert: Di Mai 16, 2006 1:55 am
Beiträge: 9
I have tryed everything in that other post.
UTLC is working it downloads the player logs and removes them from the game server checks them and moves them to the checked log folder and works perfect like it always has.
I just am getting the error after download the logs it does not make it stop working It is just I am kinda a picker if there is an error I usly want to find out what is doing it lol :D .

Thanks

-DM

Here is a image of the error.


Bild


Nach oben
 Profil  
 
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 15 Beiträge ] 

Alle Zeiten sind UTC + 1 Stunde


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
cron

Deutsche Übersetzung durch phpBB.de