crossbario / crossbar

Crossbar.io - WAMP application router
https://crossbar.io/
Other
2.05k stars 275 forks source link

crossbar 22.6.1 does not start #2038

Closed blinkingmatt closed 2 years ago

blinkingmatt commented 2 years ago

Upgraded from crossbar version 22.4.1 to 22.6.1 on Windows 10, Python 3.9.6 Afterwards crossbar does not start anymore and emits following log:

C:\dev\python>.\env39\Scripts\crossbar start --cbdir app\config\crossbar\.crossbar_dev
2022-07-28T17:08:58+0200 [Controller  16924] Stale Crossbar.io PID file (pointing to non-existing process with PID 19304) C:\dev\python\app\config\crossbar\.crossbar_dev\node.pid removed
2022-07-28T17:08:58+0200 [Controller  16924]     :::::   :   :::::   / ___/______  ___ ___ / /  ___ _____  (_)__
2022-07-28T17:08:58+0200 [Controller  16924]     :::::::   :::::::  / /__/ __/ _ \(_-<(_-</ _ \/ _ `/ __/ / / _ \
2022-07-28T17:08:58+0200 [Controller  16924]     :::::   :   :::::  \___/_/  \___/___/___/_.__/\_,_/_/ (_)_/\___/
2022-07-28T17:08:58+0200 [Controller  16924]           :::::
2022-07-28T17:08:58+0200 [Controller  16924]
2022-07-28T17:08:58+0200 [Controller  16924]     Copyright (c) 2013-2022 Crossbar.io Technologies GmbH. Licensed under EUPLv1.2.
2022-07-28T17:08:58+0200 [Controller  16924]
2022-07-28T17:08:58+0200 [Controller  16924] Booting standalone node .. <crossbar.node.main._run_command_start>
2022-07-28T17:08:58+0200 [Controller  16924] Node configuration loaded [config_source=localfile, config_path=C:\dev\python\app\config\crossbar\.crossbar_dev\config.json]
2022-07-28T17:08:58+0200 [Controller  16924] Node key files exist and are valid. Node public key is 0x14afbf4509b7db21ec8b14ca45c0ea56a35922aeba338e172cbf580fce81d0f8
2022-07-28T17:08:58+0200 [Controller  16924] File permissions on node public key fixed
2022-07-28T17:08:58+0200 [Controller  16924] File permissions on node private key fixed
2022-07-28T17:08:58+0200 [Controller  16924] Node key loaded from C:\dev\python\app\config\crossbar\.crossbar_dev\key.priv
2022-07-28T17:08:58+0200 [Controller  16924]   File "c:\python39\lib\runpy.py", line 197, in _run_module_as_main
2022-07-28T17:08:58+0200 [Controller  16924]     return _run_code(code, main_globals, None,
2022-07-28T17:08:58+0200 [Controller  16924]   File "c:\python39\lib\runpy.py", line 87, in _run_code
2022-07-28T17:08:58+0200 [Controller  16924]     exec(code, run_globals)
2022-07-28T17:08:58+0200 [Controller  16924]   File "C:\dev\python\env39\Scripts\crossbar.exe\__main__.py", line 7, in <module>
2022-07-28T17:08:58+0200 [Controller  16924]   File "c:\dev\python\env39\lib\site-packages\crossbar\__init__.py", line 307, in run
2022-07-28T17:08:58+0200 [Controller  16924]     sys.exit(main(executable, args, reactor, personality))
2022-07-28T17:08:58+0200 [Controller  16924]   File "c:\dev\python\env39\lib\site-packages\crossbar\node\main.py", line 1275, in main
2022-07-28T17:08:58+0200 [Controller  16924]     options.func(options, reactor=reactor, personality=personality)
2022-07-28T17:08:58+0200 [Controller  16924]   File "c:\dev\python\env39\lib\site-packages\crossbar\node\main.py", line 818, in _run_command_start
2022-07-28T17:08:58+0200 [Controller  16924]     node.load_keys(options.cbdir)
2022-07-28T17:08:58+0200 [Controller  16924]   File "c:\dev\python\env39\lib\site-packages\crossbar\node\node.py", line 172, in load_keys
2022-07-28T17:08:58+0200 [Controller  16924]     self._node_secmod = SecurityModuleMemory.from_keyfile(os.path.join(cbdir, privfile))
2022-07-28T17:08:58+0200 [Controller  16924]   File "c:\dev\python\env39\lib\site-packages\autobahn\xbr\_secmod.py", line 501, in from_keyfile
2022-07-28T17:08:58+0200 [Controller  16924]     raise RuntimeError('"private-key-eth" not found in keyfile {}'.format(keyfile))
2022-07-28T17:08:58+0200 [Controller  16924] RuntimeError: "private-key-eth" not found in keyfile C:\dev\python\app\config\crossbar\.crossbar_dev\key.priv
oberstet commented 2 years ago

the simplest way to resolve: delete app\config\crossbar\.crossbar_dev\key.* and restart the node. this will re-create new node keys (incl. the missing type)

blinkingmatt commented 2 years ago

Thank you Tobias,

I should have guessed it …

Matthias

Von: Tobias Oberstein @.> Gesendet: Donnerstag, 28. Juli 2022 18:18 An: crossbario/crossbar @.> Cc: Matthias Kirst @.>; Author @.> Betreff: Re: [crossbario/crossbar] crossbar 22.6.1 does not start (Issue #2038)

the simplest way to resolve: delete app\config\crossbar.crossbar_dev\key.* and restart the node. this will re-create new node keys (incl. the missing type)

— Reply to this email directly, view it on GitHubhttps://github.com/crossbario/crossbar/issues/2038#issuecomment-1198363074, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH3AZTV72STP7SQNHXL6SXDVWKXC5ANCNFSM545X7HQQ. You are receiving this because you authored the thread.Message ID: @.**@.>>