Plötzlich keine Verbindung zu PostgreSql

Hi liebe Leut, hoffe ich bin hier richtig für Hilfe.


Benutze PostgresSql 8.3 ausschließlich für meine Pokersoftware Holdem Manager (HM),
und habe absolut keine Ahnung was ich tue :confused: .

Plötzlich gibt es nach dem Start von HM keine Verbindung zu PostgreSql mehr.
Habe , soviel ich weiß, nichts an HM oder Sql sowie am System verändert.
Nur einmal meine Virensoftware(Kaspersky pure) “repariert”.

Hatte vor ein paar Tagen die Database “vacumiert” im HM , schien aber alles so wie immer.

-Im Database Control Panel steht: servername 127.0.0.1 portnumber: 5432 xxxx: xxxx:,
hierrüber kann ich keine Verbindung herstellen.

-Wenn ich pgadmin 3 aufrufe sagt es mir: “Server dosn t listen”…"connection refused (0x0000274D/100061)…

-Start/Stop Service funzt auch nicht

-habe versucht im Bereich “Dienste” auf “lokale Dienste umzustellen” und dann zu starten, no way, Fehler “1053”

  • auch wurde mir geraten die postmaster.pid Datei zu löschen, habe sie aber nicht auf meinem PC gefunden (ich wieß sie ist vesteckt)


    Seltsam alles, da das System seit fast zwei Jahren o.P. lief.

was tun?

Hilfe! Brauche unbedingt Zugang zu meinen Daten

Für jedem Tip oder Hilfe wäre ich sehr dankbar

Ins Logfile schauen.

Andreas

danke für tip 1 :smiley: .
Wo finde ich das Logfile?

Wie alles, mit Google: “windows postgres logfile” oder so, ich nix Windows. Nutz doch einfach ein richtiges OS, nicht dieses billige aus Ami-Land :wink:

Warum hast Du eigentliche Virensoftware auf dem Rechner, und reparierst diese auch noch?
Und ja: Du nutzt PostreSQL in Verbindung mit einer kommerziellen Software, für die Du Geld bezahlt hast. Hast Du doch, oder? Hier zumindest nicht. Frag also den Support Deiner Software, Du hast dafür bezahlt. Hier nicht.

Andreas

danke für Tip 2 :smiley:

wie ich bereits erwähnte habe ich leider keine Ahnung, ich bin bloß ein blöder user.
Ich weiß nicht warum du so agressiv rüber kommst?
Wenn hier Leute nur mit einem Informatikstudium posten dürfen, schreibt so etwas doch bitte groß auf Seite 1.

-Mit google hatte du natürlich recht :astonished:
-Virensoftware fand ich bis gerade eben noch wichtig? :astonished:
-repariert habe ich Sie weil sie sich “aufgehängt” hatte. Tut man so etwas nicht? :rolleyes:

  • Die Heinies von der " kommerziellen Software" haben aufgeben und mir den Link von hier geschickt. Die hasse ich wirklich! :angry:


    Zum Logfile:

Dieses sollte sich in meinem Temp Ordner befinden, tut es aber nicht?
Weder install-postgresql.log noch bitrock_installer.log or bitrock_installer_xxx.log

Aber ich habe in pg_log dies gefunden :frowning: letzter Eintrag)

_“2010-02-04 22:22:49 CET LOG: database system was shut down at 2010-02-04 22:21:51 CET
2010-02-04 22:22:49 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:22:49 CET FATAL: the database system is starting up
2010-02-04 22:22:49 CET LOG: database system is ready to accept connections
2010-02-04 22:22:49 CET LOG: autovacuum launcher started
2010-02-04 22:22:50 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:24:51 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:24:59 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:25:00 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:25:08 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:25:37 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:29:07 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:29:45 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:30:02 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:38:12 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:42:49 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:43:18 CET LOG: loaded library “$libdir/plugins/plugin_debugger.dll”
2010-02-04 22:48:56 CET LOG: received fast shutdown request
2010-02-04 22:48:56 CET LOG: aborting any active transactions
2010-02-04 22:48:56 CET FATAL: terminating connection due to administrator command
2010-02-04 22:48:56 CET FATAL: terminating connection due to administrator command
2010-02-04 22:48:56 CET FATAL: terminating connection due to administrator command
2010-02-04 22:48:56 CET FATAL: terminating connection due to administrator command
2010-02-04 22:48:56 CET LOG: autovacuum launcher shutting down
2010-02-04 22:48:56 CET FATAL: terminating connection due to administrator command
2010-02-04 22:48:56 CET CONTEXT: SQL statement “select P.PlayerName,(Select netamountwon from playerhandscashkeycolumns where playerhandscashkeycolumns.pokerhand_id = PKH.pokerhand_ID and playerhandscashkeycolumns.Player_ID = PVP.player_id) as NetAmountWon,(select holecard1int from PlayerHandsCashKeyColumns PHC where PHC.PokerHand_ID = PKH.PokerHand_ID and PHC.Player_ID = PVP.Player_ID) as HoleCard1int, (select holecard2int from PlayerHandsCashKeyColumns PHC where PHC.PokerHand_ID = PKH.PokerHand_ID and PHC.Player_ID = PVP.Player_ID) as HoleCard2int, (select coalesce(holecard3int,0) from PlayerHandsCashKeyColumns PHC where PHC.PokerHand_ID = PKH.PokerHand_ID and PHC.Player_ID = PVP.Player_ID) as HoleCard3int, (select coalesce(holecard4int,0) from PlayerHandsCashKeyColumns PHC where PHC.PokerHand_ID = PKH.PokerHand_ID and PHC.Player_ID = PVP.Player_ID) as HoleCard4int from pokerhands PKH, playervsplayer PVP join Players p on pvp.player_id = p.player_id where PKH.Pokerhand_Id = PVP.PokerHand_id and PVP.Amount = (Select Max(Amount) from PLayerVsPlayer where pokerhand_id = PKH.PokerHand_ID) and PKH.Pokerhand_id = $1 limit 1”
PL/pgSQL function “getwinningplayerjoincashver2” line 4 at SQL statement
2010-02-04 22:48:56 CET STATEMENT: select PH.PokerHand_ID,PH.PreFlopPlayerActionType_ID,PH.StreetWentAllin,PH.HandTimeStamp,GT.GameTypeDescription, GT.PokerGame,PH.holecard1int,PH.holecard2int,PH.holecard3int,PH.holecard4int,PKH.FlopCard1int,PKH.flopcard2int,PKH.flopcard3int,PKH.TurnCardint,PKH.RiverCardint,PH.flopplayerActionType_ID,PH.turnplayerActionType_ID,PH.riverplayerActionType_ID,PH.NetAmountWon,GT.BigBlind,PH.PositionType_ID,PH.preflopaction_id,PH.didpfr,PH.didvpip,(case when PH.StreetWentAllIn > 0 then (Select SklanskyBucks from AllInSituations where ph.playerhand_id = allinsituations.playerhand_id) else 0 end) as SklanskyBucks,(case when PH.StreetWentAllIn > 0 then (Select EquityPct from AllInSituations where ph.playerhand_id = allinsituations.playerhand_id) else 0 end) as EquityPct,getwinningplayerjoincashver2(ph.pokerhand_id) as winningplayerjoin from playerhandscashkeycolumns_hero ph join pokerhands_hero pkh on ph.pokerhand_id = pkh.pokerhand_id join players pl on (pl.player_id = ph.player_id) join playerhandscashmisc_hero phmisc on phmisc.playerhand_id = ph.playerhand_id join gametypes gt on gt.gametype_id = ph.gametype_id left join allinsituations_hero ev on ph.playerhand_id = ev.playerhand_id where (ph.player_id = 945 or ph.player_id = 4431 or ph.player_id = 60 or ph.player_id = 20103 or ph.player_id = 43503 or ph.player_id = 137576) and (ph.gametype_id = 1 or ph.gametype_id = 2 or ph.gametype_id = 3 or ph.gametype_id = 13 or ph.gametype_id = 14 or ph.gametype_id = 22 or ph.gametype_id = 27 or ph.gametype_id = 39 or ph.gametype_id = 40 or ph.gametype_id = 41 or ph.gametype_id = 48 or ph.gametype_id = 61 or ph.gametype_id = 62 or ph.gametype_id = 66 or ph.gametype_id = 67 or ph.gametype_id = 68 or ph.gametype_id = 69 or ph.gametype_id = 78 or ph.gametype_id = 82 or ph.gametype_id = 84 or ph.gametype_id = 85 or ph.gametype_id = 86 or ph.gametype_id = 88 or ph.gametype_id = 106 or ph.gametype_id = 130) and ph.handtimestamp > to_timestamp(‘01/01/2010 00:24:00’,‘mm/dd/yyyy hh24:mi:ss’) and gt.pokergame = 1 order by PH.HandTimeStamp desc limit 100
2010-02-04 22:48:56 CET FATAL: terminating connection due to administrator command
2010-02-04 22:48:56 CET CONTEXT: SQL statement “select P.PlayerName,(Select netamountwon from playerhandscashkeycolumns where playerhandscashkeycolumns.pokerhand_id = PKH.pokerhand_ID and playerhandscashkeycolumns.Player_ID = PVP.player_id) as NetAmountWon,(select holecard1int from PlayerHandsCashKeyColumns PHC where PHC.PokerHand_ID = PKH.PokerHand_ID and PHC.Player_ID = PVP.Player_ID) as HoleCard1int, (select holecard2int from PlayerHandsCashKeyColumns PHC where PHC.PokerHand_ID = PKH.PokerHand_ID and PHC.Player_ID = PVP.Player_ID) as HoleCard2int, (select coalesce(holecard3int,0) from PlayerHandsCashKeyColumns PHC where PHC.PokerHand_ID = PKH.PokerHand_ID and PHC.Player_ID = PVP.Player_ID) as HoleCard3int, (select coalesce(holecard4int,0) from PlayerHandsCashKeyColumns PHC where PHC.PokerHand_ID = PKH.PokerHand_ID and PHC.Player_ID = PVP.Player_ID) as HoleCard4int from pokerhands PKH, playervsplayer PVP join Players p on pvp.player_id = p.player_id where PKH.Pokerhand_Id = PVP.PokerHand_id and PVP.Amount = (Select Max(Amount) from PLayerVsPlayer where pokerhand_id = PKH.PokerHand_ID) and PKH.Pokerhand_id = $1 limit 1”
PL/pgSQL function “getwinningplayerjoincashver2” line 4 at SQL statement
2010-02-04 22:48:56 CET STATEMENT: select ph.pokerhand_id,ph.preflopplayeractiontype_id,ph.streetwentallin,ph.handtimestamp,gt.gametypedescription, gt.pokergame,ph.holecard1int,ph.holecard2int,ph.holecard3int,ph.holecard4int,pkh.flopcard1int,pkh.flopcard2int,pkh.flopcard3int,pkh.turncardint,pkh.rivercardint,ph.flopplayeractiontype_id,ph.turnplayeractiontype_id,ph.riverplayeractiontype_id,ph.netamountwon,gt.bigblind,ph.positiontype_id,ph.preflopaction_id,ph.didpfr,ph.didvpip,ev.sklanskybucks,ev.equitypct,getwinningplayerjoincashver2(ph.pokerhand_id) as winningplayerjoin from playerhandscashkeycolumns_hero ph join pokerhands_hero pkh on pkh.pokerhand_id = ph.pokerhand_id join gametypes gt on gt.gametype_id = ph.gametype_id left join allinsituations_hero ev on ph.playerhand_id = ev.playerhand_id where (ph.player_id = 945 or ph.player_id = 4431 or ph.player_id = 60 or ph.player_id = 20103 or ph.player_id = 43503 or ph.player_id = 137576) and (ph.gametype_id = 1 or ph.gametype_id = 2 or ph.gametype_id = 3 or ph.gametype_id = 13 or ph.gametype_id = 14 or ph.gametype_id = 22 or ph.gametype_id = 27 or ph.gametype_id = 39 or ph.gametype_id = 40 or ph.gametype_id = 41 or ph.gametype_id = 48 or ph.gametype_id = 61 or ph.gametype_id = 62 or ph.gametype_id = 66 or ph.gametype_id = 67 or ph.gametype_id = 68 or ph.gametype_id = 69 or ph.gametype_id = 78 or ph.gametype_id = 82 or ph.gametype_id = 84 or ph.gametype_id = 85 or ph.gametype_id = 86 or ph.gametype_id = 88 or ph.gametype_id = 106 or ph.gametype_id = 130) and ph.handtimestamp > to_timestamp(‘12/01/2009 10:46:47’,‘mm/dd/yyyy hh24:mi:ss’) and gt.pokergame = 1 order by ph.handtimestamp desc limit 100
2010-02-04 22:48:56 CET LOG: shutting down
2010-02-04 22:48:56 CET LOG: database system is shut down”

_
Ist das das Gesuchte?

ist jetzt Tip 3 ist nötig? :sunglasses:


buhuuu

Nun, Du hast vor ca. 2 Jahren die Datenbank runtergefahren. Offensichtlich brauchst Die nicht allzu oft.


Andreas

???
nun, bis vor ca. einer Woche habe ich die " kommerziellen Software" o.P. benutzt. Und die funzt nicht o. Datenbank(glaube ich).

Nun gut. nach meinem Wissen müste sich das Logfile im Temp-Ordner befinden(richtig), tut er aber nicht.
Ist das möglich? oder gibt es doch noch einen anderen Ort?
Gibt es kein Logfile, also bleibt die Fehlerquelle unbekannt, ist dann ein starten von Sql noch möglich?
Oder muss alles neu installiert werden mit gleichzeitigem Datenverlust?

http://www.pg-forum.de/h-ufig-gestellte-fragen-faq/1873-wir-k-nnen-nicht-helfen-wenn.html

Bitte beachte auch das erste Poting… Ich glaube du bist hier einfach falsch…

cu tb.

Vielleicht liegt das (aktuelle) Logfile ja woanders, wobei ich eher nicht im TEMP suchen würde…

Der Server startet auch ohne vorhandenes Logfile - wenn alles andere stimmt. Sollte es Probleme geben, wird das im - RICHTIG! - im Logfile protokolliert.


Andreas

…dann möchte ich mich entschuldigen.
Mir wurde das Forum hier von den Versagern der “kommerziellen Software” als ultimative letze Hoffnung angepriesen.
Da ich leider nicht weiß wo der Fehler liegt, kommen wir hier leider nicht weiter.
Also wenn es möglich ist hier dennoch Hilfe für einen Noob zu bekommen, dann verschiebe den Post.
Wenn nicht, mach ihn zu und Danke.

Bitte was? Können wir das bitte mal schriftlich haben?

Nein, das ist meistens in einem Unterverzeichnis pg_log in dem Datenverzeichnis von Postgres.

Das Datenverzeichnis wurde bei der Installation (genauer beim initdb) angegeben. Wo das liegt müsstest Du daher wissen.

Zur Not kannst Du in der Definition des Windows-Service nachsehen. Dort wird in der Kommandozeile der Servicedefinition das Verzeichnis angegeben.

…der auf der ersten Seite von mir gepostete Logfileauszug ist aus dem pg_log Unterverzeichniss.
Er ist zeitlich der jüngste von 2010(!)

Das kann nicht sein wenn PostgreSQL vor ein paar Tagen noch gelaufen ist. Ich tippe mal drauf, dass Du im falschen Data-Verzeichnis nachsiehst.
Hast Du evtl. mehr als eine Installation (gehabt)

nein nur eine.
Habe den Auszug aus C:\Programme\PostgreSQL\8.3\data

Mal dumm gefragt: das Datum auf deinem lokalen System stimmt aber?