prostuff1 Posted May 11, 2012 Author Share Posted May 11, 2012 I am not sure why the "su nobody -c" does not work. You can change it in the unmenu package and then reinstall with your changes. You will need to change line 213 of the .conf file Quote Link to comment
dalben Posted May 12, 2012 Share Posted May 12, 2012 You will need to change line 213 of the .conf file Line 213: PACKAGE_INSTALLATION echo " echo \"${vFLEXGET_SCHEDULE} /usr/bin/flexget --cron -c ${vINSTALL_DIR-/mnt/cache/.flexget}/config.yml --logfile=${vLOG_DIR}/flexget.log\\\" >> /tmp/crontab" >> /etc/rc.d/unraid.d/rc.unraid_flexget Line 218: PACKAGE_INSTALLATION echo " su nobody -c \"/usr/bin/flexget-webui -c ${vINSTALL_DIR-/mnt/cache/.flexget}/config.yml --logfile=${vLOG_DIR}/flexget.log --port=${vINSTALL_PORT} --username=${vUSERNAME} --password=${vPASSWORD} -d > /dev/null 2>&1\"" >> /etc/rc.d/unraid.d/rc.unraid_flexget I'll assume you meant change line 218. If I change it to the following, is it correct ? PACKAGE_INSTALLATION echo " /usr/bin/flexget-webui -c ${vINSTALL_DIR-/mnt/cache/.flexget}/config.yml --logfile=${vLOG_DIR}/flexget.log --port=${vINSTALL_PORT} --username=${vUSERNAME} --password=${vPASSWORD} -d > /dev/null 2>&1" >> /etc/rc.d/unraid.d/rc.unraid_flexget I'm a bit confused and would prefer to have it validated before screwing anything up on the next reboot. Quote Link to comment
prostuff1 Posted May 12, 2012 Author Share Posted May 12, 2012 At least in the file I am looking at it is line 213. You might have word wrap on or something like that which is screwing up the line numbering on your end. There is also something on line 218 but that is for the flexget-webgui and has nothing to do with the cron schedule. Quote Link to comment
dalben Posted May 29, 2012 Share Posted May 29, 2012 I spent some time debugging the error I had. In the end it has nothing to do with su nobody. When flexget runs it create a config.lock file. For some reason the first time flexget runs after a server restart, it doesn't delete config.lock. Subsequent attempts to run give the error I reported. Manually deleting config.lock solves the problem and subsequent flexget runs are fine. Quote Link to comment
prostuff1 Posted May 29, 2012 Author Share Posted May 29, 2012 I spent some time debugging the error I had. In the end it has nothing to do with su nobody. When flexget runs it create a config.lock file. For some reason the first time flexget runs after a server restart, it doesn't delete config.lock. Subsequent attempts to run give the error I reported. Manually deleting config.lock solves the problem and subsequent flexget runs are fine. Interesting... where is this config.lock file located? Quote Link to comment
dalben Posted May 29, 2012 Share Posted May 29, 2012 I spent some time debugging the error I had. In the end it has nothing to do with su nobody. When flexget runs it create a config.lock file. For some reason the first time flexget runs after a server restart, it doesn't delete config.lock. Subsequent attempts to run give the error I reported. Manually deleting config.lock solves the problem and subsequent flexget runs are fine. Interesting... where is this config.lock file located? In my install directory. which on my box is /mnt/cache/apps/flexget Same place as config.yml and db-config.sqlite. Also default for the log but I write that somewhere else. Quote Link to comment
dalben Posted May 31, 2012 Share Posted May 31, 2012 Actually, the file name is .config-lock. Quote Link to comment
ctrlbreak Posted October 7, 2012 Share Posted October 7, 2012 I'm having trouble installing this - the pysqlight package seems to have moved from the location specified in the conf file. Is there an updated conf file? I had a quick search for the package to grab it manually, but I couldn't find it. Anyone managed to install this pluging recently? Cheers. -- Log excerpt below: --2012-10-07 21:38:04-- http://distro.ibiblio.org/pub/linux/distributions/zenwalk/i486/current/extra/l/pysqlite-2.5.6-i486-64.1.txz Resolving distro.ibiblio.org (distro.ibiblio.org)... 152.19.134.43 Connecting to distro.ibiblio.org (distro.ibiblio.org)|152.19.134.43|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: /zenwalk/i486/current/extra/l/pysqlite-2.5.6-i486-64.1.txz [following] --2012-10-07 21:38:04-- http://distro.ibiblio.org/zenwalk/i486/current/extra/l/pysqlite-2.5.6-i486-64.1.txz Reusing existing connection to distro.ibiblio.org:80. HTTP request sent, awaiting response... 404 Not Found 2012-10-07 21:38:04 ERROR 404: Not Found. Quote Link to comment
prostuff1 Posted October 8, 2012 Author Share Posted October 8, 2012 You mean this: http://ftp.nluug.nl/ibiblio/distributions/zenwalk/i486/current/extra/l/pysqlite-2.5.6-i486-64.1.txz a new pysqlite .conf is attached to the first post Quote Link to comment
botez Posted October 31, 2012 Share Posted October 31, 2012 Looks like this is broken now -- the .egg file that it linked to is no longer hosted by flexget. The new method for flexget looks to be as simple as: curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python pip install flexget I'm not sure how to keep it from re-downloading all the dependencies after every reboot yet, but I'm sure that can be done. Quote Link to comment
project6 Posted December 17, 2012 Share Posted December 17, 2012 Can anyone put together a script that downloads and installs FlexGet on startup, or better yet, put together a Unraid 5 FlexGet addon? It's a great little tool and the old file I used to install it is no longer available. Quote Link to comment
prostuff1 Posted July 4, 2013 Author Share Posted July 4, 2013 I have updated the flexget unMenu package. Please download all .conf files attached in the first and second post if you are installing this. They have all been updated slightly. Quote Link to comment
dalben Posted July 4, 2013 Share Posted July 4, 2013 Thanks. I'll give it a shot this weekend. Quote Link to comment
dalben Posted July 6, 2013 Share Posted July 6, 2013 Got it installed nicely. A couple of things. 1) When I try to stop the array to hangs now until I force a umount -l of the cache drive. 2) My flexget log has started reporting these errors again 2013-07-06 16:30 WARNING cron_env Your cron environment has different filesystem encoding (ANSI_X3.4-1968) compared to your terminal environment (UTF-. 2013-07-06 16:30 WARNING cron_env Your current cron environment results filesystem encoding ANSI_X3.4-1968 which supports only ASCII letters in filenames. other than that it works fine. Thanks Quote Link to comment
prostuff1 Posted July 6, 2013 Author Share Posted July 6, 2013 1) When I try to stop the array to hangs now until I force a umount -l of the cache drive. This is to be expected from an unMenu package. They do not tie into the stop and start events of the array so you have to stop them manually. There is a button in the User Scripts section that should allow you to start or stop flexget before you stop the array. 2) My flexget log has started reporting these errors again 2013-07-06 16:30 WARNING cron_env Your cron environment has different filesystem encoding (ANSI_X3.4-1968) compared to your terminal environment (UTF-. 2013-07-06 16:30 WARNING cron_env Your current cron environment results filesystem encoding ANSI_X3.4-1968 which supports only ASCII letters in filenames. I can look into this but I don't think it is anything to worry about. Quote Link to comment
euphoric Posted July 18, 2013 Share Posted July 18, 2013 flexget apparently did not install properly, /usr/bin/flexget does not exist. root@unRAID:/usr/bin/flexget# <- does exist Log: Installed FlexGet to /mnt/disk1/Apps/flexget config.yml file already exists Created unraid.d directory Created init script, /etc/rc.d/unraid.d/rc.unraid_flexget Created unmenu start script, /boot/unmenu/44-unmenu_user_script_start_flexget Created unmenu start script, /boot/unmenu/44-unmenu_user_script_stop_flexget Jul 18 05:57:32 unRAID su[883]: Successful su for nobody by root Jul 18 05:57:32 unRAID su[883]: + root:nobody Started flexget Started flexget-webui Edit: I can add that i started writing a .plg that installed flexget fine, but I never finished it I didn't need /usr/bin/flexget for anything, and i am a n00b so I was happy when someone finally made a "working" installer... Quote Link to comment
prostuff1 Posted July 18, 2013 Author Share Posted July 18, 2013 flexget apparently did not install properly, /usr/bin/flexget does not exist. root@unRAID:/usr/bin/flexget# <- does exist Log: Installed FlexGet to /mnt/disk1/Apps/flexget config.yml file already exists Created unraid.d directory Created init script, /etc/rc.d/unraid.d/rc.unraid_flexget Created unmenu start script, /boot/unmenu/44-unmenu_user_script_start_flexget Created unmenu start script, /boot/unmenu/44-unmenu_user_script_stop_flexget Jul 18 05:57:32 unRAID su[883]: Successful su for nobody by root Jul 18 05:57:32 unRAID su[883]: + root:nobody Started flexget Started flexget-webui Edit: I can add that i started writing a .plg that installed flexget fine, but I never finished it I didn't need /usr/bin/flexget for anything, and i am a n00b so I was happy when someone finally made a "working" installer... Hum, I will look into this when i get a chance. If everything installed and it is working then great. Quote Link to comment
something fishy Posted July 20, 2013 Share Posted July 20, 2013 @prostuff 2) My flexget log has started reporting these errors again 2013-07-06 16:30 WARNING cron_env Your cron environment has different filesystem encoding (ANSI_X3.4-1968) compared to your terminal environment (UTF-. 2013-07-06 16:30 WARNING cron_env Your current cron environment results filesystem encoding ANSI_X3.4-1968 which supports only ASCII letters in filenames. I don't think that these errors have any real significance. I ran with them for years. They are however irritating and they sure fill up a flexget logfile. The only way to get rid of them in my case was to have cron call a script that sets the environment variable rather than running flexget directly: #!/bin/bash export LANG=en_US.UTF-8 flexget -c /mnt/user/transmission/flexget/shows.yml --cron seems to work in my (non unmenu package) flexget install. Quote Link to comment
coppit Posted September 3, 2013 Share Posted September 3, 2013 I recently upgraded to UNRAID 5.0, and thought now would be a good time to switch from my own installation of an old flexget to using this package. It seemed to install okay, but when I run /usr/bin/flexget or the web UI it stops with the error below. root@storage:~# python -V Python 2.6.4 root@storage:~# python -c 'import sqlalchemy; print sqlalchemy.__version__' 0.7.10 root@storage:~# python -c "import flexget; print flexget.__version__" 1.1.99 This bug says that the version of Python is buggy: http://flexget.com/ticket/2183. Looking in the manual install script for this package, it seems to reference Python 2.7. But my unraid package only says Python 2.6.4. 2013-09-02 22:52 CRITICAL plugin Exception while loading plugin flexget.plugins.cli.movie_queue 2013-09-02 22:52 ERROR plugin Error when calling the metaclass bases\n mapper() keywords must be strings Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/flexget/plugin.py", line 397, in _load_plugins_from_dirs loaded_module = loader.load_module(name) File "/usr/lib/python2.6/pkgutil.py", line 238, in load_module mod = imp.load_module(fullname, self.file, self.filename, self.etc) File "/usr/lib/python2.6/site-packages/flexget/plugins/cli/movie_queue.py", line 10, in <module> from flexget.plugins.filter.movie_queue import QueueError, queue_add, queue_del, queue_get, queue_forget, parse_what File "/usr/lib/python2.6/site-packages/flexget/plugins/filter/movie_queue.py", line 17, in <module> from flexget.plugins.filter import queue_base File "/usr/lib/python2.6/site-packages/flexget/plugins/filter/queue_base.py", line 26, in <module> class QueuedItem(Base): File "/usr/lib/python2.6/site-packages/sqlalchemy/ext/declarative.py", line 1341, in __init__ _as_declarative(cls, classname, cls.__dict__) File "/usr/lib/python2.6/site-packages/sqlalchemy/ext/declarative.py", line 1336, in _as_declarative **mapper_args) TypeError: Error when calling the metaclass bases mapper() keywords must be strings Traceback (most recent call last): File "/usr/bin/flexget", line 8, in <module> load_entry_point('FlexGet==1.1', 'console_scripts', 'flexget')() File "/usr/lib/python2.6/site-packages/flexget/__init__.py", line 23, in main plugin.load_plugins(parser) File "/usr/lib/python2.6/site-packages/flexget/plugin.py", line 439, in load_plugins _load_plugins_from_dirs(get_standard_plugins_path()) File "/usr/lib/python2.6/site-packages/flexget/plugin.py", line 397, in _load_plugins_from_dirs loaded_module = loader.load_module(name) File "/usr/lib/python2.6/pkgutil.py", line 238, in load_module mod = imp.load_module(fullname, self.file, self.filename, self.etc) File "/usr/lib/python2.6/site-packages/flexget/plugins/cli/movie_queue.py", line 10, in <module> from flexget.plugins.filter.movie_queue import QueueError, queue_add, queue_del, queue_get, queue_forget, parse_what File "/usr/lib/python2.6/site-packages/flexget/plugins/filter/movie_queue.py", line 17, in <module> from flexget.plugins.filter import queue_base File "/usr/lib/python2.6/site-packages/flexget/plugins/filter/queue_base.py", line 26, in <module> class QueuedItem(Base): File "/usr/lib/python2.6/site-packages/sqlalchemy/ext/declarative.py", line 1341, in __init__ _as_declarative(cls, classname, cls.__dict__) File "/usr/lib/python2.6/site-packages/sqlalchemy/ext/declarative.py", line 1336, in _as_declarative **mapper_args) TypeError: Error when calling the metaclass bases mapper() keywords must be strings Quote Link to comment
dalben Posted September 3, 2013 Share Posted September 3, 2013 I manually edited all the plugins I use to use python 7. No issues so far. Sabnzbd, sick beard, couch potato and flexget. Quote Link to comment
coppit Posted September 3, 2013 Share Posted September 3, 2013 How did you install python 2.7? I tried downloading the slackware txz, then doing this: installpkg python-2.7.3-i486-2.txz wget --no-check-certificate https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python But the installation complained loudly about hashlib not finding openssl functions it needed. On the Python 2.7 thread, one of the later posts provided a build that worked well for me: https://truck.it/p/Vq3zpArAKB So I updated my go script to manually install that python before kicking off unmenu (so that python is installed before flexget auto-starts). installpkg /boot/python/python-2.7.3-i686-5PTr.txz /boot/unmenu/uu Quote Link to comment
dalben Posted September 3, 2013 Share Posted September 3, 2013 One of my plugins, xbmcsalud I think, uses python 2.7. I just used the command hat plugin used and copied it over the 2.6 in the others. Quote Link to comment
archedraft Posted November 16, 2013 Share Posted November 16, 2013 Unmenu just sent me this: cron for user root su nobody -c "/usr/bin/flexget --cron -c /mnt/cache/apps/flexget/config.yml --logfile=/mnt/cache/apps/flexget/logs/flexget.log" I think that is it giving me this error because it is logged in as user nobody. How do I change the user? Quote Link to comment
prostuff1 Posted November 17, 2013 Author Share Posted November 17, 2013 actually the issue probably lies in that you are using Plex. I can't know for sure without doing some testing or looking at the package but that would be my guess Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.