Hey, since a recent update I’ve noticed my Unraid plugin’s can’t grep the version out of the bootstrap data anymore. Was there a change to how it outputs that info?
to grab that line, typically I could use:
mono /usr/local/Sonarr/NzbDrone.exe /? | grep ‘Bootstrap’
But now it passes nothing. Even when redirecting 2>&1 it still fails. Maybe I’m being a linux noob here but I can’t seem to figure out how to grab that data now. Any suggestions?
[Info] Bootstrap: Starting Sonarr - /usr/local/Sonarr/NzbDrone.exe - Version 2.0.0.4472
[Info] MigrationLogger: *** Migrating data source=/.config/NzbDrone/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] MigrationLogger: *** Migrating data source=/.config/NzbDrone/logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] Router: Application mode: Help
Usage: NzbDrone.exe <command>
Commands:
/i Install the application as a Windows Service (NzbDrone).
/u Uninstall already installed Windows Service (NzbDrone).
/nobrowser Don't open Sonarr in a browser
<No Arguments> Run application in console mode.
[Info] ConsoleApp: Exiting main.
Which is good, I can see the version info, but can’t actually grep it out. I can grep the Usage, and Commands sections, but anything marked by “[Info]” doesn’t seem to be outputing on STDOUT or ERROUT console.
Usage: NzbDrone.exe
Commands:
/i Install the application as a Windows Service (NzbDrone).
/u Uninstall already installed Windows Service (NzbDrone).
/nobrowser Don’t open Sonarr in a browser
Run application in console mode.
But I can’t get -> [Info] Bootstrap: Starting Sonarr - /usr/local/Sonarr/NzbDrone.exe - Version 2.0.0.4472
Very strange that it isn’t working anymore (but used to) without any changes to the OS. ¯\(ツ)/¯
root@PhAzE-NAS2:~# mono /usr/local/Sonarr/NzbDrone.exe /?
[Info] Bootstrap: Starting Sonarr - /usr/local/Sonarr/NzbDrone.exe - Version 2.0.0.4472
[Info] MigrationLogger: *** Migrating data source=/root/.config/NzbDrone/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] MigrationLogger: *** Migrating data source=/root/.config/NzbDrone/logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] Router: Application mode: Help
Usage: NzbDrone.exe <command>
Commands:
/i Install the application as a Windows Service (NzbDrone).
/u Uninstall already installed Windows Service (NzbDrone).
/nobrowser Don't open Sonarr in a browser
<No Arguments> Run application in console mode.
[Info] ConsoleApp: Exiting main.
root@PhAzE-NAS2:~#
I can only grep info from the Usage and Commands section. I’m at a loss unfortunately…