Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Sonarr App, I would like help and feedback please


  • After @girish showed interest about Sonaar and I could already build the arr family via a script
    I tried again to compile an app for Cloudron.
    While since it is my first app I call for help to be able to make this image ready for production

    so if @mehdi, @msbt, @fbartels, @w88vietnamfc, @doodlemania2, @thetomester13, @jimcavoli, @iamthefij, @eyecreate, @RoboMod, @tobru, @gabrielcossette, @m4rg4sh and/or someones with experience of packaging an apps for Cloudron would like to guide me

    it would be my pleasure to maintain Lidarr, Sonarr, Radarr and Readarr for Cloudron Users.

    What is the status

    • it work on my localhost docker host

    but

    git clone https://git.cloudron.io/jodumont/sonarr.git
    cd sonarr
    cloudron install --image jodumont/sonarr:latest
    

    give me an error 500 during the creation of the container

     => Queued .
     => Cleaning up old install 
     => Registering subdomains .
     => Downloading image ....................................................................
     => Creating container ....
    
    App installation error: Installation failed: (HTTP code 500) server error - OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"/usr/bin/mono /opt/NzbDrone/NzbDrone.exe --log-file=/var/log/sonarr.log --nobrowser --server-datafolder=/app/data --webservice-interface=any\": stat /usr/bin/mono /opt/NzbDrone/NzbDrone.exe --log-file=/var/log/sonarr.log --nobrowser --server-datafolder=/app/data --webservice-interface=any: no such file or directory": unknown
    
  • App Dev

    @JOduMonT

    Just took a look at your package. your container is not working because the CMD command of your Dockerfile is wrong ! It should not be CMD [ "command arg1 arg2" ] but CMD [ "command", "arg1", "arg2" ] ( https://docs.docker.com/engine/reference/builder/#cmd ).

    I also had a question about your general packaging approach. So, if I understood your packaging correctly you are packaging Sonarr alone, so it would need a separate instance of jackett and one of a torrent app ?


  • @mehdi said in Sonarr App, I would like help and feedback please:

    Just took a look at your package. your container is not working because the CMD command of your Dockerfile is wrong ! It should not be CMD [ "command arg1 arg2" ] but CMD [ "command", "arg1", "arg2" ] ( https://docs.docker.com/engine/reference/builder/#cmd ).

    Thank for your help @mehdi actually I used your approach from jellyfin and call /app/code/start.sh instead
    so I when a little further

    now it complain about not having a health check

    Jun 06 20:42:02 box:apptask sonarr.domain.net updating app with values: {"installationState":"installed","error":null,"health":null}
    

    @mehdi said in

    I also had a question about your general packaging approach. So, if I understood your packaging correctly you are packaging Sonarr alone, so it would need a separate instance of jackett and one of a torrent app ?

    Yes I understand your point of view , maybe I could put Lidarr, Sonarr and Radarr in one apps since they all use mono
    but this is not really kosher if you speak at the Container philosophy.

    • Also it's not because you want to find movies than you want to find music and/or TVShow or book.
  • App Dev

    @JOduMonT said in Sonarr App, I would like help and feedback please:

    maybe I could put Lidarr, Sonarr and Radarr in one apps since they all use mono
    but this is not really kosher if you speak at the Container philosophy.

    Also it's not because you want to find movies than you want to find music and/or TVShow or book.

    I totally agree, Sonarr Lidarr and Radarr should totally be separate. That's why my question was specifically about Jackett and the torrent client. Because my understanding from your other post was that Sonarr would be pretty much useless without Jackett and a torrent client.


  • @mehdi said in Sonarr App, I would like help and feedback please:

    Sonarr would be pretty much useless without Jackett and a torrent client.

    Now useless, but not super useful too 😉

    @mehdi in your Jackett how/where do you do the health check ?

  • App Dev

    @JOduMonT said in Sonarr App, I would like help and feedback please:

    @mehdi in your Jackett how/where do you do the health check ?

    In my Jacket ? What do you mean ? I don't have an instance of Jacket ^^


  • @mehdi said in Sonarr App, I would like help and feedback please:

    In my Jacket ? What do you mean ? I don't have an instance of Jacket ^^

    doh! I mean in your Jellyfin
    how do you handle the health check ?

  • App Dev

    @JOduMonT In River I have a nodeJS server that handles file management, and it checks the status of the jellyfin process and all the others, and serves a custom /api/healthcheck route.

    This is pretty unusual though. The usual thing is to just use a normal api route of your app, or even simply the root page /.