-
[Support] binhex - DelugeVPN
Hello, This container has been working flawlessly for me for a couple of months. Sometime in the last 12 hours or so it stopped working. I can't connect to the WebGUI or through the ThinClient. I've no clue how to troubleshoot this, any help appreciated. Every couple of seconds I get the following in the logs (see attached file) deluge.txt
-
Nextcloud in a VM: Using share as Nextcloud data directory
I honestly don't remember. I think I got it working at some point but it was wonky and I then ran in to a bunch of other problems and settled on a Docker container instead.
-
[Support] A75G Repo
The instructions for Cryptpad seems outdated and the instructions on the install page of the Unraid UI differ from the one in the FAQ in post #2 in this thread. The one on the install page wants be to wget a file to /mnt/user/appdata/config/config.js but that is already a directory. The one on the FAQ wants to wget a file to /mnt/user/element-web which seems to be a completely different config file on the remote side, e.g it does not have the httpUnsafeOrigin config key.
-
-
Nextcloud in a VM: Using share as Nextcloud data directory
Hello, I installed a 4TB disk in my server with the purpose to use it as a NextCloud data directory. I've set up all my usual shares to exclude the new disk. And made a new share which uses only the new disk. I installed Fedora server 33 on a VM. And installed the packages nextcloud and nextcloud-nginx and I can get to the installation page, however, I can't get write permissions for Nextcloud on the mounted Unraid share. The share is mounted on /data through /etc/fstab: data /data 9p trans=virtio,version=9p2000.L,_netdev,rw 0 0 ..and I can write to it through the terminal. Output of mount is: $ mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,seclabel,size=991228k,nr_inodes=247807,mode=755,inode64) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel,inode64) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,size=404164k,nr_inodes=819200,mode=755,inode64) cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,seclabel,nsdelegate) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime,seclabel) efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime) none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700) none on /sys/kernel/tracing type tracefs (rw,relatime,seclabel) /dev/mapper/fedora_fedora-root on / type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota) selinuxfs on /sys/fs/selinux type selinuxfs (rw,nosuid,noexec,relatime) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13185) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel,pagesize=2M) mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime,seclabel) debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime,seclabel) fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime) configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,seclabel,size=1010412k,nr_inodes=409600,inode64) /dev/vda2 on /boot type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota) /dev/vda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=winnt,errors=remount-ro) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=202080k,nr_inodes=50520,mode=700,uid=1000,gid=1000,inode64) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime) tracefs on /sys/kernel/debug/tracing type tracefs (rw,nosuid,nodev,noexec,relatime,seclabel) data on /data type 9p (rw,relatime,sync,dirsync,access=client,trans=virtio,_netdev) NextCloud is installed in /usr/share/nextcloud: $ ls -lh /usr/share/nextcloud/ total 60K drwxr-xr-x. 40 root root 4.0K Mar 30 15:45 3rdparty drwxr-xr-x. 44 root root 4.0K Mar 30 15:45 apps lrwxrwxrwx. 1 root root 14 Feb 20 16:47 config -> /etc/nextcloud -rw-r--r--. 1 root root 3.9K Jan 25 16:31 console.php drwxr-xr-x. 23 root root 4.0K Mar 30 15:45 core -rw-r--r--. 1 root root 5.1K Jan 25 16:31 cron.php -rw-r--r--. 1 root root 156 Jan 25 16:31 index.html -rw-r--r--. 1 root root 2.9K Jan 25 16:31 index.php drwxr-xr-x. 6 root root 125 Mar 30 15:45 lib -rwxr-xr-x. 1 root root 279 Feb 20 16:46 occ drwxr-xr-x. 2 root root 23 Mar 30 15:45 ocm-provider drwxr-xr-x. 2 root root 55 Mar 30 15:45 ocs drwxr-xr-x. 2 root root 23 Mar 30 15:45 ocs-provider -rw-r--r--. 1 root root 3.1K Jan 25 16:31 public.php -rw-r--r--. 1 root root 5.3K Jan 25 16:31 remote.php drwxr-xr-x. 4 root root 133 Mar 30 15:45 resources -rw-r--r--. 1 root root 26 Jan 25 16:31 robots.txt -rw-r--r--. 1 root root 2.4K Jan 25 16:31 status.php drwxr-xr-x. 3 root root 35 Mar 30 15:45 themes drwxr-xr-x. 2 root root 43 Mar 30 15:45 updater -rw-r--r--. 1 root root 362 Jan 25 16:34 version.php the config directory gets symlinked to /etc/nextcloud $ ls -lh /etc/nextcloud/ total 4.0K lrwxrwxrwx. 1 root root 32 Feb 20 16:47 ca-bundle.crt -> /etc/pki/tls/certs/ca-bundle.crt -rw-------. 1 apache apache 670 Feb 20 16:44 config.php As you can see the webroot files are owned by root, and the config.php is owned by apache. In nginx.conf I have user nginx which suggests nginx is run by the nginx user. These are the users on the system: $ cat /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/sbin:/bin/sync shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown halt:x:7:0:halt:/sbin:/sbin/halt mail:x:8:12:mail:/var/spool/mail:/sbin/nologin operator:x:11:0:operator:/root:/sbin/nologin games:x:12:100:games:/usr/games:/sbin/nologin ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin nobody:x:65534:65534:Kernel Overflow User:/:/sbin/nologin systemd-coredump:x:999:997:systemd Core Dumper:/:/sbin/nologin systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin systemd-resolve:x:193:193:systemd Resolver:/:/sbin/nologin systemd-timesync:x:998:996:systemd Time Synchronization:/:/sbin/nologin dbus:x:81:81:System message bus:/:/sbin/nologin polkitd:x:997:995:User for polkitd:/:/sbin/nologin tss:x:59:59:Account used for TPM access:/dev/null:/sbin/nologin rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin setroubleshoot:x:996:991::/var/lib/setroubleshoot:/sbin/nologin cockpit-ws:x:995:990:User for cockpit web service:/nonexisting:/sbin/nologin cockpit-wsinstance:x:994:989:User for cockpit-ws instances:/nonexisting:/sbin/nologin abrt:x:173:173::/etc/abrt:/sbin/nologin rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin dnsmasq:x:988:988:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/usr/sbin/nologin chrony:x:987:987::/var/lib/chrony:/sbin/nologin tcpdump:x:72:72::/:/sbin/nologin df:x:1000:1000:df:/home/df:/bin/bash clevis:x:986:986:Clevis Decryption Framework unprivileged user:/var/cache/clevis:/sbin/nologin unbound:x:985:985:Unbound DNS resolver:/etc/unbound:/sbin/nologin nginx:x:984:984:Nginx web server:/var/lib/nginx:/sbin/nologin mysql:x:27:27:MySQL Server:/var/lib/mysql:/sbin/nologin apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin I have tried every combination of chown -R <username>:<username> /data (where <username> is any of root, apache or nginx mentioned above). I've even tried making a subdirectory in /data and trying to change the ownership of that directory according to the previous mentioned methods without success. If anyone would be able to tell me what I'm doing wrong I would be extremely grateful. Tried setting up this for 3 hours now with no success. Thanks in advance!
-
Dynamic DNS for Namecheap script
Hi, Never seen such a message. Did you set up the variables on line 2-4 in the script? Also have you set up your A records with Namcheap? You need to manually set up the records the first time, then the script will update the records when necessary.
-
Unraid OS version 6.9.1 available
Thanks Unraid Team for this update Having some issues downloading the update, at 7% after 5 min on 1Gbit/s connection. Servers overloaded?
-
Dynamic DNS for Namecheap script
Hi guys, I'm a fresh Unraid user, built a small server that has been up an running for almost a week now. I had a script to update DNS records for a domain hosted with Namecheap that I customized for the Unraid server I thought I'd share, maybe someone else will find some use from it. It uses the Unraid notification system to send an e-mail on updates and if an error was encountered during the update. I use it in conjunction with the CA User Scripts plugin and have it setup to run every 15 minutes. Requirements (I installed these through Nerd Pack) bind lmdb json-c How to use: I just made a new script through the CA User Scripts interface, and pasted the code below into the script file. Then I chose to use a custom schedule and entered "*/15 * * * *" to make it run every 15 minutes. Put the hosts you want checked and updated in the hosts variable, each host encapsulated in double quotes and separated with spaces on line 2 Put your domain name in the domain variable on line 3 Put your DNS password that you get from the Namecheap control panel for your domain on line 4 #!/bin/bash hosts=( "@" "host1" "host2" "host3" ) # Enter your hosts in quotes separated by a space. The first and last characters within the parenthesis need to be spaces. domain="domain.com" # Your domain name password="your-dns-password" # The Dynamic DNS password from Namecheap, you'll find it in the control panel for your domain # Set up some variables hosts_updated="" hosts_unchanged="" # Fetch your WAN IP address and store in a variable new_ip=$(curl -s http://dynamicdns.park-your-domain.com/getip) # Loop through all the hosts and check if they need updating for host in ${hosts[*]} do if [[ $host == "@" ]]; then fulldomain=$domain elif [[ $host != "@" ]]; then fulldomain=$host.$domain fi # Check if the A record is the same as your current WAN IP, if it is just continue with the next host current_ip=$(dig $fulldomain @8.8.8.8 +short) if [[ $new_ip == $current_ip ]]; then hosts_unchanged+="${fulldomain}\n" continue fi # Try to update the DNS record and store the response response=$(curl -s "https://dynamicdns.park-your-domain.com/update?host=$host&domain=$domain&password=$password&ip=$new_ip") # Check if there's errors in the response regex="<ErrCount>([0-1])<\/ErrCount>" if [[ $response =~ $regex ]]; then if [[ ${BASH_REMATCH[1]} == "0" ]]; then hosts_updated+="${fulldomain}\n" elif [[ ${BASH_REMATCH[1]} == "1" ]]; then # Send mail through Unraid notification system. If you want notifications in the web browser, remove the "-t" at the end. /usr/local/emhttp/webGui/scripts/notify -e "DDNS Namecheap" -s "DNS Update Error ${fulldomain}" -i "warning" -m "An error was encountered when trying to update ${fulldomain}, the response was:\n${response}" -t # Log to console echo -e "An error was encountered when trying to update ${fulldomain}, the response was:\n${response}" fi fi done # If any hosts have been updated, send an e-mail through the Unraid notification system. if [[ ! -z "$hosts_updated" ]]; then message="The following hosts just had their DNS updated with IP ${new_ip}:\n${hosts_updated}" # If any of the hosts were unchanged, mention them in the message. if [[ ! -z "$hosts_unchanged" ]]; then message+="\nThe following hosts were left unchanged:\n${hosts_unchanged}" fi # Send mail through Unraid notification system. If you want notifications in the web browser, remove the "-t" at the end. /usr/local/emhttp/webGui/scripts/notify -e "DDNS Namecheap" -s "DNS Updated: ${new_ip}" -m "${message}" -t # Log to console echo -e "${message}" fi # If no hosts have been updated, just echo to the console. if [[ -z "$hosts_updated" ]]; then echo "No hosts have been updated" fi This script could quite easily be modified to work with other DNS services that offers a similar technique to Namecheap if you wish. Hopefully someone else will find some use from it I think the script is pretty much done, but if I decide to update it I will push changes to Github, you can find it here Thanks for looking //Mattias
-
Mover % bar or information
Would just like to add +1 to this feature request. Would be very handy to have
maetthew
Members
-
Joined
-
Last visited