sunweaver / nextcloud-high-performance-backend-setup

GNU General Public License v2.0
79 stars 12 forks source link

Fehler(!?) im Installationsskript? #95

Closed crzp closed 1 year ago

crzp commented 1 year ago

aktuelle debian 11 vm in proxmox. vm hat interne IP 10.0.0.11 / pve nattet alles an extra public IP zu dieser VM und umgekehrt

mitten im installationsprozess sehe ich folgendes: (beachte den Bereich beim Anlegen des Benutzers/Gruppe und die folgenden Zeilen -> unknown option: allow-badname)

...
Create '/etc/nextcloud-spreed-signaling' directory
Creating '_signaling' account
Verwendung eines zweifelhaften Benutzernamens wird erlaubt.
Lege Systembenutzer »_signaling« (UID 107) an ...
Lege neue Gruppe »_signaling« (GID 113) an ...
Lege neuen Benutzer »_signaling« (UID 107) mit Gruppe »_signaling« an ...
Erstelle Home-Verzeichnis »/var/lib/nextcloud-spreed-signaling« ...
Unknown option: allow-badname
adduser [--home VERZ] [--shell SHELL] [--no-create-home] [--uid ID]
[--firstuid ID] [--lastuid ID] [--gecos GECOS] [--ingroup GRUPPE | --gid ID]
[--disabled-password] [--disabled-login] [--add_extra_groups] BENUTZER
   Fügt einen normalen Benutzer hinzu

adduser --system [--home VERZ] [--shell SHELL] [--no-create-home] [--uid ID]
[--gecos GECOS] [--group | --ingroup GRUPPE | --gid ID] [--disabled-password]
[--disabled-login] [--add_extra_groups] BENUTZER
   Fügt einen Systembenutzer hinzu

adduser --group [--gid ID] GRUPPE
addgroup [--gid ID] GRUPPE
   Fügt eine Benutzergruppe hinzu

addgroup --system [--gid ID] GRUPPE
   Fügt eine Systemgruppe hinzu

adduser BENUTZER GRUPPE
   Fügt einen existierenden Benutzer einer existierenden Gruppe hinzu

Allgemeine Optionen:
  --quiet | -q      Keine Prozessinformationen an stdout senden
  --force-badname   Benutzernamen erlauben, die nicht dem regulären Ausdruck
                    der Konfigurationsvariablen NAME_REGEX entsprechen
  --help | -h       Hilfstext zur Verwendung
  --version | -v    Versionsnummer und Copyright
  --conf | -c DATEI benutze DATEI als Konfigurationsdatei

Would have built nextcloud-spreed-signaling now…
Building coturn…
Installing necessary packages…
...

Das Script läuft dann zu ende durch und zeigt alle daten an, aber es funktioniert in Nextcloud nicht. Habe mehrfach die Keys und Urls kontrolliert.

Log aus der fraglichen Nextcloud instanz:

[spreed] Fehler: GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to sub.domain.tld port 443: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://sub.domain.tld/standalone-signaling/api/v1/room/ov82a5k2 at <<closure>>

 0. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 158
    GuzzleHttp\Handler\CurlFactory::createRejection(["GuzzleHttp\\Ha ... l], [7,"Failed to co ... "])
 1. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 110
    GuzzleHttp\Handler\CurlFactory::finishError(["GuzzleHttp\\Handler\\CurlHandler"], ["GuzzleHttp\\Ha ... l], ["GuzzleHttp\\Handler\\CurlFactory"])
 2. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php line 47
    GuzzleHttp\Handler\CurlFactory::finish(["GuzzleHttp\\Handler\\CurlHandler"], ["GuzzleHttp\\Ha ... l], ["GuzzleHttp\\Handler\\CurlFactory"])
 3. /var/www/html/lib/private/Http/Client/DnsPinMiddleware.php line 113
    GuzzleHttp\Handler\CurlHandler->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
 4. /var/www/html/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php line 64
    OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}("*** sensitive parameters replaced ***")
 5. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 31
    GuzzleHttp\PrepareBodyMiddleware->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
 6. /var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php line 71
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
 7. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 63
    GuzzleHttp\RedirectMiddleware->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
 8. /var/www/html/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php line 75
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
 9. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 331
    GuzzleHttp\HandlerStack->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
10. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 168
    GuzzleHttp\Client->transfer("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
11. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
    GuzzleHttp\Client->requestAsync("post", ["GuzzleHttp\\Psr7\\Uri"], ["/var/www/html/ ... "])
12. /var/www/html/lib/private/Http/Client/Client.php line 289
    GuzzleHttp\Client->request("post", "https://turn.lm ... 2", ["/var/www/html/ ... "])
13. /var/www/html/custom_apps/spreed/lib/Signaling/BackendNotifier.php line 83
    OC\Http\Client\Client->post("https://turn.lm ... 2", [["application/j ... ]])
14. /var/www/html/custom_apps/spreed/lib/Signaling/BackendNotifier.php line 91
    OCA\Talk\Signaling\BackendNotifier->doRequest("https://turn.lm ... 2", [["application/j ... ]], 1)
15. /var/www/html/custom_apps/spreed/lib/Signaling/BackendNotifier.php line 91
    OCA\Talk\Signaling\BackendNotifier->doRequest("https://turn.lm ... 2", [["application/j ... ]], 2)
16. /var/www/html/custom_apps/spreed/lib/Signaling/BackendNotifier.php line 144
    OCA\Talk\Signaling\BackendNotifier->doRequest("https://turn.lm ... 2", [["application/j ... ]])
17. /var/www/html/custom_apps/spreed/lib/Signaling/BackendNotifier.php line 446
    OCA\Talk\Signaling\BackendNotifier->backendRequest(["OCA\\Talk\\Room"], ["message",[["chat",[true]]]])
18. /var/www/html/custom_apps/spreed/lib/Signaling/Listener.php line 360
    OCA\Talk\Signaling\BackendNotifier->sendRoomMessage(["OCA\\Talk\\Room"], ["chat",[true]])
19. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
    OCA\Talk\Signaling\Listener::notifyUsersViaExternalSignalingToRefreshTheChat(["OCA\\Talk\\Events\\ChatEvent"], "OCA\\Talk\\Chat ... e", "*** sensitive parameters replaced ***")
20. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners([["Closure"]], "OCA\\Talk\\Chat ... e", ["OCA\\Talk\\Events\\ChatEvent"])
21. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 88
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch(["OCA\\Talk\\Events\\ChatEvent"], "OCA\\Talk\\Chat ... e")
22. /var/www/html/custom_apps/spreed/lib/Chat/ChatManager.php line 233
    OC\EventDispatcher\EventDispatcher->dispatch("OCA\\Talk\\Chat ... e", ["OCA\\Talk\\Events\\ChatEvent"])
23. /var/www/html/custom_apps/spreed/lib/Chat/Changelog/Manager.php line 73
    OCA\Talk\Chat\ChatManager->addChangelogMessage(["OCA\\Talk\\Room"], "- Chat-Nachrich ... d")
24. /var/www/html/custom_apps/spreed/lib/Chat/Changelog/Listener.php line 53
    OCA\Talk\Chat\Changelog\Manager->updateChangelog("*** sensitive parameters replaced ***")
25. /var/www/html/custom_apps/spreed/lib/Chat/Changelog/Listener.php line 45
    OCA\Talk\Chat\Changelog\Listener->preGetRooms("*** sensitive parameters replaced ***")
26. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
    OCA\Talk\Chat\Changelog\Listener::updateChangelog("*** sensitive parameters replaced ***")
27. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners([["Closure"]], "*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
28. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 88
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
29. /var/www/html/custom_apps/spreed/lib/Controller/RoomController.php line 178
    OC\EventDispatcher\EventDispatcher->dispatch("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
30. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 225
    OCA\Talk\Controller\RoomController->getRooms(0, false)
31. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 133
    OC\AppFramework\Http\Dispatcher->executeController(["OCA\\Talk\\Controller\\RoomController"], "getRooms")
32. /var/www/html/lib/private/AppFramework/App.php line 172
    OC\AppFramework\Http\Dispatcher->dispatch(["OCA\\Talk\\Controller\\RoomController"], "getRooms")
33. /var/www/html/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main("OCA\\Talk\\Controller\\RoomController", "getRooms", ["OC\\AppFramewo ... "], ["v4","ocs.spreed.Room.getRooms"])
34. /var/www/html/ocs/v1.php line 63
    OC\Route\Router->match("/ocsapp/apps/spreed/api/v4/room")
35. /var/www/html/ocs/v2.php line 23
    require_once("/var/www/html/ocs/v1.php")

GET /ocs/v2.php/apps/spreed/api/v4/room
from 77.12.xx.xx by USER at 2023-04-04T08:43:12+00:00

Außerdem liefert service nextcloud-spreed-signaling status folgendes Ergebnis:

nextcloud-spreed-signaling.service - Nextcloud Talk signaling server
     Loaded: loaded (/lib/systemd/system/nextcloud-spreed-signaling.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2023-04-04 20:56:44 CEST; 4min 14s ago
   Main PID: 20656 (nextcloud-spree)
      Tasks: 11 (limit: 9505)
     Memory: 10.4M
        CPU: 64ms
     CGroup: /system.slice/nextcloud-spreed-signaling.service
             └─20656 /usr/local/bin/nextcloud-spreed-signaling-server --config /etc/nextcloud-spreed-signaling/server.conf

Apr 04 20:56:47 deb11-template nextcloud-spreed-signaling-server[20656]: mcu_janus.go:273: Reconnect to Janus gateway failed (dial tcp 127.0.0.1:8188: connect: connection refused), reconnecting in 4s
Apr 04 20:56:51 deb11-template nextcloud-spreed-signaling-server[20656]: mcu_janus.go:273: Reconnect to Janus gateway failed (dial tcp 127.0.0.1:8188: connect: connection refused), reconnecting in 8s
Apr 04 20:56:59 deb11-template nextcloud-spreed-signaling-server[20656]: mcu_janus.go:273: Reconnect to Janus gateway failed (dial tcp 127.0.0.1:8188: connect: connection refused), reconnecting in 16s
Apr 04 20:57:15 deb11-template nextcloud-spreed-signaling-server[20656]: mcu_janus.go:273: Reconnect to Janus gateway failed (dial tcp 127.0.0.1:8188: connect: connection refused), reconnecting in 32s
Apr 04 20:57:47 deb11-template nextcloud-spreed-signaling-server[20656]: mcu_janus.go:273: Reconnect to Janus gateway failed (dial tcp 127.0.0.1:8188: connect: connection refused), reconnecting in 32s
Apr 04 20:58:19 deb11-template nextcloud-spreed-signaling-server[20656]: mcu_janus.go:273: Reconnect to Janus gateway failed (dial tcp 127.0.0.1:8188: connect: connection refused), reconnecting in 32s
Apr 04 20:58:51 deb11-template nextcloud-spreed-signaling-server[20656]: mcu_janus.go:273: Reconnect to Janus gateway failed (dial tcp 127.0.0.1:8188: connect: connection refused), reconnecting in 32s
Apr 04 20:59:23 deb11-template nextcloud-spreed-signaling-server[20656]: mcu_janus.go:273: Reconnect to Janus gateway failed (dial tcp 127.0.0.1:8188: connect: connection refused), reconnecting in 32s
Apr 04 20:59:55 deb11-template nextcloud-spreed-signaling-server[20656]: mcu_janus.go:273: Reconnect to Janus gateway failed (dial tcp 127.0.0.1:8188: connect: connection refused), reconnecting in 32s
Apr 04 21:00:27 deb11-template nextcloud-spreed-signaling-server[20656]: mcu_janus.go:273: Reconnect to Janus gateway failed (dial tcp 127.0.0.1:8188: connect: connection refused), reconnecting in 32s

Jetzt stellt sich mir natürlich die Frage woran liegts ^^ Kann jemand helfen und sieht vielleicht schon auf den ersten Blick woran es liegt?

Beste Grüße Christian

mircokam commented 1 year ago

Hallo, das Script ist für Server ausgelegt die mit einer öffentlichen IP im Netz stehen und nicht per Nat durchgereicht werden. Ich denke da liegt das Problem. Versuch es bitte mal ob dies Problem auch Auftritt wenn Du einen Server im Netz verwendest.