iobroker-community-adapters / ioBroker.synology

ioBroker SYNOLOGY Adapter
MIT License
11 stars 9 forks source link

[QA] misleading error messages when using sssh commands #204

Open mcm1957 opened 2 years ago

mcm1957 commented 2 years ago

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.

stale[bot] commented 1 year ago

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.