We're trying out using Discord. Check the thread for the link. These forums will continue to operate as normal.

OpenFLIXR Setup Shell Script

I put this together in hopes that it will help others while the wizard is disabled.
I've tested as much as I can today but would appreciate others helping out as well! Please provide any feedback through this thread or submitting a Pull Request to the repo.

Thanks to @jeremywho for the awesome gDoc that guided me through my setup and I originally based this on. That post can be found here: https://www.openflixr.com/forum/discussion/559/setup-instructions-without-web-wizard
Thanks to @mediajunkie for all the work put into this and providing WebWizard code on GitHub that allowed me to further enhance my script and make it inline with what the WebWizard does.

https://github.com/MagicalCodeMonkey/OpenFLIXR2.SetupScript/


Comments

  • I've updated this to now be in line with what WebWizard outputs and runs.
  • Thanks @MattyLightCU
    In your opinion is this fully operational? As in, we should now be fully able to drop this script in onto a new machine, and get a working system out of it? 

    I'll link to this thread in the setup doc thread.
  • I used this setup script to install OpenFLIXR a few times this weekend.  Thanks for posting it - this helped a lot!  One of the things I ran into was permissions with the mounted directories.  They had all been created with owner/group set to root and the downloads directory was missing many subdirectories.  Running the /opt/openflixr/createdirs script appears to have fixed the issue (still testing) and created the missing folders with openflixr user and group.
  • Thanks for confirming, @garnett
    Permissions on mount points has always seemed a bit weird to me, the permissions of the original folder aren't always (ever?) inherited so until the mounts are mounted, setting permissions won't fix things (I think?).  Someone mentioned setting the UID and GID in the options part of the fstab entry, I assume that the webmin GUI allows for the same.  (Although I must say I set the permissions myself back when I first set up my box, and have never revisited it.)

    Note that createdirs runs at boot, so if you've not been rebooting your new setups much then things may be missing - and of course that reboot needs to happen after any additional storage and your media mounts are mounted. 
    I can certainly see the potential for a race condition where the createdirs script is run before the mounts have mounted - especially if the storage is network based like NFS (or even worse, CIFS).

    Also note that some of the directories under /mnt/downloads should be owned by root, as it is root that is running the process.  Not all of the openflixr apps have been set up to run as the openflixr user account.

    Cheers again,
    J
  • Thanks for the response.  I had rebooted several times, so it wasn't being updated for some reason.  I only found the script through an answer you had provided to a previous user, but it did fix the problems I was facing at that time. 

    I am still not completely up and running yet though.  I have Radarr running with NZBHydra indexing and SABnzd downloading, but Sonarr is failing to connect to either of those services, so I'm still working through it.  Since I've never setup an instance before this script was released, I can't really comment on whether the issue is related to the script or my setup, but I'll keep after it.
  • Nah it sounds like "normal" setup issues - the script/docs only go so far, there's a level of implied knowledge or required learning curve :) Took me about 6 weeks to get everything running (I changed my mind on downloaders/indexers a few times) and then another 3-4 months to get it stable lol
  • @jeremywho From what I know of the setup, this is mostly ready but not "fully operational". However, I think it will get users most of the way through their initial setup. The biggest improvement right now is handling the file mounting, followed by getting Let's Encrypt working properly. After that, I'm going to look into what else I might be able to do to get it to configure as much as possible and allow someone to be set up in hours instead of days, but TBD.

    @garnett Thanks for trying this out and giving feedback. I'll be able to make some changes based on it and hopefully get it committed in the next few days. Was it easy enough to use and understand? If you have any suggestions for improvement, I welcome hearing what they are!


  • @MattyLightCU It was very easy to use!  Thinking back, I can only recall one other quirk which is a simple fix.  When the openflixr_setup.sh script downloads and executes setup.sh from github, it failed each time because it was looking in a specific directory that didnt exist.  It looks like an absolute path is called out here:

    OPENFLIXR_SETUP_CONFIG="/home/openflixr/openflixr_setup/openflixr_setup.config"

    Since this directory didn't exist, the script would just bomb out.  After creating the 'openflixr_setup'  directory and moving both script files there, the script ran fine.
  • Thanks! I probably created it at some point and forgot to add it to the script. I'll get that change in soon!
  • More updates have been made! 
    Highlights:
    • Fixed some dumb things I did and cleaned up the file some
    • Fixed folder setup
    • Added more windows and less command-line outputs for consistency
    • Added a menu to select custom scripts that are supported
    • Abstracted some areas to external files and made them get re-downloaded each run
Sign In or Register to comment.