Jump to content

noties

Members
  • Posts

    47
  • Joined

  • Last visited

Posts posted by noties

  1. I'm running Unraid 6.7.2 and newest NerdPack.  I have a python script that I'm trying to run on Unraid that requires a few custom modules.  I've installed them via pip, however, it seems that they get removed after a reboot.  Does this sound right? 

     

    Apologize if this is basic knowledge, but I couldn't find anything in forum archives and I figured since pip is included in NerdPack, that module installs would be carried across reboot.

     

     

  2. On 1/24/2019 at 10:00 AM, hasselltech said:

    I found this link that may be able to assist with this problem but I don't currently have a dev unraid system to test this on. If anyone is willing, I'd appreciate finding out if this works on unraid
    https://zackreed.me/spindown-sas-disks/

    So I gave this a try on my UnRAID system and it did not seem to have an effect.  It does not appear to put the drives to sleep or UnRAID isn't seeing them as asleep.  

     

    I was able to manually put them to sleep using sdparm --command=stop.  I ended up stopping my testing there.   I didn't wait to see if UnRAID would wake the disk on activity.

     

     

     

  3. Is it possible to run Deluge with Privoxy using a custom network interface (br0)?  

     

    I tried doing this and I wasn't able to connect to the WebGUI nor the Privoxy port.  Example:  My server is 10.1.1.99/24 and I set the docker network type to Custom (br0) and set the IP to static 10.1.1.98. 

     

    I can ping 10.1.1.98 from any host on my local LAN (10.1.1.0/24) but cannot connect to webGUi or Privoxy.  I have the LAN network set to 10.1.1.0/24.

     

    Everything is working fine using Network Type: Bridge.

  4. 19 hours ago, SRB said:

    It appears that my plex container has lost its connection to the internet. After noticing I couldn't access my server through the web app, I rebooted the container through the unraid gui, where it just hangs at

    
    [cont-init.d] 10-adduser: exited 0.
    [cont-init.d] 30-dbus: executing...
    [cont-init.d] 30-dbus: exited 0.
    [cont-init.d] 40-chown-files: executing...
    [cont-init.d] 40-chown-files: exited 0.
    [cont-init.d] 50-plex-update: executing...
    Atempting to upgrade to: 1.12.2.4929-29f6d1796

    I went into the container itself to see what was up, and found that the last command run was a wget to grab the latest release, however the command never completes. To make sure it wasn't a larger problem, I tested the same wget command outside of the container, which runs just fine.

     

    Did something change with the network settings for the container? I haven't touched them in forever (i.e., years). Right now they are

     

    Capture.JPG.57a18d14a2f716b2efb37ee2c1ae890c.JPG

     

     

    SRB, 

     

    I had this issue - it appeared to get fixed by making sure my firewall port forwarding was correct.  I had been playing with the port forwarding and had some of it incorrect.  Not sure if it'll fix your issue.  Sounds like you haven't messed with anything, but give it a double look.

     

     

     

     

  5. 5 hours ago, noties said:

    Hi there, 

     

    I just upgraded to 6.5.0 from 6.3.5 and right after the upgrade, Plex is no longer pulling down Movie posters or backgrounds.  I'm wondering if this may be related to any changes in docker networking or configuration changes in 6.5.  This was working perfectly right up until the UnRAID OS upgrade.

     

    I see some strange errors in the PlexMediaServer.log but not yielding anything in Plex forums or Google and I'm pretty sure it's related to something in UnRAID.

     

    And I see some errors in com.plexapp.agents.imdb.log

     

    
    INFO (__init__:1472) - Error fetching JSON from The Movie Database: http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3Den
    2018-03-31 14:45:34,766 (14934930f700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
    2018-03-31 14:45:49,798 (14934930f700) :  ERROR (networking:219) - Error opening URL 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
    2018-03-31 14:45:49,799 (14934930f700) :  INFO (__init__:1472) - Error fetching JSON from The Movie Database: http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D
    2018-03-31 14:45:49,804 (14934930f700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%2Fimages'
    2018-03-31 14:46:04,836 (14934930f700) :  ERROR (networking:219) - Error opening URL 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%2Fimages'
    2018-03-31 14:46:04,837 (14934930f700) :  INFO (__init__:1472) - Error fetching JSON from The Movie Database: http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%2Fimages
    2018-03-31 14:46:04,837 (14934930f700) :  INFO (__init__:566) - Unable to get TMDb movie data (in Plex Movie) for 0118842: argument of type 'NoneType' is not iterable
    2018-03-31 14:46:04,838 (14934930f700) :  DEBUG (networking:166) - Requesting 'https://meta.plex.tv/m/0118842?lang=en&ratings=1&reviews=1&extras=1'
    2018-03-31 14:46:04,991 (14934930f700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
    2018-03-31 14:46:20,021 (14934930f700) :  ERROR (networking:219) - Error opening URL 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
    2018-03-31 14:46:20,021 (14934930f700) :  INFO (__init__:1472) - Error fetching JSON from The Movie Database: http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D
    2018-03-31 14:46:20,027 (14934930f700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
    2018-03-31 14:46:35,061 (14934930f700) :  ERROR (networking:219) - Error opening URL 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
    2018-03-31 14:46:35,062 (14934930f700) :  INFO (__init__:1472) - Error fetching JSON from The Movie Database: http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D

     

     

    I found this link: https://forums.plex.tv/discussion/259266/401-unauthorized-when-get-metadata-from-all

     

    It appears to be related to IPv6 which I have turned on in my network, but do not want Plex docker to pull an address. 

    docker logs show Plex definitely pulling an IPv6 address.  

     

    How do I go about disabling IPv6 completely in the docker?

     

    
    Registering new address record for 192.168.122.1 on virbr0.IPv4.
    Registering new address record for fe80::42:dfff:fef8:a351 on docker0.*.
    Registering new address record for 172.17.0.1 on docker0.IPv4.
    Registering new address record for 2600:5501:c14:1fa:428d:5cff:fe08:a280 on br0.*.
    Registering new address record for 10.1.1.99 on br0.IPv4.
    Registering new address record for fe80::428d:5cff:fe07:a280 on bond0.*.

     

     

  6. Hi there, 

     

    I just upgraded to 6.5.0 from 6.3.5 and right after the upgrade, Plex is no longer pulling down Movie posters or backgrounds.  I'm wondering if this may be related to any changes in docker networking or configuration changes in 6.5.  This was working perfectly right up until the UnRAID OS upgrade.

     

    I see some strange errors in the PlexMediaServer.log but not yielding anything in Plex forums or Google and I'm pretty sure it's related to something in UnRAID.

     

    And I see some errors in com.plexapp.agents.imdb.log

     

    INFO (__init__:1472) - Error fetching JSON from The Movie Database: http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3Den
    2018-03-31 14:45:34,766 (14934930f700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
    2018-03-31 14:45:49,798 (14934930f700) :  ERROR (networking:219) - Error opening URL 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
    2018-03-31 14:45:49,799 (14934930f700) :  INFO (__init__:1472) - Error fetching JSON from The Movie Database: http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D
    2018-03-31 14:45:49,804 (14934930f700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%2Fimages'
    2018-03-31 14:46:04,836 (14934930f700) :  ERROR (networking:219) - Error opening URL 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%2Fimages'
    2018-03-31 14:46:04,837 (14934930f700) :  INFO (__init__:1472) - Error fetching JSON from The Movie Database: http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%2Fimages
    2018-03-31 14:46:04,837 (14934930f700) :  INFO (__init__:566) - Unable to get TMDb movie data (in Plex Movie) for 0118842: argument of type 'NoneType' is not iterable
    2018-03-31 14:46:04,838 (14934930f700) :  DEBUG (networking:166) - Requesting 'https://meta.plex.tv/m/0118842?lang=en&ratings=1&reviews=1&extras=1'
    2018-03-31 14:46:04,991 (14934930f700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
    2018-03-31 14:46:20,021 (14934930f700) :  ERROR (networking:219) - Error opening URL 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
    2018-03-31 14:46:20,021 (14934930f700) :  INFO (__init__:1472) - Error fetching JSON from The Movie Database: http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D
    2018-03-31 14:46:20,027 (14934930f700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
    2018-03-31 14:46:35,061 (14934930f700) :  ERROR (networking:219) - Error opening URL 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
    2018-03-31 14:46:35,062 (14934930f700) :  INFO (__init__:1472) - Error fetching JSON from The Movie Database: http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt0118842%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D

     

    Any help or guidance greatly appreciated.

     

     

    Plex Media Server Logs_2018-03-31_14-51-21.zip

  7. 14 minutes ago, trurl said:

    @johnnie.black

    I'm a little unclear about this part. Since there is only one parity, and a disk is disabled, what does it actually do? Isn't this the "read check" scenario? What exactly happens in this situation if you ask for a parity check?

     

    I guess my question centered around running Disk 6 through a full read which I assumed happened during a parity check.  

  8. 9 minutes ago, SSD said:

    I'd suggest taking the time to check out the simulated disks in unRaid. (When disks are kicked from the array, they are simulated using parities and the other data drives in the array). Check to make sure the simulated disks contain files, and don't appear unformatted. And I'd check a small sampling of files for accuracy, including some of the newer files copied to the disks.

     

    If they look perfect, you could restore data to the kicked disks. But I don't recommend it. The kicked disks are likely perfect (or near perfect), and if anything goes wrong with the rebuild, they are your plan B. You could rebuild one to a new disk, and if it works, rebuild the second to the disk that is already successfully rebuilt. That would be my suggestion.

     

    Thank you for the suggestions.  I'm in the process of doing a parity check again to verify Disk 6 that had tons of errors.  Also taking your suggestion and looking at files on the simulated disk.  So far all the newer files are fine and parity check is 50% done with no errors.  

     

    I suspect this was either a cable, controller, or (less likely) heat issue that caused the crash and kicked the disk.    I'll report back with my continued results.

  9. 1 hour ago, johnnie.black said:

    Problem in two disks at the same time would point to a cable/power problem, since they share the same miniSAS cable that would be the first thing to replace if you have a spare, then if it looks stable you need to rebuild the disable disk, using the old disk or to play it safer using a new spare.

     

    Don't have a spare mini-SAS cable, but just ordered one.  I shutdown and re-seated all cables and power to the drives and booted up again.  Disk 6 is no longer seeing errors, but I'm guessing it only resets the counter to 0 on reboot.  Should I run a parity check while Disk 7 is disabled to see if Disk 6 is still having issues?

     

  10. Came home from vacation to find my unRAID server in a tizzy.  Not sure if it overheated or just had a brain f-rt.  It was locked up - no network, no drives accessible, no web mgmt accessible and spewing the follow errors on console screen (couldn't capture the text):

     

    5a8b0cdea2606_2018-02-1812_30_28-10.1.1.19(KVM-IPTCP)RemoteConsole.png.b729fdeca10ca5305ea0468c14d56753.png 

     

     

    5a8b0d000dbcc_2018-02-1812_30_36-10.1.1_99.png.e4cf05a21ab0438f716668142a3005e4.png

     

     

    Upon restarting the server, I have one disk disabled and one disk showing errors.  Array is started and is accessible, but I'm afraid to write data until I get this figured out.

    image.thumb.png.ed321d5ac52e12fe211dee77a4aa065b.png

     

     

    Grabbed a diagnostic and attached here.  Wondering if anyone sees something I don't.  Just starting the troubleshooting process and wondering if I should focus on Disk 6 or 7 first.  

     

    teraserver-diagnostics-20180219-0923.zip

     

    Any advice would be greatly appreciated.  One disk failure, I feel comfortable recovering from, but TWO... UGH!  I'm a little worried.

     

     

     

     

  11. 2 hours ago, GilbN said:

     

    Yeah, restarting after every edit

    I just re-tested and confirmed.  If I don't have iptables-multiport as well as sendmail, I won't get a ban.  These configs definitely work for my setup.  I am only running .htpasswd on one of my NGINX locations if that changes anything.

     

    I did notice that the ban can potentially take a second or two to take effect, meaning I was able to get a username/password prompt once or twice more beyond my 5 fail threshold.  I figured this is because i was entering wrong users pretty quickly.

     

    My default file is below if it helps.  I only have security on my /cops/ URL.

    upstream backend {
    	server 10.1.1.99:19999;
    	keepalive 64;
    }
    
    server {
    	listen 443 ssl default_server;
    	listen 80 default_server;
    	root /config/www;
    	index index.html index.htm index.php;
    
    	server_name SOMESERVER.duckdns.org;
    
    	ssl_certificate /config/keys/letsencrypt/fullchain.pem;
    	ssl_certificate_key /config/keys/letsencrypt/privkey.pem;
    	ssl_dhparam /config/nginx/dhparams.pem;
    	ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
    	ssl_prefer_server_ciphers on;
    
    	client_max_body_size 0;
    
    #	location = / {
    #		return 301 /sonarr;
    #	}
    
    
    location /ombi/ {
        proxy_pass http://10.1.1.99:3579;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Host $server_name;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Ssl on;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_read_timeout  90;
        proxy_redirect http://10.1.1.99:3579 https://$host;
    }
    if ($http_referer ~* /ombi/) {
            rewrite ^/dist/([0-9\d*]).js /ombi/dist/$1.js last;
    }
    	location /cops {
    		auth_basic "Restricted";
    		auth_basic_user_file /config/nginx/.htpasswd;
    		include /config/nginx/proxy.conf;
    		proxy_pass http://10.1.1.99:8008/;
    	}

     

  12. 1 minute ago, GilbN said:

    @noties

     

    I've added what you've posted and the it works but it doesn't seem to actually ban the IP. It logs that the IP is banned but I can still access the site (using LTE on mobile). If I remove the mta/action/iptables-multiport lines it bans like normal. 

     

    Did you test that access is blocked?

     

    Yes, I tested.  I couldn't get a ban to work without adding the iptables-multiport.  

     

    Are you restarting the docker every time you make a change to jail.local?  I found strange behavior unless I restarted the docker.  I can test again and report.

     

  13. On 12/18/2017 at 9:32 AM, GilbN said:

     

    Hm, when looking at what I posted I just see the same? 

     

     

    GilbN (and others), 

     

    I'm not sure if you got this working or not, but I'm going to post this here to help others that may be struggling as much as I did with letsencrypt/fail2ban and email notifications.  Here are my working configs and steps for letsencrypt/fail2ban and email notifications using gmail.

     

    Copy sendmail-whois.conf to sendmail-whois.local 

    copy sendmail-common.conf to sendmail-common.local

    Make changes to both .local files outlined below.

    Edit jail.local with changes outlined below.

     

     

    sendmail-common.local (if you don't care about fail2ban start notifications, I think you can skip this)

    actionstart = printf %%b "Subject: [Fail2Ban] <name>: started on <fq-hostname>
                  Date: `LC_ALL=C date +"%%a, %%d %%h %%Y %%T %%z"`
                  From: <sendername> <<sender>>
                  To: <dest>\n
                  Hi,\n
                  The jail <name> has been started successfully.\n
                  Regards,\n
                  Fail2Ban" | /usr/sbin/sendmail -t -v -H 'exec openssl s_client -quiet -tls1 -connect smtp.gmail.com:465' [email protected] -apPASSWORD <dest>

    Only need to change the last line.  Replace the UPPERCASE with your username and password.  Leave all else.

     

     

     

    sendmail-whois.local

    actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from <fq-hostname>
                Date: `LC_ALL=C date +"%%a, %%d %%h %%Y %%T %%z"`
                From: <sendername> <<sender>>
                To: <dest>\n
                Hi,\n
                The IP <ip> has just been banned by Fail2Ban after
                <failures> attempts against <name>.\n\n
                Here is more information about <ip> :\n
                `/usr/bin/whois <ip> || echo missing whois program`\n
                Regards,\n
                Fail2Ban" | /usr/sbin/sendmail -t -v -H 'exec openssl s_client -quiet -tls1 -connect smtp.gmail.com:465' [email protected] -apPASSWORD <dest>

    Same thing... Only need to change the last line of the actionban.  Insert your username and password where the UPPERCASE is.

     

     

     

     

     

    jail.local

    [nginx-http-auth]
    
    enabled  = true
    filter   = nginx-http-auth
    port     = http,https
    logpath  = /config/log/nginx/error.log
    ignoreip = 10.1.1.0/24
    mta = sendmail
    action = sendmail-whois[name=letsencrypt, [email protected]]
    		iptables-multiport[name=letsencrypt, port="http,https", protocol=tcp]
    

    ignoreip is my local home subnet.

    mta - set it to sendmail

    action - If you want fail2ban to notify AND add a block to iptables, you need both actions.  I couldn't get it to block and send an email without adding both actions.  

     

    These settings finally worked for me.

    • Like 1
  14. I had these same error messages in my docker.log which ended up filling completely:

     

    level=error msg="Handler for GET /v1.30/version returned error: client is newer than server (client API version: 1.30, server API version: 1.24)" 

     

    I narrowed it down by trial and error to the Glances docker.  I haven't found a solution yet, but I'd suggest disabling the Glances docker for now.

  15. On 1/21/2017 at 4:35 AM, 1812 said:

    -bump for sas support!-

     

    when my sas drives are xfs, they spin down, but no when btrfs.

     

     

    also, temp display? Also funny: disks show as spun down but still usable....

     

    Another bump for SAS and spindown support.  Have an LSI 9207-8i.  Am also seeing * for temp display and would love to have temp display.

    Not a programmer, but willing to help in any way I can. 

×
×
  • Create New...