Linux - Noob question - Can't grep version info from bootstrap output anymore

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?

EDIT: Using mono 4.6.2 on Unraid 6.2

No changes that I can see. What output are you seeing now?

COMMAND: 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=/.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.

It is written to standard output, redirecting the standard output to a file would confirm.

That said the output there is over the top for what we really need to return and we could probably have a simplified output.

When I redirect to a file, I only get:

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. ¯\(ツ)

taloth@gatekeeper:/opt/NzbDrone$ mono --version
Mono JIT compiler version 4.2.3 (Stable 4.2.3.4/832de4b Wed Mar 16 13:19:08 UTC 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen

taloth@gatekeeper:/opt/NzbDrone$ mono NzbDrone.exe /? | grep Bootstrap
[Info] Bootstrap: Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4511

Works fine here.

@markus101 Btw. when i do it with a black system it runs db migrations?!?!

Yeah, I saw that, it’s ludicrous that we do that.

So strange, I have no idea what’s going on then. When I run that command I get:

root@PhAzE-NAS2:~# mono /usr/local/Sonarr/NzbDrone.exe /? | grep Bootstrap
root@PhAzE-NAS2:~#

Nothing shows up. Without grep:

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…

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.