Skip to content

Commit f236341

Browse files
committed
Italian Promises and Letter Trails.
1 parent e9ccbc4 commit f236341

5 files changed

Lines changed: 66 additions & 24 deletions

File tree

.idea/runConfigurations/Runnable_for_Tests_for_Industries.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exception.log

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,13 @@ java.lang.RuntimeException: MySQL not installed — sc query reports service doe
5757
at database.N21AuthConfig.ensureMysqlRunning(N21AuthConfig.java:106)
5858
at Main.<init>(Main.java:91)
5959
at Main.main(Main.java:84)
60+
[2026-06-19T13:10:11.917819200] FATAL — N21AuthConfig startup failure
61+
java.lang.RuntimeException: MySQL not installed — sc query reports service does not exist
62+
at database.N21AuthConfig.ensureMysqlRunning(N21AuthConfig.java:106)
63+
at Main.<init>(Main.java:91)
64+
at Main.main(Main.java:84)
65+
[2026-06-19T13:10:55.757352100] FATAL — N21AuthConfig startup failure
66+
java.lang.RuntimeException: MySQL not installed — sc query reports service does not exist
67+
at database.N21AuthConfig.ensureMysqlRunning(N21AuthConfig.java:106)
68+
at Main.<init>(Main.java:91)
69+
at Main.main(Main.java:84)

logging/clamav.log

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,3 +1781,11 @@ More help is available by typing NET HELPMSG 2185.
17811781

17821782
More help is available by typing NET HELPMSG 2185.
17831783

1784+
[2026-06-19T13:10:17.561164] [shutdown] clamd stop (exit=2): The service name is invalid.
1785+
1786+
More help is available by typing NET HELPMSG 2185.
1787+
1788+
[2026-06-19T13:11:01.3835134] [shutdown] clamd stop (exit=2): The service name is invalid.
1789+
1790+
More help is available by typing NET HELPMSG 2185.
1791+

logging/shutdown.log

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,29 @@ Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
8989
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1078)
9090
... 3 more
9191

92+
[2026-06-19 13:10:17] [shutdown] IOException: Cannot run program "bash": CreateProcess error=2, The system cannot find the file specified
93+
java.io.IOException: Cannot run program "bash": CreateProcess error=2, The system cannot find the file specified
94+
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1112)
95+
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1046)
96+
at shutdown.ShutdownHooks.run(ShutdownHooks.java:48)
97+
at java.base/java.lang.Thread.run(Thread.java:1474)
98+
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
99+
at java.base/java.lang.ProcessImpl.create(Native Method)
100+
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:485)
101+
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:146)
102+
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1078)
103+
... 3 more
104+
105+
[2026-06-19 13:11:01] [shutdown] IOException: Cannot run program "bash": CreateProcess error=2, The system cannot find the file specified
106+
java.io.IOException: Cannot run program "bash": CreateProcess error=2, The system cannot find the file specified
107+
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1112)
108+
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1046)
109+
at shutdown.ShutdownHooks.run(ShutdownHooks.java:48)
110+
at java.base/java.lang.Thread.run(Thread.java:1474)
111+
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
112+
at java.base/java.lang.ProcessImpl.create(Native Method)
113+
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:485)
114+
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:146)
115+
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1078)
116+
... 3 more
117+

source/database/N21AuthConfig.java

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -156,36 +156,20 @@ else if (running)
156156
haltWithException(e);
157157
}
158158

159-
// ── 1b. Verify mysqld process is alive on port 3306 ────────────────────
160-
try
159+
// ── 1b. Verify mysqld daemon is reachable on port 3306 ─────────────────
160+
try (java.net.Socket sock = new java.net.Socket())
161161
{
162-
ProcessBuilder pb = new ProcessBuilder("cmd.exe", "/c", "netstat", "-ano", "|", "findstr", "3306");
163-
pb.redirectErrorStream(true);
164-
Process proc = pb.start();
165-
String output = new BufferedReader(new InputStreamReader(proc.getInputStream()))
166-
.lines().collect(Collectors.joining("\n"));
167-
proc.waitFor();
168-
169-
if (output.contains("LISTENING"))
170-
{
171-
CommonRails.printSystemComponent(this, this.hashCode(),
172-
". MYSQLD — daemon LISTENING on port 3306 .",
173-
ColorPalette.COLOR_LIME_GREEN);
174-
}
175-
else
176-
{
177-
CommonRails.printSystemComponent(this, this.hashCode(),
178-
". MYSQLD — no daemon listening on port 3306 .",
179-
ColorPalette.COLOR_STANDARD_RED);
180-
haltWithException(new RuntimeException("mysqld not listening on port 3306 — daemon may not have started"));
181-
}
162+
sock.connect(new java.net.InetSocketAddress("127.0.0.1", PORT), 3000);
163+
CommonRails.printSystemComponent(this, this.hashCode(),
164+
". MYSQLD — daemon reachable on port " + PORT + " .",
165+
ColorPalette.COLOR_LIME_GREEN);
182166
}
183167
catch (Exception e)
184168
{
185169
CommonRails.printSystemComponent(this, this.hashCode(),
186-
". MYSQLD port check failed: " + e.getMessage() + " .",
170+
". MYSQLD — daemon NOT reachable on port " + PORT + ": " + e.getMessage() + " .",
187171
ColorPalette.COLOR_STANDARD_RED);
188-
haltWithException(e);
172+
haltWithException(new RuntimeException("mysqld not reachable on port " + PORT));
189173
}
190174

191175
// ── 2. JDBC login test using credentials from mysql.auth.xml ──────────

0 commit comments

Comments
 (0)