Chrrs

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Chrrs

  1. I'm having issues with hardlinking with my Sonarr container on unRaid 6.8. While researching this issue, all the posts I've seen say that you should just have one top level mount point in all your dockers. So I created a host path /media that points to /mnt/user, but I still have issues hardlinking. After I changed my volumes mapping, I opened a console to my Sonarr docker and ran ln. This is the error returned:

    sh-5.0# ln /media/Downloads/foo /media/TV/bar
    ln: failed to create hard link '/media/TV/bar => '/media/Downloads/foo': Invalid cross-device link

    This is how the docker is run:

    root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='binhex-sonarr' --net='bridge' -e TZ="America/New_York" -e HOST_OS="Unraid" -e 'UMASK'='000' -e 'PUID'='99' -e 'PGID'='100' -p '8989:8989/tcp' -p '9897:9897/tcp' -v '/mnt/user':'/media':'rw' -v '/mnt/user/appdata/binhex-sonarr':'/config':'rw' 'binhex/arch-sonarr' 

    My docker sees /media as a proper mount point (I think?):

    sh-5.0# column -t < /proc/mounts
    /dev/loop3  /                          btrfs      rw,relatime,space_cache,subvolid=2312,subvol=/btrfs/subvolumes/eef8c1579c783122fc0f1b5baf4e46cfb71041184f93617c5a848747c7a3c199     0  0
    proc        /proc                      proc       rw,nosuid,nodev,noexec,relatime                                                                                                     0  0
    tmpfs       /dev                       tmpfs      rw,nosuid,size=65536k,mode=755                                                                                                      0  0
    devpts      /dev/pts                   devpts     rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666                                                                               0  0
    sysfs       /sys                       sysfs      ro,nosuid,nodev,noexec,relatime                                                                                                     0  0
    tmpfs       /sys/fs/cgroup             tmpfs      ro,nosuid,nodev,noexec,relatime,mode=755                                                                                            0  0
    cpuset      /sys/fs/cgroup/cpuset      cgroup     ro,nosuid,nodev,noexec,relatime,cpuset                                                                                              0  0
    cpu         /sys/fs/cgroup/cpu         cgroup     ro,nosuid,nodev,noexec,relatime,cpu                                                                                                 0  0
    cpuacct     /sys/fs/cgroup/cpuacct     cgroup     ro,nosuid,nodev,noexec,relatime,cpuacct                                                                                             0  0
    blkio       /sys/fs/cgroup/blkio       cgroup     ro,nosuid,nodev,noexec,relatime,blkio                                                                                               0  0
    memory      /sys/fs/cgroup/memory      cgroup     ro,nosuid,nodev,noexec,relatime,memory                                                                                              0  0
    devices     /sys/fs/cgroup/devices     cgroup     ro,nosuid,nodev,noexec,relatime,devices                                                                                             0  0
    freezer     /sys/fs/cgroup/freezer     cgroup     ro,nosuid,nodev,noexec,relatime,freezer                                                                                             0  0
    net_cls     /sys/fs/cgroup/net_cls     cgroup     ro,nosuid,nodev,noexec,relatime,net_cls                                                                                             0  0
    perf_event  /sys/fs/cgroup/perf_event  cgroup     ro,nosuid,nodev,noexec,relatime,perf_event                                                                                          0  0
    net_prio    /sys/fs/cgroup/net_prio    cgroup     ro,nosuid,nodev,noexec,relatime,net_prio                                                                                            0  0
    hugetlb     /sys/fs/cgroup/hugetlb     cgroup     ro,nosuid,nodev,noexec,relatime,hugetlb                                                                                             0  0
    pids        /sys/fs/cgroup/pids        cgroup     ro,nosuid,nodev,noexec,relatime,pids                                                                                                0  0
    mqueue      /dev/mqueue                mqueue     rw,nosuid,nodev,noexec,relatime                                                                                                     0  0
    shm         /dev/shm                   tmpfs      rw,nosuid,nodev,noexec,relatime,size=65536k                                                                                         0  0
    shfs        /config                    fuse.shfs  rw,nosuid,nodev,noatime,user_id=0,group_id=0,allow_other                                                                            0  0
    /dev/loop3  /data                      btrfs      rw,relatime,space_cache,subvolid=5,subvol=/volumes/f470c2750a1aca239eb2973f8c442c639dbf88bec93e41eac3391c59abfbf91e/_data           0  0
    shfs        /media                     fuse.shfs  rw,nosuid,nodev,noatime,user_id=0,group_id=0,allow_other                                                                            0  0
    /dev/loop3  /etc/resolv.conf           btrfs      rw,relatime,space_cache,subvolid=5,subvol=/containers/98b0d21c6c1fd138abc51c274ebbfbd287263161c47953957bc70fd11efd72f7/resolv.conf  0  0
    /dev/loop3  /etc/hostname              btrfs      rw,relatime,space_cache,subvolid=5,subvol=/containers/98b0d21c6c1fd138abc51c274ebbfbd287263161c47953957bc70fd11efd72f7/hostname     0  0
    /dev/loop3  /etc/hosts                 btrfs      rw,relatime,space_cache,subvolid=5,subvol=/containers/98b0d21c6c1fd138abc51c274ebbfbd287263161c47953957bc70fd11efd72f7/hosts        0  0
    proc        /proc/bus                  proc       ro,relatime                                                                                                                         0  0
    proc        /proc/fs                   proc       ro,relatime                                                                                                                         0  0
    proc        /proc/irq                  proc       ro,relatime                                                                                                                         0  0
    proc        /proc/sys                  proc       ro,relatime                                                                                                                         0  0
    proc        /proc/sysrq-trigger        proc       ro,relatime                                                                                                                         0  0
    tmpfs       /proc/acpi                 tmpfs      ro,relatime                                                                                                                         0  0
    tmpfs       /proc/kcore                tmpfs      rw,nosuid,size=65536k,mode=755                                                                                                      0  0
    tmpfs       /proc/keys                 tmpfs      rw,nosuid,size=65536k,mode=755                                                                                                      0  0
    tmpfs       /proc/timer_list           tmpfs      rw,nosuid,size=65536k,mode=755                                                                                                      0  0
    tmpfs       /sys/firmware              tmpfs      ro,relatime                                                                                                                         0  0

    Edit: Hardlinking within the same directory gives the same error:

    sh-5.0# ln /media/foo /media/bar
    ln: failed to create hard link '/media/bar' => '/media/foo': Invalid cross-device link

    Edit 2: I think I understand why it's not working. I think I need a top level share under which I'll put my folders. Currently:

    Shares:

    /mnt/user/Movies

    /mnt/user/TV

    /mnt/user/Downloads

     

    Docker mapping:

    /media -> /mnt/user

     

    What I need

    Shares:

    /mnt/user/media/Movies

    /mnt/user/media/TV

    /mnt/user/media/Downloads

     

    Docker mapping:

    /media -> /mnt/user/media

     

    I will test the above tomorrow and report back if it's working

  2. Chrome on my Mac will not load the admin page (https://myip:943/admin). Neither the root ca nor the self-signed certificate are being trusted: NET::ERR_CERT_REVOKED

     

    I can't force a bypass of this error by choosing to proceed to the unsafe webpage. I am able to on other devices. I verified the time inside the docker and it is correct (same as my laptop). What am I missing?

     

    Edit: I got a copy of the root ca from /appdata/openvpn-as/etc/web-ssl/ca.crt, added it to my Mac's Keychain and manually trusted it in my Keychain's System area. Chrome now says that the root ca and server certificate are "valid", but is still me NET::ERR_CERT_REVOKED with no way to bypass.

     

    Edit 2: This may be an issue with Chrome and Catalina? Anyone running Catalina and openvpn-as able to open the admin page?

     

    Edit 3: Last edit. I'm pretty sure this is due to Catalina's new requirements for certificates. openvpn-as is generating a certificate valid for 10 years while Catalina will only trust certificates generated after July 2019 that are valid for 825 days or less. Not related to openvpn-as, this seems to be the same issue: https://github.com/symfony/cli/issues/146

  3. I was previously on 6.3.x and upgraded to 6.5.2 via the plugin. My old set up had the webserver running on port 81. I had this in my go script:

     

    /usr/local/sbin/emhttp -p 81

     

    It looks like the web server got changed to nginx recently. When I access the webgui on port 80 now, I just get this: 

     

    https://imgur.com/a/BVdRB0A

     

    I tried changing the port in ident.cfg to 81 and various other ports, but same issue. 

    tower-diagnostics-20180610-1310.zip

  4. I had a hard time getting ZoneMinder set up for the first time. The live preview image would not work. I was getting a lot of socket errors like these:

    socket_sendto( /var/run/zm/zms-427772s.sock ) failed: No such file or directory

    Googling kept telling me it was an issue with Apache, but it wasn't. Long story short, the problem was with the PATH_ZMS variable that is set in this docker.

     

    By default, it was "/cgi-bin/nph-zms" for me. However, I noticed that this path is actually not found. I made it relative by setting it to "cgi-bin/nph-zms" and live streaming finally worked for me.

  5. Whenever I manually create a folder on my cache drive, an SMB share is automatically created and made public. Is there a way to prevent this?

     

    Sometimes I will move or download things to my cache drive so that I share them with the rest of my home network. I don't want them to be moved to my data drives. This can create lots of noise when I browse \\tower.

  6. I also had trouble getting the timezone. Linking the docker's /etc/localtime to Unraid /etc/localtime did not work. This is what finally worked for me from a fresh docker install:

     

    root@Tower:/mnt/user/appdata/pihole# docker exec -it pihole sh
    / # date
    Sun Jan  1 17:04:36 GMT 2017
    / # apk add -U tzdata
    fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
    fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
    (1/1) Installing tzdata (2016j-r0)
    Executing busybox-1.25.1-r0.trigger
    OK: 97 MiB in 35 packages
    / # date
    Sun Jan  1 12:04:47 EST 2017
    / #