Niklas

Members
  • Posts

    318
  • Joined

Posts posted by Niklas

  1. 2 minutes ago, emod said:

    Simple question, to which I cannot find an answer.

     

    Do I need to upload my files from UNRAID shares to nextcloud, or can I MAP nextcloud folder to ACCESS my shares file?

     

    For example, on UNRAID I have a share called "myshare" that I have used for a while, which contains all my documents, 150GB of them, and that I want to sync across my UNRAID server, desktop and laptop.

     

    Resilio sync is easy....create a folder in Resilio Sync GUI, MAP the folder to your local folder (to UNRAID share "myshare"), and do the same on your other device.

     

    Does Next cloud allow the same?

     

    OR, do I have to UPLOAD 150GB of my data from "myshare" into nexcloud folder, so that that data will be synced across all device?

     

    Thanks.

     

     

     


    As said before. Use the "External storage support" app/plugin. Add your share as local storage in settings.

  2. 17 minutes ago, CHBMB said:

    Has been for ages, but as per the first post in this thread, you need to update through the webui or CLI for an existing install

     

    https://hub.docker.com/r/linuxserver/nextcloud/tags

    Ah, yes. Mine still say I have the latest version installed (15.0.7, checked today). I have updated using the gui before. I was thinking that I would get the upgrade when the container got updated but I know understand I got it wrong. ;) That would not update my database and stuff like that I guess.

     

    Updating via the console worked. :)
    cd /config/www/nextcloud/updater
    sudo -u abc php updater.phar

  3. So, I have done some testing. Moved appdata to array and left only docker.img on cache. Still lots of writing.

    Is it possible to identify what docker container doing lots of writes? I have monitored container sizes using the GUI and I'm not seeing any big differences there. Just megabytes of data differences. Feels like temporary data going somewhere but I can't find any bad configured containers.

     

    With my current setup, I see about 5TB(!) of data written every month. That's several times the size of the ssd (256GB).
    Emby and other apps that need temporary storage for stuff like transcoding and downloading is doing that on one of my unassigned devices (hdd, spinner), but still. 5TB is A LOT.

    NOT using mover. NO share with "Use cache: Yes".
    Shares using cache is cache only.

    Mon Apr  1 00:00:02 CEST 2019 Cache 1 TBW: 11.8136 TB
    Tue Apr 30 04:40:10 CEST 2019 Cache 1 TBW: 16.3354 TB

  4. 1 minute ago, CorneliousJD said:

    Having a new issue with the latest 15.x release.

    I'm running MariaDB container as well for my nextcloud database.

     

    MySQL is used as database but does not support 4-byte characters. To be able to handle 4-byte characters (like emojis) without issues in filenames or comments for example it is recommended to enable the 4-byte support in MySQL. For further details read the documentation page about this.

    https://docs.nextcloud.com/server/15/go.php?to=admin-mysql-utf8mb4

     

    I do however find that documentation page lacking as I'm not super well versed in SQL/MariaDB.

     

    Is there any guidance available for exactly what I need to do in order to run these commands to fix this issue? 

    Thank you in advance! 

     

    • Upvote 1
  5. 11 hours ago, dstanley said:

    I need help with this statement:

     

    Step 2 of the MySQL instructions:

    Change your databases character set and collation:

    ALTER DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

     

    I have no idea where or how this is supposed to be entered?

     

    I have made the change to my cnf file but that's as far as I get.

     

    Probably shouldn't be trying this without more guidance ...

    Something like this should work...


    1. Open console to the mariadb container.

     

    2. Type mysql followed by enter.
    If this gives you problems, try mysql --user=root

    You should see some information and help. Cursor should be at "MariaDB [(none)]>  "

    3. Paste the sql query: 
    ALTER DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; 

    and press enter. Be sure to include the ; at the end.
    You should see something like "Query OK, 1 row affected".

    If you have named your database differently from standard install, change the "nextcloud" bit in the command to fit your config.

     

    4. Type quit followed by enter.

     

    You can now close the console window.

     

    Run the other 2 commands in the console for the Nextcloud container. 

     

    I think this should work. I started to use this container not that long ago so I don't need to do anything. It was done for me automatically when deploying this awesome container. :)

    • Like 2
  6. On 4/6/2019 at 1:45 AM, Serenity_Duck said:

    Hi,

     

    I have one Issue left, after the Nextcloud Update 15.0.6.

     

    I checked already my mariadb tables and there is one column missing.

    
    ERROR 1054 (42S22): Unknown column 'FILE_FORMAT' in 'field list'

     

    So I tried to follow the instructions on the Docs but I did not find any solution to add this column.

    I am not 100% sure how to add the missing key.

    
    ALTER TABLE 'oc_accounts' ADD KEY 'FILE_FORMAT' USING barracuda;


    I am not sure about the type. Is it barracuda?
    And the Syntax, is it correct?

     

    And than I have to do it for all tables listed with this command:

    
    SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME like "nextcloud%";

    Or is there maybe a way to do it safer / more easy?

     

    Thank you.


    What MariaDB-container are you running? Updated? If MariaDB 10.3 or later you only need innodb_file_per_table=1 in custom.cnf

     

    Look at the instructions again:

    The instructions for MariaDB 10.3 OR LATER tells you:


    Make sure that you have innodb_file_per_table=1 in your /appdata/mariadb/custom.cnf
    It then tells you to "Continue at step 2 of the MySQL instructions."

    Step 2 of the MySQL instructions:

    Change your databases character set and collation:

    ALTER DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

    Edit: Look HERE to see where and how to enter this command.

    Edit: The following steps should be done in the console for the nextcloud container.


    Step 3:

    Set the mysql.utf8mb4 config to true in your config.php:

    sudo -u abc php /config/www/nextcloud/occ config:system:set mysql.utf8mb4 --type boolean --value="true"

    Step 4:

    Convert all existing tables to the new collation by running the repair step:

    sudo -u abc php /config/www/nextcloud/occ maintenance:repair

    I have changed the syntax for the console commands in step 3 and 4 to fit this container.

    MariaDB 10.3 and later does not have the FILE_FORMAT key. I guess barracuda is the default from 10.3 and up.

    • Like 2
  7. On 3/30/2019 at 7:17 PM, Niklas said:

    Yes. In several different containers. Check my earlier post about it and the one I use now. 

     

    Edit: I got it from Docker hub. No container with unraid template available. 

    Add container button
    Name: ClamAV
    Repository: mk0x/docker-clamav:alpine
    Icon URL: http://www.clamav.net/assets/clamav-trademark.png
    Extra Parameters: --restart=unless-stopped
    Network Type: "Custom : Br0"
    Fixed IP address (optional): 192.168.1.xx
    Added extra path for logs, want easy access: Container Path: /var/log/clamav. Host path: /mnt/user/appdata_array/clamav/logs/
    See screenshots in earlier post.

    Edit 2: Added my template.

     

    my-ClamAV.xml

     

    Changed to the new container built on alpine. A lot smaller now. Old one was Debian. Just change "Repository:" to mk0x/docker-clamav:alpine
    After that, delete the orphan image in your Docker container list.

  8. 8 hours ago, zandrsn said:

    Thanks for this, I ended up doing the same thing.

     

    However, for some reason I'm seeing this in my Nexloud logs:

    
    Error	files_antivirus	RuntimeException: The ClamAV module is not in daemon mode.

    And this in my ClamAV logs:

    
    Sat Mar 30 23:51:06 2019 -> ^Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory

    Strangely enough, when I open a bash into the container I can see the clamd.ctl file where it is supposed to be...

     

    I set up everything the same way you have it. Any idea what the issue might be?

    I see the same "NOT notified" but I think we can disregard it. I saw it in other ClamAV containers too.

     

    No clear answer here:
    https://github.com/mko-x/docker-clamav/issues/12
    But, as I said. It's only at startup and could probably be ignored.

  9. 17 minutes ago, zandrsn said:

    Has anyone had any luck getting collabora to work in the Nextcloud app on iOS?

     

    I have collabora working well with my nextcloud installation, with spreadsheets and documents editable and loading fine from within my home network and externally via NGINX/LetsEncrypt reverse proxy. However, spreadsheets and documents will never load in the iOS app. When I try to open them I just get a grey/white page that never completely loads. This seems to be a known issue with collabora and the nextcloud app, but all of the workarounds I found are incomplete and don't seem to really work when running nexcloud and collabora from docker containers. 

     

    Any ideas? I'm also willing to try OpenOffice, but everything I've seen has indicated that Collabora is more stable. 

    Collabora is much better integrated too. I use it and had that problem but it went away with some recent update to the Collabora container. 

    I use Traefik to proxy all traffic to my containers. All my containers that I need inet access to have their own sub-domains.

  10. On 3/30/2019 at 7:15 PM, ijuarez said:

    Is clam-av available in a container?

    Sent from my SM-N960U using Tapatalk
     

    Yes. In several different containers. Check my earlier post about it and the one I use now. 

     

    Edit: I got it from Docker hub. No container with unraid template available. 

    Add container button
    Name: ClamAV
    Repository: mk0x/docker-clamav:alpine
    Icon URL: http://www.clamav.net/assets/clamav-trademark.png
    Extra Parameters: -p 3310:3310 --hostname=clamavsrv --restart=unless-stopped
    Network Type: "Custom : Br0" (change to fit your network and environment)
    Fixed IP address (optional): 192.168.1.24 (change to fit your network and environment)
    Added extra path for logs, want easy access: Container Path: /var/log/clamav. Host path: /mnt/user/appdata/clamav/logs/

    See screenshots in earlier post.

    Edit 2: Added my template.

    Edit 3: Switched to the smaller alpine based image.

     

     

    my-ClamAV.xml

  11. Just now, zandrsn said:

    Ah okay, sorry. I was confused by your post asking "Where?". I see now from your earlier post that you'd already seen the plugin. But yeah, it seems like running ClamAV in a separate container is much easier than getting clamd working, so I'm probably going to switch to that method as well.

    The container solution runs much faster compared to having it in the same container as the Nextcloud one. For some reason. :)

    When the solution is up, you can use files from here to test your install:
    https://www.eicar.org/?page_id=3950

    • Like 1
  12. Yeah. I have talked about that plug-in all the time. I also added clamav with apk and got it working but adding clamd and other stuff will need some more configuring, so I went the other route as in my post. Seem to be working fine and the container handles auto update and so on. 

  13. Hello,

     

    My SSD cache has about 2TB written in two weeks only. That feels much for a 250GB ssd.

    No mover is used. Writing files to array directly. The ssd is used for the docker img and appdata.
    ~1 TB/week gives me about 2.8 years before hitting the TBW limit of 150TBW for warranty. 5 years or 150TBW, what comes first (Samsung SSD 860 Evo).

    I want to dig deeper. How can I see what it is, doing lots of writes to the ssd?

    Edit:
    I answer myself.
    "iotop" installed using Nerd Pack should do the trick!

  14. 1 minute ago, strike said:

    I think the answer to this is yes, correct me if I'm wrong. If it works it works, if not, then oh well. I think this is the case for all the ..VPN containers. I have the delugevpn container running on macvlan, but I think I'm one of the lucky few because almost nobody else is able to get it to work.

    The thing that worries me is the isolation. If the iptable rules that prevents leakage works as designed when running on br0/macvlan.

  15. 22 minutes ago, binhex said:

    You can run it via default bridge, or custom bridge, macvlan is not supported.

    Sent from my EML-L29 using Tapatalk
     

    Oh ok, that's not what i wished for. I have the rtorrentvpn container running bridged but i have other containers running on br0 (macvlan) that can't use the privoxy part of the rtorrentvpn container because the limitation that does not allow host <-> macvlan. That's why this container made me get my hopes up. I really want some of the other containers to proxy http(s) traffic over vpn (pia) but it would be problematic for me to move all containers to bridge or host. So many different ports... ;)

    The thing is, I have it on br0 now and it seem to proxy my traffic when using the ip I have assigned to the container? It "could" work but not supported? Like one Firefox setup, with the macvlan ip and port 8118 for proxy server, surfing to the pia homepage tells me that my connection is using pia ("Your IP Address: xx Your ISP: PIA You are protected by PIA").