iobroker-community-adapters / ioBroker.synology

ioBroker SYNOLOGY Adapter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[QA] misleading error messages when using sssh commands

mcm1957 opened this issue · comments

When enebaling debug log shutdwon / reboot logs the following confusing error messages:

synology.0 | 2022-10-26 19:30:55.440 | warn | System reboot
synology.0 | 2022-10-26 19:30:49.076 | debug | *** ERROR : src: SSH Error: code: undefined message: Password:
synology.0 | 2022-10-26 19:30:49.010 | debug | *** ERROR : src: SSH Error: code: undefined message: Could not chdir to home directory /var/services/homes/testiob: No such file or directory
synology.0 | 2022-10-26 19:30:48.845 | debug | SSH:echo '******'\|sudo -S shutdown -r now
synology.0 | 2022-10-26 19:30:48.843 | debug | state synology.0.commands.reboot changed: true (ack = false)

The reason is, that ALL output returned by ssh at stderr is logged as error. BUT the password prompt is no error wat all. And depending on the synology setup the chdir error is no error too but caused by the fact that at this system no user homediectories existe (user home service not enabled)

If possible those misleading erros should be filtered.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.