Vastlopen bij Zigbee2MQTT installatie op QNAP NAS

Pagina: 1
Acties:

Vraag


Acties:
  • 0 Henk 'm!

  • mc_maarten
  • Registratie: Augustus 2013
  • Laatst online: 21:44
Om uiteindelijk Zigbee2MQTT te installeren op mijn QNAP NAS, probeer ik via deze handleiding YouTube: Installing Zigbee2MQTT with Home Assistant Docker te installeren. Helaas verloopt dit niet zoals gepland…

Het eerste probleem is het vinden van mijn USB-stick (ConBee 2). Wanneer ik met PuTTY op de NAS inlog, kom ik in het console management - main menu terecht. Dit is wat er wordt weergegeven:


code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
login as: admin
admin@192.168.1.200's password:


  +-------------------------------------------------------------------------+
  |  Console Management - Main menu                                         |
  |                                                                         |
  |  1: Show network settings                                               |
  |  2: System event logs                                                   |
  |  3: Reset to factory default (password required)                        |
  |  4: Activate/ deactivate a license                                      |
  |  5: App management                                                      |
  |  6: Reboot in Rescue mode (w/o configured disk)                         |
  |  7: Reboot in Maintenance Mode                                          |
  |  Q: Quit (return to normal shell environment)                           |
  |                                                                         |
  |                                                                         |
  |                                                                         |
  |                                                                         |
  |                                                                         |
  |                                                                         |
  |                                                                         |
  |                                                                         |
  |                                                                         |
  |                                                                         |
  |                                                                         |
  +-------------------------------------------------------------------------+
  >>


Wanneer ik hieruit ga, kom ik terug in PuTTY met de volgende prompt:
code:
1
[~] #


Ik probeer de USB-stick te vinden met het commando:
code:
1
ls -l /dev/serial/by-id


dit krijg ik als antwoordt:
code:
1
2
3
4
5
[~] # ls -l /dev/serial/by-id
/bin/ls: cannot access /dev/serial/by-id: No such file or directory
[~] # ~$ ls -l /dev/serial/by-id
-sh: ~$: command not found
[~] #



Ik heb het opgegeven om de USB-stick te vinden. In de video wordt aangeraden om Visual Studio Code te gebruiken. Maar natuurlijk werkt dit ook niet voor mij. Ik heb het programma geïnstalleerd volgens de handleiding, inclusief de add-ons Remote - SSH en YAML.

Het aanmaken van een nieuwe remote onder SSH lijkt in eerste instantie goed te gaan, maar om een of andere reden accepteert het systeem mijn wachtwoord niet. Ik krijg de melding "Setting up SSH host 192.168.1.200: (details) Connecting to VS Code server - retry *".

wanneer ik op details klik zie ik dit onder output:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[14:22:24.852] Log Level: 2
[14:22:24.874] SSH Resolver called for "ssh-remote+192.168.1.200", attempt 1
[14:22:24.876] "remote.SSH.useLocalServer": false
[14:22:24.876] "remote.SSH.useExecServer": false
[14:22:24.876] "remote.SSH.showLoginTerminal": false
[14:22:24.877] "remote.SSH.remotePlatform": {}
[14:22:24.877] "remote.SSH.path": undefined
[14:22:24.877] "remote.SSH.configFile": undefined
[14:22:24.877] "remote.SSH.useFlock": true
[14:22:24.878] "remote.SSH.lockfilesInTmp": false
[14:22:24.878] "remote.SSH.localServerDownload": auto
[14:22:24.878] "remote.SSH.remoteServerListenOnSocket": false
[14:22:24.878] "remote.SSH.showLoginTerminal": false
[14:22:24.878] "remote.SSH.defaultExtensions": []
[14:22:24.878] "remote.SSH.loglevel": 2
[14:22:24.879] "remote.SSH.enableDynamicForwarding": true
[14:22:24.879] "remote.SSH.enableRemoteCommand": false
[14:22:24.879] "remote.SSH.serverPickPortsFromRange": {}
[14:22:24.880] "remote.SSH.serverInstallPath": {}
[14:22:24.884] VS Code version: 1.85.1
[14:22:24.884] Remote-SSH version: remote-ssh@0.107.1
[14:22:24.884] win32 x64
[14:22:24.885] SSH Resolver called for host: 192.168.1.200
[14:22:24.885] Setting up SSH remote "192.168.1.200"
[14:22:24.893] Using commit id "0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2" and quality "stable" for server
[14:22:24.899] Install and start server if needed
[14:22:26.865] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V"
[14:22:26.871] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT
[14:22:26.871] Checking ssh with "C:\WINDOWS\ssh.exe -V"
[14:22:26.873] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT
[14:22:26.873] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V"
[14:22:26.875] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT
[14:22:26.875] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[14:22:26.876] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[14:22:26.877] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[14:22:26.934] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

[14:22:26.940] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 50267 "192.168.1.200" bash
[14:22:26.945] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[14:22:27.244] >  ]0;C:\WINDOWS\System32\cmd.exe
[14:22:27.244] Got some output, clearing connection timeout
[14:22:27.400] > admin@192.168.1.200's password: 
[14:22:27.401] Showing password prompt
[14:22:34.803] Got password response
[14:22:34.804] "install" wrote data to terminal: "********"
[14:22:34.834] > 
[14:22:34.942] > b47c5f6e30e6: running
[14:22:34.977] > bash: line 116: getconf: command not found
[14:22:35.159] > Acquiring lock on /root/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff
> 2b2/vscode-remote-lock.admin.0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
> Installation already in progress...
> If you continue to see this message, you can try toggling the remote.SSH.useFloc
> k setting
> b47c5f6e30e6: start
> exitCode==24==
> listeningOn====
> osReleaseId==qts==
> arch==x86_64==
> vscodeArch==x64==
> bitness====
> tmpDir==/tmp==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> b47c5f6e30e6: end
[14:22:35.159] Received install output: 
exitCode==24==
listeningOn====
osReleaseId==qts==
arch==x86_64==
vscodeArch==x64==
bitness====
tmpDir==/tmp==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====

[14:22:35.160] Server installation process already in progress - waiting and retrying
[14:22:35.177] > bash: line 243: flock: command not found
> bash: line 243: flock: command not found
> bash: line 243: flock: command not found
[14:22:36.176] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 50267 "192.168.1.200" bash
[14:22:36.179] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[14:22:36.468] >  ]0;C:\WINDOWS\System32\cmd.exe
[14:22:36.468] Got some output, clearing connection timeout
[14:22:36.609] > admin@192.168.1.200's password: 
[14:22:36.610] Showing password prompt
[14:22:36.626] "install" terminal command done
[14:22:36.627] Install terminal quit with output: bash: line 243: flock: command not found
[14:22:46.577] "install" terminal command done
[14:22:46.578] Install terminal quit with output:  ]0;C:\WINDOWS\System32\cmd.exeadmin@192.168.1.200's password: 
[14:22:46.578] Received install output:  ]0;C:\WINDOWS\System32\cmd.exeadmin@192.168.1.200's password: 
[14:22:46.582] Failed to parse remote port from server output
[14:22:46.585] Resolver error: Error: 
    at g.Create (c:\Users\M&L\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:642703)
    at t.handleInstallOutput (c:\Users\M&L\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:640069)
    at t.tryInstall (c:\Users\M&L\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:761983)
    at async c:\Users\M&L\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:722522
    at async t.withShowDetailsEvent (c:\Users\M&L\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:725828)
    at async I (c:\Users\M&L\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:719493)
    at async t.resolve (c:\Users\M&L\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:723199)
    at async c:\Users\M&L\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:907003
[14:22:46.606] ------



[14:22:49.190] Password dialog canceled
[14:22:49.190] "install" terminal command canceled
[14:22:49.191] > admin@192.168.1.200's password:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
[14:22:49.192] Showing password prompt


Ik heb gecontroleerd of SSH is ingeschakeld op de NAS, en Poort 22 is open en toegankelijk. Zowel met PuTTY als WinSCP kan ik wel inloggen op de NAS via SSH.

Ik heb al verschillende stappen geprobeerd, waaronder het controleren van de instellingen in Visual Studio Code, firewallinstellingen en het genereren van SSH-sleutels, maar het probleem blijft bestaan.

ik heb deze nas: uitvoering: QNAP TS-451D2, 4GB ram, zonder harde schijven

Heeft iemand enig idee wat ik nog kan proberen of waar ik mogelijk iets verkeerd doe? Alle hulp wordt enorm op prijs gesteld. Alvast bedankt!

Alle reacties


Acties:
  • +1 Henk 'm!

  • Muyz
  • Registratie: Februari 2000
  • Laatst online: 15-07 16:40
Gebruik zelf de Conbee II op een TVS672xt QNAP NAS.

Device is hiermee te zien:
code:
1
ls /dev/ttyACM*

Als er niks te zien is, zijn de drivers mogelijk niet geladen:
code:
1
insmod /usr/local/modules/cp210x.ko insmod /usr/local/modules/cdc-acm.ko

Daarna even Conbee uit de USB poort halen en weer insteken.

[ Voor 50% gewijzigd door Muyz op 29-12-2023 15:23 ]

i9-12900K | MSI GeForce RTX 3080 Ti GAMING X TRIO 12G | NZXT Kraken X72 | 64GB 2xG.Skill Ripjaws V F4-3600C16D-32GVKC | Gigabyte Z690 AORUS ELITE | Samsung 970 EVO 1TB | Corsair RM750i | NZXT H710i Wit | LG UltraGear 38GL950G | Bose Companion 20


Acties:
  • +1 Henk 'm!

  • mc_maarten
  • Registratie: Augustus 2013
  • Laatst online: 21:44
@Muyz ahh, volgens mij werkt het
code:
1
2
[~] # ls /dev/ttyACM*
/dev/ttyACM0


nu nog VScode aan de praat zie te krijgen :-)