Wiki.js - Win 10 - Server will nicht starten

Tameros

Lieutenant
Registriert
Dez. 2010
Beiträge
918
Moin,

folgende Problematik:

Ich wollte mir Wiki.js auf meinem Windows 10 ansehen, entsprechend habe ich Node.js heruntergeladen und soweit installiert, sowie wiki.js entsprechend der Anleitung (https://docs.requarks.io/install/windows)

Nun ist es so, dass der Server nicht startet, siehe hierzu folgende Nachricht:

PS C:\wiki> node server Loading configuration from C:\wiki\config.yml... OK 2020-07-08T16:14:21.428Z [MASTER] info: ======================================= 2020-07-08T16:14:21.429Z [MASTER] info: = Wiki.js 2.4.107 ===================== 2020-07-08T16:14:21.430Z [MASTER] info: ======================================= 2020-07-08T16:14:21.430Z [MASTER] info: Initializing... (node:26480) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of null at Object.init (C:\wiki\server\core\db.js:35:37) at Object.init (C:\wiki\server\core\kernel.js:13:35) at Object.<anonymous> (C:\wiki\server\index.js:33:13) at Module._compile (internal/modules/cjs/loader.js:1201:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10) at Module.load (internal/modules/cjs/loader.js:1050:32) at Function.Module._load (internal/modules/cjs/loader.js:938:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47 (Use `node --trace-warnings ...` to show where the warning was created) (node:26480) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:26480) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. PS C:\wiki>

Habt ihr eine Ahnung, woran das liegen könnte? Auf dem Gebiet bin ich tatsächlich sehr unerfahren und habe keinerlei Kompetenz. Da bin ich für jede Hilfe dankbar!

Liegt es vielleicht daran, dass ich XAMPP mit MySQL installiert habe? Aber selbst wenn ich dort Apache starte oder beende, so erhalte ich immer die selbe Fehlermeldung.

Beste Grüße!
 
Mach doch was in der Fehlerausgabe steht:
Tameros schrieb:
(Use node --trace-warnings ... to show where the warning was created)
Dann erfährst Du möglicherweise, warum eine Variable Null ist, während sie eine Zahl oder eine Zeichenkette sein sollte:
Cannot read property 'toString' of null

Mit XAMPP wird das Nichts zu tun haben, das gilt als sehr unproblematisch und ist für einfache Entwicklungsumgebungen wohl etabliert.
 
Hey, damit habe ich leider keinen großartigen Erfolg:

PS C:\wiki> node --trace-warnings Welcome to Node.js v14.5.0. Type ".help" for more information. > .help .break Sometimes you get stuck, this gets you out .clear Alias for .break .editor Enter editor mode .exit Exit the repl .help Print this help message .load Load JS from a file into the REPL session .save Save all evaluated commands in this REPL session to a file Press ^C to abort current expression, ^D to exit the repl >
 
Probiere PS C:\wiki> node --trace-warnings server oder so ähnlich - Du willst doch Deinen Server starten und dabei diese Warnungen/Fehlermeldungen analysieren.
 
Hi,

Weiss nicht ob du nach einem ganzen Jahr schon eine Lösung gefunden hast aber ich dachte mir ich Poste mal was mir geholfen hat falls jemand vielleicht das gleiche Problem hat.

Cannot read property 'toString' of null

Bedeutet dass irgendwo was fehlt. Bei mir war es das fehlende Passwort für die Datenbank im config.yml

Navigiere mit Powershell in den Ordner in den du die wiki extrahiert hast und dann :

notepad .\config.yml

Füge deine Datenbank infos ein und speicher es ab.

Danach den node server neu starten und es sollte funktionieren (bei mir jedenfalls).
 
Zurück
Oben