Jump to content

Eddie Seelke

Members
  • Posts

    66
  • Joined

  • Last visited

Posts posted by Eddie Seelke

  1. So, I would still love to see this as a plug-in for unRAID. But, I have managed to scrape together a script that will work in the meantime. It's not perfect, but it does work so I thought I would share in case it helps someone else.

     

    I am using the User Scripts plugin. I created a script called argo_tunnel and pasted the following into it.

    #!/bin/bash
    #
    #description=Create Cloudflare Zero Trust Tunnel
    #backgroundOnly=true
    #arrayStarted=false
    #noParity=false
    #clearLog=true
    # Create Cloudflare Zero Trust Tunnel
    #
    
    #--DEFINE VARIABLES--#
    
    # Set tunnel token found at https://one.dash.cloudflare.com
    argotoken=PASTETOKENHERE
    
    # Set folder for executables
    argofolder=/root/argo
    
    
    #--START SCRIPT--#
    /usr/local/emhttp/plugins/dynamix/scripts/notify -s "Cloudflare Tunnel" -d "Starting Cloudflare Tunnel."
    
    mkdir -p $argofolder
    
    # Download supervisor and cloudflared and make executable
    wget -nc https://m1l7.c18.e2-3.dev/files/unraid/supervisord -P $argofolder/
    chmod +x $argofolder/supervisord
    wget -nc -O $argofolder/cloudflared https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64
    chmod +x $argofolder/cloudflared
    
    # Create supervisord conf file
    cat > $argofolder/supervisord.conf << EOL
    [unix_http_server]
    file = /var/run/supervisor.sock
    chmod = 0777
    chown= nobody:nogroup
    
    [program:cloudflared]
    command = $argofolder/cloudflared --protocol quic tunnel run --token $argotoken
    autostart = true
    autorestart = true
    startsecs = 20
    startretries = 100
    redirect_stderr = true
    stdout_logfile = /var/log/cloudflared.log
    stdout_logfile_maxbytes = 2M
    stdout_logfile_backups = 0
    stopsignal = INT
    EOL
    
    #Run Cloudflare Tunnel
    $argofolder/supervisord -c $argofolder/supervisord.conf -d
    
    #Stop Notification
    #/usr/local/emhttp/plugins/dynamix/scripts/notify -s "Cloudflare Tunnel" -d "Stopping Cloudflare Tunnel."

     

    There are two variables.

    $argotoken - You will need to add your token from https://one.dash.cloudflare.com/ replacing PASTETOKENHERE.

    $argofolder -  You can change this or leave the default to your liking.

     

    It does not seem as if there is a way to start scripts in User Scripts at boot. Since I wanted this to start even if the array doesn't start, I added the following line to my /boot/config/go file.

     

    sh /boot/config/plugins/user.scripts/scripts/argo_tunnel/script

     

    If you didn't choose the same name for the script, you will need to update the path for the script above. And, if you don't want to edit the go file, you can simply choose "At First Array Start Only" for your script in User Scripts.

     

    If this helps, please leave a comment. And, if you know a better way to implement this, please let me know.

  2. I would love to see cloudflared as a native plugin for unRAID. I know that there is a docker container, but it would be, in my opinion, better to have it native so that it runs even when the array is offline.

     

    This is a much easier way to proxy sites to containers. It does not require any ports to be forwarded and users cannot get your home public IP address. And, it can be used to connect to your home network when away by using the 1.1.1.1 client.

     

    This seems to be a must have for anyone wanting to share data and keep their network secure.

    • Upvote 4
  3. 1 minute ago, xlucero1 said:

    To hopefully wrap this up here then; I'm sure everyone has GPU passed thru to their VM. The Nvidia Driver plugin says dont install it if you pass thru GPU to VM. So how do I do it? Download the plugin anyway? VM and Unmatic should still work or no? 

     

    What they mean by don't install the drivers if you are using VM passthrough, is that it will not help. If you passthrough your GPU to a VM, you CANNOT use your GPU with any Docker containers.

     

    If you need both, you will need to have two GPU's installed in your unRAID server. This is a hardware limitation and has nothing to do with unRAID on any of the app developers.

     

    I have an inexpensive GPU for my WIndows 10 VM and a better GPU for my transcoding. So, one is passed through and the other is used in two Docker containers.

     

    Note: If you do have two and one of them is passed through, only the GPU that is not passed through will appear in your Nvidia drivers list as you can see from my screenshots.

     

    image.thumb.png.d537ac8107d88fdadae6ef1135f4054d.png

     

    image.png.6c59f73e0a5948768b69db32c44873cf.png

    • Upvote 2
  4. I am unable to get this drive added to the array. I used the following steps to add it.

     

    1. Pre-cleared drive

    
    ####################################################################################################
    #                              Unraid Server Preclear of disk ZA1GCFHY                             #
    #                            Cycle 1 of 1, partition start on sector 64.                           #
    #                                                                                                  #
    #   Step 1 of 5 - Pre-read verification:                  [12:04:00 @ 184 MB/s] SUCCESS            #
    #   Step 2 of 5 - Zeroing the disk:                       [12:05:02 @ 183 MB/s] SUCCESS            #
    #   Step 3 of 5 - Writing Unraid's Preclear signature:                          SUCCESS            #
    #   Step 4 of 5 - Verifying Unraid's Preclear signature:                        SUCCESS            #
    #   Step 5 of 5 - Post-Read verification:                 [12:04:10 @ 184 MB/s] SUCCESS            #
    #                                                                                                  #
    #                                                                                                  #
    #                                                                                                  #
    ####################################################################################################
    #       Cycle elapsed time: 36:13:19 | Total elapsed time: 36:13:19                                #
    ####################################################################################################
    
    ####################################################################################################
    #   S.M.A.R.T. Status (device type: default)                                                       #
    #                                                                                                  #
    #   ATTRIBUTE                   INITIAL CYCLE 1 STATUS                                             #
    #   Reallocated_Sector_Ct       0       0       -                                                  #
    #   Power_On_Hours              25028   25064   Up 36                                              #
    #   End-to-End_Error            0       0       -                                                  #
    #   Reported_Uncorrect          0       0       -                                                  #
    #   Airflow_Temperature_Cel     52      45      Down 7  ->Failed in Past<-                         #
    #   Current_Pending_Sector      0       0       -                                                  #
    #   Offline_Uncorrectable       0       0       -                                                  #
    #   UDMA_CRC_Error_Count        0       0       -                                                  #
    #                                                                                                  #
    ####################################################################################################
    #                                                                                                  #
    ####################################################################################################
    --> ATTENTION: Please take a look into the SMART report above for drive health issues.
    
    --> RESULT: Preclear Finished Successfully!.

     

    2. I stopped array and added as disk 5.

    image.png.19d92e7b688e4be28f6e340744cec627.png

     

    3. I started array.

    image.thumb.png.f29f27380b1508a262d7f8efd3ab099a.png

     

    4. I clicked on the checkmark to format the drive. And, then acknowledged the disclaimer.

    image.thumb.png.1699c1b14e79af06225034b34b40511e.png

     

    image.png.a2a074450636cba5179c90f03564cb74.png

     

    image.thumb.png.d6e2cceaafd8ba2ae92ab385b66c14d6.png

     

    5. I then click on the Format button. The screen refreshes showing formatting... then refreshes again back to step 4 above. Nothing seems to happen.  Not sure what is happening here.

    media-diagnostics-20221106-1629.zip

  5. 11 minutes ago, ich777 said:

    The GT730 is a pretty bad card for transcoding because it doesn't support h.265 (HEVC).

     

    I was only using it for a Windows VM and didn't really need the drivers for it. I should get the power cable for the M4000 on Sunday. Hopefully, that will resolve my issue.

     

    Thanks

  6. I have installed the Nvidia drivers and have two Nvidia cards installed, a GeForce GT 730 and a Quadro M4000. Both show up under System Devices.

    image.thumb.png.07aa0d1195830a693ccfc3874d71ef0a.png

     

    But, the Nvidia Driver Package says no devices found.

    image.thumb.png.a49b36b291f171f0be929139d808b73b.png

     

    SSH command:

    root@Media:~# nvidia-smi
    No devices were found

     

    I had used the latest driver when installing and changed to Production to see if that would help. I rebooted every time.

     

    The GT 730 is used only for a Windows VM. I had it bound, but un-bound it when trying to get the drivers to show. Diags are attached just in case.

     

    Thanks in advance,

    Eddie

     

    EDIT:

    I just installed the M4000 today. I just found a note about no power adapter in the logs and just ordered a cable. But, the GT 730 does not install drivers even with the M4000 removed.

    Nov  4 15:11:42 Media kernel: NVRM: GPU 0000:03:00.0: GPU does not have the necessary power cables connected.
    Nov  4 15:11:42 Media kernel: NVRM: GPU 0000:03:00.0: RmInitAdapter failed! (0x24:0x1c:1377)
    Nov  4 15:11:42 Media kernel: NVRM: GPU 0000:03:00.0: rm_init_adapter failed, device minor number 0

    media-diagnostics-20221104-1511.zip

  7. Just my 2 cents, but you don't need to run more than one db container.  I use phpMyAdmin to manage my databases. As long as you make sure the user has all necessary permissions for the database, it should work.

     

    I can start a remote session this afternoon, I am CDT time zone, if that would help. Just send me a PM.

    • Like 1
  8. Just now, mjeshurun said:

    Can anyone please explain how to setup a second wordpress instance on the same home server to host a completely different website?

    I created a new mariadb database using Adminer, called the database by a new name, created a new user and gave the user a unique password.

    I then tried installing the wordpress app again with a different container name, and the unique db info I created earlier (db name, db user and db password). The db server info (ip and port) are the same as the first website, but that's the only similarity.

    The second instance installs ok, but when I try to open the webui I get the following error message:

     

    Error establishing a database connection

     

    Am I doing something wrong?

    Did you also change the appdata path for the new container?

    • Like 1
  9. 11 hours ago, mjeshurun said:

    Hi Friends,

    I've installed the Wordpress docker app for UnRAID and was able to migrate my website from Namecheap to my UnRAID home server. I'm able to open the website using my server's local [IP address]:[port] and all the website data seems to have been migrated well.

    As a second step, I would like to configure the Wordpress website I created on my local server to be reachable using my registered domain name.

    Can anyone suggest what steps I should take to connect between the Wordpress website, Cloudflare and Swag (which I use to create Let's Encrypt SSL certificates)?

    Any help will be much appreciated.

     

    I don't know about Cloudflare or Swag, but I host my personal site using a Wordpress container on UnRAID using Traefik and quic.cloud. For the dynamic domain, I transferred my domain to Google Domains and made the default host as dynamic. My next step is to figure out how to change the container to Wordpress with LiteSpeed.

    • Like 1
  10. I am having an issue with drives not spinning down if they were spun up manually. This started after upgrading to 6.11.1

     

    If it is spun up by the system, it will spin down after timeout. But, the only way I have found so far to get the disk(s) to spin down if I manually spun it up is to reboot the server.

  11. For those that are increasing a Windows 10/11 VM, you do not need to download a 3rd party partition utility. Windows comes with a built-in utility called diskpart that will delete the Recovery partition for you. It is not difficult to use.

     

    1. Open a command prompt as Administrator.
    2. Type diskpart and press Enter.
    3. Find the disk number for your OS, usually disk 0 with the command list disk. You will see at least one disk listed.
    4. Make sure to select the correct disk. Assuming your OS is Disk 0, enter command select disk 0.
    5. Now, we need to list the partitions. Enter the command list part.
    6. If you used the default setup when installing Windows you likely have 4 partitions and the Recovery partition is Partition 4. So select it with the command select partition 4.
    7. Now, to delete use the command delete partition override.
    8. Lastly, right-click the Start menu, and select Disk Management. You should be able to Extend Volume by right-clicking on the C partition. Follow the wizard to complete.
    • Like 2
    • Thanks 1
  12. I am having an issue and am at a loss on how to troubleshoot.

     

    If Unmanic is idle for a period and then detects a new file to process, it will just spin and spin on the first processing state. Currently, there are multiple files that were added 3 days ago and nothing is actually being processed.

     

    If I restart the docker though, it will complete the process on these files.

     

    So, how to I either resolve the issue or troubleshoot it?

     

    Thanks, Eddie

  13. Thanks for the reply.

     

    Is it possible to do that with unRAID running? My USB drive is plugged into the internal USB port.

     

    As for the IP, yes I am sure. It ran with the same configuration for two years, then I updated so I could get TPM. Oddly though, sometimes the forwarding does work. I just can't make it work consistently.

  14. Hi,

     

    I have a major issue as explained here.

     

    Until this is resolved I am wondering how can I downgrade back to 6.9? I am currently running 6.10.0-rc4 and the only restore option is 6.10.0-rc3.

     

    Thanks, Eddie

  15. I removed the /boot/config/ssh folder and rebooted.

     

    When I try to add the key using the webui for the root user, I get the following error.

    image.png.2122739e69da7a6698c179ecd7eb234a.png

     

    The key is exactly as I would add to another system in the authorized_keys file, which does work.

  16. Hello,

     

    I am using Putty to login via SSH using a key in order to avoid entering a password. However, I continue to receive the error "Server refused our key".

     

    I do have the correct key in /root/.ssh/authorized_keys and have verified it is correct, as well as deleting and re-adding. Still continue to get this error. Putty is also pointed to the correct ppk file. I am using the same setup on several other systems and they work fine.

     

    Any help is appreciated.

     

    Eddie

×
×
  • Create New...