Jump to content

jowi

Members
  • Posts

    1,192
  • Joined

  • Last visited

Posts posted by jowi

  1. On 5/8/2016 at 10:01 PM, Squid said:

    To install this plugin, just head over to the Apps tab and search for Fix Common Problems.

    I've looked again and again, but... WHERE is it? It doesnt show up anywhere in the Apps section? If i search for it, it doesn't show up? Has it been removed?

  2. From the 6.8 release:

     

    "Linux kernel

    We started 6.8 development and initial testing using Linux 5.x kernel.  However there remains an issue when VM's and Docker containers using static IP addresses are both running on the same host network interface.  This issue does not occur with the 4.19 kernel.  We are still studying this issue and plan to address it in the Unraid 6.9 release."

     

    Is this (or will this be) solved in this release?

  3. I think i'm gonna reuse my original code (it was ported from c# to python) and create an asp.net core (blazor) docker for this, and run this on unraid. I don't like python anyway. Language is nice but it is always complaining about tabs and spaces and indentation, what a joke.

  4. I've been running a python daemon based upon: https://gist.github.com/dcai/1075904/6f7be00f7f411d5c2e7cd1691dcbb68efacb789c for some years (!) now, but since i've relocated (and rebooted) my unraid machine, the daemon won't start anymore? The calling code (look at demo code) calls daemon.start() and then should start self.run() where the actual code loop lives, but it looks like it doesn't get that far. Also no exceptions or anything. The pid is created, and i get back to the prompt... and when i stop the daemon (python democode.py stop) it does remove the pid file... but if i add print comments in daemon.start() etc it does not get executed... i'm running unraid 6.5.3, ever since it came out, and also the daemon ran without issues. Literally for years, also with previous versions. Also, if i rebooted, the go file just started the daemon as well without any issues, for years on end, but now... something is broken. I have no clue. Or does it have anything to do with python 2 becoming obsolete?

     

    (The actual daemon checks my Pioneer Kuro for some settings and power modes)

  5. Thanks. Script throws a few permission denied errors but basically gives a good idea.

    
    Script location: /tmp/user.scripts/tmpScripts/docker image size/script
    Note that closing this window will abort the execution of this script
    binhex-sabnzbdvpn Size: 843M Logs: 3.1kB
    binhex-sonarr Size: 967M Logs: 2.7kB
    mariadb Size: 355M Logs: 1.3kB
    openvpn-as Size: 325M Logs: 3.3kB
    pihole Size: 300M Logs: 6.5kB
    du: cannot read directory '/etc/ssl/private': Permission denied
    du: cannot read directory '/root': Permission denied
    du: cannot read directory '/var/cache/apt/archives/partial': Permission denied
    du: cannot read directory '/var/cache/ldconfig': Permission denied
    SQLServer Size: 1.4G Logs: 8.9kB
    unifi-controller Size: 513M Logs: 1.1kB
    RoonServer Size: 485M Logs: 301.0B
    Collabora Size: 1.4G Logs: 190.6kB
    letsencrypt Size: 291M Logs: 3.1kB
    nextcloud Size: 322M Logs: 1.5kB
    
    
  6. Mmmm... can't find that button. But running 'docker image' gives a table with size of each docker in the image, correct? Just adding all those together shows the actual usage? (so in my case just under 10GB)

     

    
    root@UNRAID:/mnt/disk9# docker images
    
    REPOSITORY                        TAG                 IMAGE ID            CREATED             SIZE
    
    linuxserver/mariadb               latest              89cbf8bab79b        18 hours ago        350MB
    
    linuxserver/unifi-controller      latest              4c5c990a93e1        19 hours ago        537MB
    
    linuxserver/openvpn-as            latest              4c41233e16d6        3 days ago          359MB
    
    linuxserver/nextcloud             latest              f620513ee3dd        3 days ago          319MB
    
    linuxserver/letsencrypt           latest              8eb7c8bcd33c        4 days ago          271MB
    
    collabora/code                    latest              801fe8cc1513        8 days ago          1.54GB
    
    dlandon/logitechmediaserver       latest              f2b6215facab        5 weeks ago         1.09GB
    
    mcr.microsoft.com/mssql/server    latest              ba266fae5320        5 weeks ago         1.57GB
    
    binhex/arch-sabnzbdvpn            latest              8d045ac54092        7 weeks ago         822MB
    
    pihole/pihole                     latest              14a0e4dc477d        2 months ago        304MB
    
    binhex/arch-sonarr                latest              4e0220652ddd        3 months ago        994MB
    
    linuxserver/sickrage              latest              641996612c98        6 months ago        286MB
    
    steefdebruijn/docker-roonserver   latest              0c039b9bbc13        8 months ago        488MB
    
    bizmodeller/mymediaforalexa       latest              1e19ddafd74b        9 months ago        111MB
    
    root@UNRAID:/mnt/disk9# 
    
    

    Screen Shot 2019-12-07 at 21.50.22.png

  7. Related question; i panicked a bit yesterday and increased the docker.img from 20 to 40GB, but now, the day after, i don’t think that is neccesary and way too large. Now i know how to shrink (stop docker, delete, recreate with a smaller size and reinstall from CA) but how do i know what a good docker.img size is? Is there a docker command that shows the actual usage of the docker.img?

  8. Ok, a docker crisis was not my idea of a relaxed saturday night :) but i stopped docker, had it delete the image, made a new one, and indeed, in CA all of the dockers showed up, and i could just sit back, relax, and re-install... fantastic!!! 😎

     

    As far as i can see everything is running, will test everything now just to be sure.

  9. But arent those templates the same ones that are show in the docker tab dropdown list when you want to add a new docker? I used that last week to add a docker i removed before, and it installed it with all previous settings as well.

  10. Thanks! So, stop docker, delete the image, and reinstall from CA... are you sure it will use all my settings? That would be perfect... reinstalling everything from scratch is a lot of work... 

     

    Could you also select the dockers from the docker template dropdownlist in the docker tab to reinstall them? Or is CA the only way?

  11. My dockers are behaving strangely all of a sudden. Some won't start? My roon docker is even gone missing... I can see errors in the syslog:

    
    Dec 7 19:31:58 UNRAID kernel: CPU: 5 PID: 7990 Comm: btrfs-cleaner Not tainted 4.14.49-unRAID #1
    
    Dec 7 19:31:58 UNRAID kernel: Call Trace:
    
    Dec 7 19:31:58 UNRAID kernel: BTRFS error (device loop2): unable to find ref byte nr 17375232 parent 0 root 1187 owner 5369 offset 0
    
    Dec 7 19:31:58 UNRAID kernel: BTRFS: Transaction aborted (error -2)
    
    Dec 7 19:31:58 UNRAID kernel: CPU: 5 PID: 7990 Comm: btrfs-cleaner Tainted: G W 4.14.49-unRAID #1
    
    Dec 7 19:31:58 UNRAID kernel: Call Trace:
    
    Dec 7 19:31:58 UNRAID kernel: BTRFS: error (device loop2) in __btrfs_free_extent:7081: errno=-2 No such entry
    
    Dec 7 19:31:58 UNRAID kernel: BTRFS: error (device loop2) in btrfs_run_delayed_refs:3089: errno=-2 No such entry
    
    Dec 7 19:31:58 UNRAID kernel: BTRFS error (device loop2): pending csums is 4096
    
    Dec 7 19:33:02 UNRAID root: error: /webGui/include/Notify.php: wrong csrf_token
    
    

     

    attached diagnostics as well... what is wrong? My dockers etc are all running from my ssd (cache) disk. Is it corrupt?

    Can it be fixed without re-installing and configuring everything? What is going on?

    unraid-diagnostics-20191207-1942.zip

  12. Try stopping and restartng it, the logo might show up after all. I had the icon in the dockerman/images folder at first, but it could not find it... now i point to some online icon. Will try changing that as well, don’t want to point to an online icon. But i’m glad the docker is working :)

  13. After removing the docker and re-installing it, all seems to be ok. Path is now also showing, so i think i'm good. For completeness and for others, here are the settings and the xml.

    
    <?xml version="1.0"?>
    <Container version="2">
      <Name>SQLServer</Name>
      <Repository>mcr.microsoft.com/mssql/server</Repository>
      <Registry>https://hub.docker.com/_/microsoft-mssql-server</Registry>
      <Network>bridge</Network>
      <MyIP/>
      <Privileged>false</Privileged>
      <Support>https://hub.docker.com/_/microsoft-mssql-server</Support>
      <Project/>
      <Overview>The official MSSQL container from the new mcr.microsoft.com repository.   Converted By Community Applications   Always verify this template (and values) against the dockerhub support page for the container</Overview>
      <Category/>
      <WebUI/>
      <TemplateURL/>
      <Icon>http://www.xydata.co.uk/wp-content/uploads/2016/02/SQL-Server-250x250.jpg</Icon>
      <ExtraParams/>
      <PostArgs/>
      <DateInstalled>1575384584</DateInstalled>
      <DonateText/>
      <DonateLink/>
      <Description>The official MSSQL container from the new mcr.microsoft.com repository.   Converted By Community Applications   Always verify this template (and values) against the dockerhub support page for the container</Description>
      <Networking>
        <Mode>bridge</Mode>
        <Publish>
          <Port>
            <HostPort>1433</HostPort>
            <ContainerPort>1433</ContainerPort>
            <Protocol>tcp</Protocol>
          </Port>
        </Publish>
      </Networking>
      <Data>
        <Volume>
          <HostDir>/mnt/cache/appdata/SqlServer/database/</HostDir>
          <ContainerDir>/var/opt/mssql/data</ContainerDir>
          <Mode>rw</Mode>
        </Volume>
      </Data>
      <Environment>
        <Variable>
          <Value>P@ssw0rd</Value>
          <Name>SA_PASSWORD</Name>
          <Mode/>
        </Variable>
        <Variable>
          <Value>Y</Value>
          <Name>ACCEPT_EULA</Name>
          <Mode/>
        </Variable>
      </Environment>
      <Labels/>
      <Config Name="TCP_1433" Target="1433" Default="" Mode="tcp" Description="TCP port for SQL Communication" Type="Port" Display="always" Required="false" Mask="false">1433</Config>
      <Config Name="SA_PASSWORD" Target="SA_PASSWORD" Default="" Mode="" Description="Container Variable: SA_PASSWORD" Type="Variable" Display="always" Required="false" Mask="false">P@ssw0rd</Config>
      <Config Name="ACCEPT_EULA" Target="ACCEPT_EULA" Default="" Mode="" Description="Container Variable: ACCEPT_EULA" Type="Variable" Display="always" Required="false" Mask="false">Y</Config>
      <Config Name="PersistentStorage" Target="/var/opt/mssql/data" Default="" Mode="rw" Description="Storage location of SQL Server persistent database files" Type="Path" Display="always" Required="false" Mask="false">/mnt/cache/appdata/SqlServer/database/</Config>
    </Container>
    
    

     

    Screen Shot 2019-12-03 at 17.41.10.png

  14. What i did not realize was that if you map an external folder to an existing 'internal' container folder, the internal folder gets replaced by the external one... until now i've just added external folders to containers so they became available in the container as an additional folder, like /music for /mnt/disk1/music etc.

     

    The added/mapped folder no longer shows up, also not when moving the slider to advanced or 'show more settings'. It does however is stored in the dockerman xml file, and if i stop/restart the container it is still mapped and used.

  15. I don't think mapping is enough? If i map it, the docker has access to it; but i need to tell sql server that it actually has to use the mapped path in stead of the (internal) /var/opt/mssql/data. By the looks of it, this can be done by adding some other environment variable which will be used by startup of mssql, that is something i have to check and figure out.

     

    *edit* i did not think just mapping e.g. /appdate/sqlserver to the container's /var/opt/mssql/data would work but it does :) i thought with adding paths this way you would just 'create' access to an external path, but in fact it replaces the path inside the container? So my /mnt/cache/appdata/sqlserver is actually replacing the container's '/var/opt/mssql/data'?

     

    Anyway, this works, but... for some reason, if you restart the docker, the path i just added in dockerman, is no longer in the settings? Environment paramters like SA_PASSWORD and ACCEPT_EULA are still there but the path is gone... SQL Server is still using /cache/appdata so that is ok...

  16. Thanks, tried it and this works. Added SA_PASSWORD and ACCEPT_EULA as environment variables, sql server is running and i can connect to it from other machines in the network using sql management studio etc. so great :)

     

    What i'm not seeing is any entry in /mnt/cache/appdata, where all other dockers seem to live (partially?). Now i know sql server uses .mdf/.ldf etc files to store it's data; where are they now? My guess is they are not persistent and in memory somewhere? Or, i hope not, on the usb stick taking up space? The latter i *really* don't want ;) or do they live in the docker.img somehow?

     

    *edit* did some more reading; .mdf etc live in /var/opt/mssql/data inside the container. There is a way to connect to .mdf db's outside the container (so e.g. in appdata...) but it looks like they stay persistent in /var/opt/mssql/data when stopping the docker or after a reboot. Don't know what happens when the docker gets updated. Will look into that!

  17. Tested the one from the screenshot, but it gives an error (Error: image operating system "windows" cannot be used on this platform). Looks like it is a docker built on windows not on linux? Also unknown what version etc. and passwords... it is all ment well i guess but i'm not gonna try 40 (!) pages of mssql dockers that people created mostly for their own use. I will go try a few, but this is not what you want... i tested another one and looked at the dockerhub page for info on passwords etc, it was there but nothing works... so unless i get lucky i think i still need to make my own docker container?

×
×
  • Create New...