debug.log 72 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:479", "message": "init_postgres_database entry", "data": {}, "timestamp": 1767425461815}
  2. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767425461816}
  3. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425461816}
  4. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 4 RUNNING \n (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)\n", "stderr": ""}, "timestamp": 1767425461824}
  5. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425461824}
  6. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767425466357}
  7. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767425466357}
  8. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767425466358}
  9. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:530", "message": "before initdb", "data": {"initdb_exe": "D:\\app\\postgresql\\bin\\initdb.exe", "data_dir": "D:\\app\\postgresql\\data"}, "timestamp": 1767425474729}
  10. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:540", "message": "initdb result", "data": {"returncode": 1, "stdout": "\u06b4\u077f\u03f5\u0373\u013c\u03aa\u00fb \"Administrator\".\n\u00fb\u04b2\u03aa\u0335.\n\u077f\u063d\u02b9\u00f1\u063b \"C\"\u0433\u02bc.\n\u0231\u02a1\u0131\u00fd\u1c7b\u00f5\"english\"\n\n\u05b9\u03aa\u04b3\u0423.\n\n\u013f\u00bc D:/app/postgresql/data ... ", "stderr": "initdb: : \u07b7\u013f\u00bc \"D:/app/postgresql/data\": Permission denied\n"}, "timestamp": 1767425474782}
  11. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767425479449}
  12. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425479449}
  13. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767425479456}
  14. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425479456}
  15. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "D", "location": "postgresql.py:47", "message": "is_service_running entry", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767425479457}
  16. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "D", "location": "postgresql.py:60", "message": "service status check result", "data": {"service_name": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n", "is_running": false}, "timestamp": 1767425479462}
  17. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:112", "message": "start_postgres_service entry", "data": {}, "timestamp": 1767425483416}
  18. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767425483417}
  19. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425483417}
  20. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767425483425}
  21. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425483426}
  22. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A,B", "location": "postgresql.py:118", "message": "got service name", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767425483426}
  23. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:123", "message": "before net start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767425483427}
  24. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:132", "message": "net start result", "data": {"returncode": 2, "stdout": "postgresql-x64-16 - PostgreSQL Server 16 .\n", "stderr": "postgresql-x64-16 - PostgreSQL Server 16 \u07b7\n\n\u00fb\u0431\u03ba\u03b4\n\n NET HELPMSG 3534 \u053b\u00f8\u0130\n\n"}, "timestamp": 1767425485965}
  25. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:142", "message": "net start failed, trying sc start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767425485966}
  26. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:150", "message": "sc start result", "data": {"returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 2 START_PENDING \n (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)\n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0xea60\n PID : 19056\n FLAGS : \n", "stderr": ""}, "timestamp": 1767425485984}
  27. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B", "location": "postgresql.py:238", "message": "sc start command succeeded, waiting to verify", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767425485985}
  28. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,E", "location": "postgresql.py:246", "message": "checking service status after start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767425490987}
  29. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,E", "location": "postgresql.py:256", "message": "service status after start", "data": {"service_name": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n", "is_running": false}, "timestamp": 1767425490997}
  30. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767425490998}
  31. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767425490998}
  32. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": false}, "timestamp": 1767425490999}
  33. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "C:/Program Files/PostgreSQL/15/data", "exists": false}, "timestamp": 1767425491000}
  34. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "C:/Program Files/PostgreSQL/14/data", "exists": false}, "timestamp": 1767425491000}
  35. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "C:/Program Files/PostgreSQL/13/data", "exists": false}, "timestamp": 1767425491000}
  36. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "C:/Program Files/PostgreSQL/12/data", "exists": false}, "timestamp": 1767425491000}
  37. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:186", "message": "data directory not found", "data": {}, "timestamp": 1767425491000}
  38. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:268", "message": "service stopped after start, checking logs", "data": {"service_name": "postgresql-x64-16", "data_dir": null, "status_output": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n"}, "timestamp": 1767425491000}
  39. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767425491001}
  40. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767425491001}
  41. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": false}, "timestamp": 1767425491001}
  42. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "C:/Program Files/PostgreSQL/15/data", "exists": false}, "timestamp": 1767425491001}
  43. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "C:/Program Files/PostgreSQL/14/data", "exists": false}, "timestamp": 1767425491002}
  44. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "C:/Program Files/PostgreSQL/13/data", "exists": false}, "timestamp": 1767425491002}
  45. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "C:/Program Files/PostgreSQL/12/data", "exists": false}, "timestamp": 1767425491002}
  46. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:186", "message": "data directory not found", "data": {}, "timestamp": 1767425491002}
  47. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:299", "message": "exception checking data directory", "data": {"error": "\u65e0\u6cd5\u627e\u5230 PostgreSQL \u6570\u636e\u76ee\u5f55"}, "timestamp": 1767425491003}
  48. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:307", "message": "reading windows event log", "data": {}, "timestamp": 1767425491003}
  49. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:318", "message": "windows event log retrieved", "data": {"event_log": "\u06b5\u0234\u02b1\u02b1\n\n initdb pg_basebackup \u0533\u02bc\u04bb PostgreSQL \u013f\u00bc.\n\npostgres: \u07b7\u013f\u00bc \"D:/app/postgresql/data\": No such file or directory\n\n\n"}, "timestamp": 1767425491129}
  50. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:479", "message": "init_postgres_database entry", "data": {}, "timestamp": 1767425522924}
  51. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767425522925}
  52. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425522925}
  53. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767425522933}
  54. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425522933}
  55. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767425525024}
  56. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767425525024}
  57. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": false}, "timestamp": 1767425525025}
  58. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "C:/Program Files/PostgreSQL/15/data", "exists": false}, "timestamp": 1767425525025}
  59. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "C:/Program Files/PostgreSQL/14/data", "exists": false}, "timestamp": 1767425525025}
  60. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "C:/Program Files/PostgreSQL/13/data", "exists": false}, "timestamp": 1767425525025}
  61. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "C:/Program Files/PostgreSQL/12/data", "exists": false}, "timestamp": 1767425525026}
  62. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:186", "message": "data directory not found", "data": {}, "timestamp": 1767425525026}
  63. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:575", "message": "exception in init_postgres_database", "data": {"error": "\u65e0\u6cd5\u627e\u5230 PostgreSQL \u6570\u636e\u76ee\u5f55", "error_type": "FileNotFoundError"}, "timestamp": 1767425525026}
  64. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:479", "message": "init_postgres_database entry", "data": {}, "timestamp": 1767425555873}
  65. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767425555874}
  66. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425555874}
  67. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767425555879}
  68. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425555879}
  69. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767425557961}
  70. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767425557961}
  71. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767425557962}
  72. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:530", "message": "before initdb", "data": {"initdb_exe": "D:\\app\\postgresql\\bin\\initdb.exe", "data_dir": "D:\\app\\postgresql\\data"}, "timestamp": 1767425557964}
  73. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:540", "message": "initdb result", "data": {"returncode": 0, "stdout": "\u06b4\u077f\u03f5\u0373\u013c\u03aa\u00fb \"Administrator\".\n\u00fb\u04b2\u03aa\u0335.\n\u077f\u063d\u02b9\u00f1\u063b \"C\"\u0433\u02bc.\n\u0231\u02a1\u0131\u00fd\u1c7b\u00f5\"english\"\n\n\u05b9\u03aa\u04b3\u0423.\n\n\u07b8\u0474\u013f\u00bc D:/app/postgresql/data \u0228 ... \u0279\n\u06b4\u013f\u00bc ... \u0279\n\u0461\u032c\u06b4\u02b5 ......windows\n\u0461\u012c (max_connections) ... 100\n\u0461\u012c\u03f9\u0421 (shared_buffers) ... 128MB\n\u0461\u012c\u02b1 ... Asia/Shanghai\n\u013c ... \u0279\n\u053e\u067d\u0171 ...\u0279\n\u05b4\u053e\u067a\u02bc ...\u0279\n\u036c\u0775...\u0279\n\n\u0279\u06bf\uefea\u077f\n\n ^\"D^:^\\app^\\postgresql^\\bin^\\pg^_ctl^\" -D ^\"D^:^\\app^\\postgresql^\\data^\" -l \u05be\u013c start\n\n", "stderr": ""}, "timestamp": 1767425560576}
  74. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:112", "message": "start_postgres_service entry", "data": {}, "timestamp": 1767425562591}
  75. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767425562591}
  76. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425562592}
  77. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767425562598}
  78. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425562598}
  79. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A,B", "location": "postgresql.py:118", "message": "got service name", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767425562599}
  80. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:123", "message": "before net start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767425562599}
  81. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:132", "message": "net start result", "data": {"returncode": 0, "stdout": "postgresql-x64-16 - PostgreSQL Server 16 .\npostgresql-x64-16 - PostgreSQL Server 16 \u047e\u0279\n\n", "stderr": ""}, "timestamp": 1767425565128}
  82. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B", "location": "postgresql.py:137", "message": "net start succeeded", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767425565128}
  83. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767425569760}
  84. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425569760}
  85. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 4 RUNNING \n (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)\n", "stderr": ""}, "timestamp": 1767425569768}
  86. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767425569769}
  87. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "D", "location": "postgresql.py:47", "message": "is_service_running entry", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767425569769}
  88. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "D", "location": "postgresql.py:60", "message": "service status check result", "data": {"service_name": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 4 RUNNING \n (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)\n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT ", "is_running": true}, "timestamp": 1767425569776}
  89. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426076003}
  90. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426076003}
  91. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 4 RUNNING \n (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)\n", "stderr": ""}, "timestamp": 1767426076011}
  92. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426076011}
  93. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767426081547}
  94. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767426081548}
  95. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767426081548}
  96. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:112", "message": "start_postgres_service entry", "data": {}, "timestamp": 1767426084734}
  97. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426084737}
  98. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426084738}
  99. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767426084749}
  100. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426084749}
  101. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A,B", "location": "postgresql.py:118", "message": "got service name", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426084749}
  102. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:123", "message": "before net start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426084750}
  103. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:132", "message": "net start result", "data": {"returncode": 2, "stdout": "postgresql-x64-16 - PostgreSQL Server 16 .\n", "stderr": "postgresql-x64-16 - PostgreSQL Server 16 \u07b7\n\n\u00fb\u0431\u03ba\u03b4\n\n NET HELPMSG 3534 \u053b\u00f8\u0130\n\n"}, "timestamp": 1767426087288}
  104. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:142", "message": "net start failed, trying sc start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426087289}
  105. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:150", "message": "sc start result", "data": {"returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 2 START_PENDING \n (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)\n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0xea60\n PID : 28776\n FLAGS : \n", "stderr": ""}, "timestamp": 1767426087304}
  106. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B", "location": "postgresql.py:238", "message": "sc start command succeeded, waiting to verify", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426087304}
  107. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,E", "location": "postgresql.py:246", "message": "checking service status after start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426092320}
  108. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,E", "location": "postgresql.py:256", "message": "service status after start", "data": {"service_name": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n", "is_running": false}, "timestamp": 1767426092334}
  109. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767426092334}
  110. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767426092335}
  111. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767426092335}
  112. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:268", "message": "service stopped after start, checking logs", "data": {"service_name": "postgresql-x64-16", "data_dir": "D:\\app\\postgresql\\data", "status_output": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n"}, "timestamp": 1767426092336}
  113. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767426092336}
  114. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767426092336}
  115. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767426092337}
  116. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:287", "message": "checking data directory validity", "data": {"data_dir": "D:\\app\\postgresql\\data", "pg_version_exists": true}, "timestamp": 1767426092337}
  117. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:307", "message": "reading windows event log", "data": {}, "timestamp": 1767426092338}
  118. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:318", "message": "windows event log retrieved", "data": {"event_log": "\u06b5\u0234\u02b1\u02b1\n\n2026-01-03 15:41:27 CST : \u07b7\u013c \"postmaster.pid\": Permission denied\n\n\u0234 ...\n\n\n"}, "timestamp": 1767426092487}
  119. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426100744}
  120. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426100745}
  121. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767426100758}
  122. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426100758}
  123. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "D", "location": "postgresql.py:47", "message": "is_service_running entry", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426100759}
  124. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "D", "location": "postgresql.py:60", "message": "service status check result", "data": {"service_name": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n", "is_running": false}, "timestamp": 1767426100767}
  125. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:112", "message": "start_postgres_service entry", "data": {}, "timestamp": 1767426104365}
  126. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426104365}
  127. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426104366}
  128. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767426104377}
  129. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426104377}
  130. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A,B", "location": "postgresql.py:118", "message": "got service name", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426104378}
  131. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:123", "message": "before net start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426104378}
  132. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:132", "message": "net start result", "data": {"returncode": 2, "stdout": "postgresql-x64-16 - PostgreSQL Server 16 .\n", "stderr": "postgresql-x64-16 - PostgreSQL Server 16 \u07b7\n\n\u00fb\u0431\u03ba\u03b4\n\n NET HELPMSG 3534 \u053b\u00f8\u0130\n\n"}, "timestamp": 1767426106919}
  133. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:142", "message": "net start failed, trying sc start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426106920}
  134. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:150", "message": "sc start result", "data": {"returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 2 START_PENDING \n (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)\n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0xea60\n PID : 4184\n FLAGS : \n", "stderr": ""}, "timestamp": 1767426106942}
  135. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B", "location": "postgresql.py:238", "message": "sc start command succeeded, waiting to verify", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426106943}
  136. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,E", "location": "postgresql.py:246", "message": "checking service status after start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426111958}
  137. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,E", "location": "postgresql.py:256", "message": "service status after start", "data": {"service_name": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n", "is_running": false}, "timestamp": 1767426111964}
  138. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767426111965}
  139. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767426111965}
  140. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767426111966}
  141. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:268", "message": "service stopped after start, checking logs", "data": {"service_name": "postgresql-x64-16", "data_dir": "D:\\app\\postgresql\\data", "status_output": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n"}, "timestamp": 1767426111966}
  142. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767426111966}
  143. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767426111966}
  144. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767426111967}
  145. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:287", "message": "checking data directory validity", "data": {"data_dir": "D:\\app\\postgresql\\data", "pg_version_exists": true}, "timestamp": 1767426111967}
  146. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:307", "message": "reading windows event log", "data": {}, "timestamp": 1767426111968}
  147. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:318", "message": "windows event log retrieved", "data": {"event_log": "\u06b5\u0234\u02b1\u02b1\n\n2026-01-03 15:41:47 CST : \u07b7\u013c \"postmaster.pid\": Permission denied\n\n\u0234 ...\n\n\n"}, "timestamp": 1767426112099}
  148. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426114604}
  149. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426114605}
  150. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767426114615}
  151. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426114615}
  152. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "D", "location": "postgresql.py:47", "message": "is_service_running entry", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426114616}
  153. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "D", "location": "postgresql.py:60", "message": "service status check result", "data": {"service_name": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n", "is_running": false}, "timestamp": 1767426114624}
  154. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:636", "message": "restore_from_backup entry", "data": {"backup_path": "D:\\code\\vue\\greater_wms\\backup\\base_backup\\20260103_144522"}, "timestamp": 1767426250827}
  155. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:669", "message": "backup version read", "data": {"backup_version": "16"}, "timestamp": 1767426250827}
  156. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:675", "message": "stopping postgres service", "data": {}, "timestamp": 1767426250828}
  157. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426250828}
  158. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426250828}
  159. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767426250834}
  160. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426250834}
  161. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767426253929}
  162. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767426253931}
  163. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767426253934}
  164. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:680", "message": "got data directory", "data": {"data_dir": "D:\\app\\postgresql\\data"}, "timestamp": 1767426253936}
  165. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:688", "message": "checking existing data directory", "data": {"data_dir": "D:\\app\\postgresql\\data", "exists": true, "has_content": true}, "timestamp": 1767426253937}
  166. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:695", "message": "current data directory backed up", "data": {"backup_dir": "D:\\app\\postgresql\\data_backup_1767426253"}, "timestamp": 1767426253939}
  167. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:702", "message": "starting file copy", "data": {"backup_dir": "D:\\code\\vue\\greater_wms\\backup\\base_backup\\20260103_144522", "data_dir": "D:\\app\\postgresql\\data"}, "timestamp": 1767426253943}
  168. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:724", "message": "file copy completed", "data": {"copied_count": 26, "items": ["file:backup_label", "file:backup_manifest", "dir:base", "file:current_logfiles", "dir:global", "dir:log", "dir:pg_commit_ts", "dir:pg_dynshmem", "file:pg_hba.conf", "file:pg_ident.conf"]}, "timestamp": 1767426255157}
  169. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:752", "message": "starting postgres service", "data": {}, "timestamp": 1767426255158}
  170. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:112", "message": "start_postgres_service entry", "data": {}, "timestamp": 1767426257168}
  171. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426257170}
  172. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426257172}
  173. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767426257184}
  174. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426257185}
  175. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A,B", "location": "postgresql.py:118", "message": "got service name", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426257185}
  176. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:123", "message": "before net start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426257186}
  177. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:132", "message": "net start result", "data": {"returncode": 2, "stdout": "postgresql-x64-16 - PostgreSQL Server 16 .\n", "stderr": "postgresql-x64-16 - PostgreSQL Server 16 \u07b7\n\n\u00fb\u0431\u03ba\u03b4\n\n NET HELPMSG 3534 \u053b\u00f8\u0130\n\n"}, "timestamp": 1767426259721}
  178. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:142", "message": "net start failed, trying sc start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426259722}
  179. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:150", "message": "sc start result", "data": {"returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 2 START_PENDING \n (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)\n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0xea60\n PID : 11412\n FLAGS : \n", "stderr": ""}, "timestamp": 1767426259743}
  180. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B", "location": "postgresql.py:238", "message": "sc start command succeeded, waiting to verify", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426259744}
  181. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,E", "location": "postgresql.py:246", "message": "checking service status after start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426264746}
  182. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,E", "location": "postgresql.py:256", "message": "service status after start", "data": {"service_name": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n", "is_running": false}, "timestamp": 1767426264761}
  183. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767426264761}
  184. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767426264762}
  185. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767426264762}
  186. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:268", "message": "service stopped after start, checking logs", "data": {"service_name": "postgresql-x64-16", "data_dir": "D:\\app\\postgresql\\data", "status_output": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n"}, "timestamp": 1767426264763}
  187. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767426264763}
  188. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767426264763}
  189. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767426264764}
  190. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:287", "message": "checking data directory validity", "data": {"data_dir": "D:\\app\\postgresql\\data", "pg_version_exists": true}, "timestamp": 1767426264765}
  191. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:307", "message": "reading windows event log", "data": {}, "timestamp": 1767426264765}
  192. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:318", "message": "windows event log retrieved", "data": {"event_log": "\u06b5\u0234\u02b1\u02b1\n\n2026-01-03 15:44:19 CST : \u07b7\u013c \"postmaster.pid\": Permission denied\n\n\u0234 ...\n\n\n"}, "timestamp": 1767426264910}
  193. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:754", "message": "service start result", "data": {"started": false}, "timestamp": 1767426264910}
  194. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:769", "message": "service start failed", "data": {}, "timestamp": 1767426264910}
  195. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:636", "message": "restore_from_backup entry", "data": {"backup_path": "D:\\code\\vue\\greater_wms\\backup\\base_backup\\20260103_144522"}, "timestamp": 1767426278198}
  196. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:669", "message": "backup version read", "data": {"backup_version": "16"}, "timestamp": 1767426278198}
  197. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:675", "message": "stopping postgres service", "data": {}, "timestamp": 1767426278198}
  198. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426278199}
  199. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426278199}
  200. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767426278205}
  201. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426278205}
  202. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767426281294}
  203. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767426281295}
  204. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767426281295}
  205. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:680", "message": "got data directory", "data": {"data_dir": "D:\\app\\postgresql\\data"}, "timestamp": 1767426281296}
  206. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:688", "message": "checking existing data directory", "data": {"data_dir": "D:\\app\\postgresql\\data", "exists": true, "has_content": true}, "timestamp": 1767426281296}
  207. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:695", "message": "current data directory backed up", "data": {"backup_dir": "D:\\app\\postgresql\\data_backup_1767426281"}, "timestamp": 1767426281299}
  208. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:702", "message": "starting file copy", "data": {"backup_dir": "D:\\code\\vue\\greater_wms\\backup\\base_backup\\20260103_144522", "data_dir": "D:\\app\\postgresql\\data"}, "timestamp": 1767426281300}
  209. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:724", "message": "file copy completed", "data": {"copied_count": 26, "items": ["file:backup_label", "file:backup_manifest", "dir:base", "file:current_logfiles", "dir:global", "dir:log", "dir:pg_commit_ts", "dir:pg_dynshmem", "file:pg_hba.conf", "file:pg_ident.conf"]}, "timestamp": 1767426282500}
  210. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:752", "message": "starting postgres service", "data": {}, "timestamp": 1767426282501}
  211. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:112", "message": "start_postgres_service entry", "data": {}, "timestamp": 1767426284505}
  212. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426284505}
  213. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426284506}
  214. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767426284515}
  215. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426284515}
  216. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A,B", "location": "postgresql.py:118", "message": "got service name", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426284516}
  217. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:123", "message": "before net start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426284516}
  218. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:132", "message": "net start result", "data": {"returncode": 2, "stdout": "postgresql-x64-16 - PostgreSQL Server 16 .\n", "stderr": "postgresql-x64-16 - PostgreSQL Server 16 \u07b7\n\n\u00fb\u0431\u03ba\u03b4\n\n NET HELPMSG 3534 \u053b\u00f8\u0130\n\n"}, "timestamp": 1767426287058}
  219. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:142", "message": "net start failed, trying sc start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426287058}
  220. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:150", "message": "sc start result", "data": {"returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 2 START_PENDING \n (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)\n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0xea60\n PID : 29004\n FLAGS : \n", "stderr": ""}, "timestamp": 1767426287071}
  221. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B", "location": "postgresql.py:238", "message": "sc start command succeeded, waiting to verify", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426287071}
  222. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,E", "location": "postgresql.py:246", "message": "checking service status after start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426292084}
  223. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,E", "location": "postgresql.py:256", "message": "service status after start", "data": {"service_name": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n", "is_running": false}, "timestamp": 1767426292099}
  224. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767426292100}
  225. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767426292100}
  226. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767426292100}
  227. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:268", "message": "service stopped after start, checking logs", "data": {"service_name": "postgresql-x64-16", "data_dir": "D:\\app\\postgresql\\data", "status_output": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT : 0x0\n WAIT_HINT : 0x0\n"}, "timestamp": 1767426292101}
  228. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767426292101}
  229. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767426292102}
  230. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767426292102}
  231. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:287", "message": "checking data directory validity", "data": {"data_dir": "D:\\app\\postgresql\\data", "pg_version_exists": true}, "timestamp": 1767426292103}
  232. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:307", "message": "reading windows event log", "data": {}, "timestamp": 1767426292103}
  233. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:318", "message": "windows event log retrieved", "data": {"event_log": "\u06b5\u0234\u02b1\u02b1\n\n2026-01-03 15:44:47 CST : \u07b7\u013c \"postmaster.pid\": Permission denied\n\n\u0234 ...\n\n\n"}, "timestamp": 1767426292246}
  234. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:754", "message": "service start result", "data": {"started": false}, "timestamp": 1767426292246}
  235. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:769", "message": "service start failed", "data": {}, "timestamp": 1767426292246}
  236. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:636", "message": "restore_from_backup entry", "data": {"backup_path": "D:\\code\\vue\\greater_wms\\backup\\base_backup\\20260103_144522"}, "timestamp": 1767426322953}
  237. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:669", "message": "backup version read", "data": {"backup_version": "16"}, "timestamp": 1767426322954}
  238. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:675", "message": "stopping postgres service", "data": {}, "timestamp": 1767426322954}
  239. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426322954}
  240. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426322955}
  241. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767426322961}
  242. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426322961}
  243. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:160", "message": "get_postgres_data_dir entry", "data": {}, "timestamp": 1767426326048}
  244. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:175", "message": "checking PGDATA env", "data": {"env_path": null, "exists": false}, "timestamp": 1767426326048}
  245. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "E", "location": "postgresql.py:182", "message": "checking data path", "data": {"path": "D:/app/postgresql/data", "exists": true}, "timestamp": 1767426326049}
  246. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:680", "message": "got data directory", "data": {"data_dir": "D:\\app\\postgresql\\data"}, "timestamp": 1767426326051}
  247. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:688", "message": "checking existing data directory", "data": {"data_dir": "D:\\app\\postgresql\\data", "exists": true, "has_content": true}, "timestamp": 1767426326052}
  248. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:695", "message": "current data directory backed up", "data": {"backup_dir": "D:\\app\\postgresql\\data_backup_1767426326"}, "timestamp": 1767426326057}
  249. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:702", "message": "starting file copy", "data": {"backup_dir": "D:\\code\\vue\\greater_wms\\backup\\base_backup\\20260103_144522", "data_dir": "D:\\app\\postgresql\\data"}, "timestamp": 1767426326058}
  250. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:724", "message": "file copy completed", "data": {"copied_count": 26, "items": ["file:backup_label", "file:backup_manifest", "dir:base", "file:current_logfiles", "dir:global", "dir:log", "dir:pg_commit_ts", "dir:pg_dynshmem", "file:pg_hba.conf", "file:pg_ident.conf"]}, "timestamp": 1767426327221}
  251. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426327221}
  252. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426327221}
  253. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767426327228}
  254. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426327229}
  255. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:760", "message": "set permissions", "data": {"account": "NT AUTHORITY\\NETWORK SERVICE", "data_dir": "D:\\app\\postgresql\\data"}, "timestamp": 1767426327683}
  256. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:752", "message": "starting postgres service", "data": {}, "timestamp": 1767426328109}
  257. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:112", "message": "start_postgres_service entry", "data": {}, "timestamp": 1767426330118}
  258. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426330120}
  259. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426330122}
  260. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 1 STOPPED \n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0", "stderr": ""}, "timestamp": 1767426330141}
  261. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426330141}
  262. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A,B", "location": "postgresql.py:118", "message": "got service name", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426330142}
  263. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:123", "message": "before net start", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426330142}
  264. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B,C", "location": "postgresql.py:132", "message": "net start result", "data": {"returncode": 0, "stdout": "postgresql-x64-16 - PostgreSQL Server 16 ..\npostgresql-x64-16 - PostgreSQL Server 16 \u047e\u0279\n\n", "stderr": ""}, "timestamp": 1767426335186}
  265. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "B", "location": "postgresql.py:137", "message": "net start succeeded", "data": {"service_name": "postgresql-x64-16"}, "timestamp": 1767426335187}
  266. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:754", "message": "service start result", "data": {"started": true}, "timestamp": 1767426335187}
  267. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "D", "location": "postgresql.py:47", "message": "is_service_running entry", "data": {"service_name": null}, "timestamp": 1767426340202}
  268. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:19", "message": "get_postgres_service_name entry", "data": {}, "timestamp": 1767426340202}
  269. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:35", "message": "checking service", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426340203}
  270. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:44", "message": "sc query result", "data": {"service": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 4 RUNNING \n (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)\n", "stderr": ""}, "timestamp": 1767426340211}
  271. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "A", "location": "postgresql.py:46", "message": "service found", "data": {"service": "postgresql-x64-16"}, "timestamp": 1767426340211}
  272. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "D", "location": "postgresql.py:60", "message": "service status check result", "data": {"service_name": "postgresql-x64-16", "returncode": 0, "stdout": "\nSERVICE_NAME: postgresql-x64-16 \n TYPE : 10 WIN32_OWN_PROCESS \n STATE : 4 RUNNING \n (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)\n WIN32_EXIT_CODE : 0 (0x0)\n SERVICE_EXIT_CODE : 0 (0x0)\n CHECKPOINT ", "is_running": true}, "timestamp": 1767426340216}
  273. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:762", "message": "service status check", "data": {"is_running": true}, "timestamp": 1767426340217}
  274. {"sessionId": "debug-session", "runId": "run1", "hypothesisId": "RESTORE", "location": "postgresql.py:764", "message": "restore completed successfully", "data": {}, "timestamp": 1767426340217}