Everything posted by unn4m3d
-
Unraid System immer wieder friert ein
Tatsächlich scheint es mit TDARR zusammenzuhängen. Jetzt gabs keine Abstürze mehr. Davor wie gesagt mehrfach reproduzierbar in kurzer Zeit.
-
Unraid System immer wieder friert ein
Und hier schon der nächste Syslog. Ich habe erstmal die TDARR Docker Container abgestellt, da der CPU Fehler kam während TDARR transcodiert hat. syslog-previous
-
Unraid System immer wieder friert ein
Ich habe wieder Abstürze. Jetzt allerdings im 10 Minuten Takt. Anbei das Syslog. Kann da jemand was auffälliges drin lesen? Danke und Grüße unn4m3d syslog-previous
-
Mariadb Logs füllen plötzlich Cache Disk
Scheint damit gelöst zu sein, falls mal jemand das selbe Problem hat - geht gern die Schritte durch.
-
Mariadb Logs füllen plötzlich Cache Disk
Habe jetzt in MariaDB mit RESET MASTER; alle Binary Logs gelöscht. Jetzt ist zumindest der Diskspace wieder frei. Mal gucken, wie sich MariaDB jetzt verhält.
-
Mariadb Logs füllen plötzlich Cache Disk
Ich habe das Thema ein bisschen weiter eingrezen können. Ich hatte per NC einen SFTP Share auf das System gesetzt. Den habe ich rausgenommen. Dennoch blieb die oc_filecache so groß. Ein ALTER TABLE oc_filecache FORCE; führte zu folgendem Output. MariaDB [nextcloud]> ALTER TABLE oc_filecache FORCE; ERROR 1878 (HY000): Temporary file write failure Daraufhin half dann nur noch TRUNCATE TABLE oc_filecache; MariaDB [nextcloud]> TRUNCATE TABLE oc_filecache; Query OK, 0 rows affected (0.097 sec) NC baut die DB gerade wieder auf. Ich bin erstmal zuversichtlich das Problem eingegrenzt zu haben. Aber abwarten.
-
Mariadb Logs füllen plötzlich Cache Disk
Die Logs fangen an am 10.01. und werden auch nicht gelöscht, heißt die vom 10.01. sind noch im Logfolder in der MariaDB. Bin weiterhin ratlos.
-
Mariadb Logs füllen plötzlich Cache Disk
Bei mir ist es oc_filecache.ibd die unfassbar groß ist. Muss ich mich mal einlesen woher das kommen mag..
-
Mariadb Logs füllen plötzlich Cache Disk
Puh, leider war es das doch noch nicht. Die Logs wachsen weiter fleißig. Das hier ist der Nextcloud Log: Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2006] MySQL server has gone away in /app/www/public/lib/private/DB/Connection.php:233 Stack trace: #0 /app/www/public/3rdparty/doctrine/dbal/src/Connection.php(453): OC\DB\Connection->connect() #1 /app/www/public/3rdparty/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion() #2 /app/www/public/3rdparty/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform() #3 /app/www/public/lib/private/DB/Connection.php(899): Doctrine\DBAL\Connection->getDatabasePlatform() #4 /app/www/public/lib/private/DB/ConnectionAdapter.php(235): OC\DB\Connection->getDatabaseProvider() #5 /app/www/public/lib/private/DB/QueryBuilder/QueryBuilder.php(96): OC\DB\ConnectionAdapter->getDatabaseProvider() #6 /app/www/public/lib/private/AppConfig.php(1211): OC\DB\QueryBuilder\QueryBuilder->expr() #7 /app/www/public/lib/private/AppConfig.php(237): OC\AppConfig->loadConfig() #8 /app/www/public/lib/private/AppConfig.php(1351): OC\AppConfig->searchValues() #9 /app/www/public/lib/private/App/AppManager.php(126): OC\AppConfig->getValues() #10 /app/www/public/lib/private/App/AppManager.php(147): OC\App\AppManager->getInstalledAppsValues() #11 /app/www/public/lib/private/legacy/OC_App.php(191): OC\App\AppManager->getInstalledApps() #12 /app/www/public/lib/private/AppFramework/Bootstrap/Coordinator.php(48): OC_App::getEnabledApps() #13 /app/www/public/lib/base.php(659): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration() #14 /app/www/public/lib/base.php(1134): OC::init() #15 /app/www/public/cron.php(24): require_once('...') #16 {main} Hier mal der aktuelle MariaDB Log. [migrations] started [migrations] no migrations found usermod: no changes ─────────────────────────────────────── ██╗ ███████╗██╗ ██████╗ ██║ ██╔════╝██║██╔═══██╗ ██║ ███████╗██║██║ ██║ ██║ ╚════██║██║██║ ██║ ███████╗███████║██║╚██████╔╝ ╚══════╝╚══════╝╚═╝ ╚═════╝ Brought to you by linuxserver.io ─────────────────────────────────────── To support LSIO projects visit: https://www.linuxserver.io/donate/ ─────────────────────────────────────── GID/UID ─────────────────────────────────────── User UID: 99 User GID: 100 ─────────────────────────────────────── Linuxserver.io version: 11.4.4-r1-ls171 Build-date: 2025-01-22T17:54:07+00:00 ─────────────────────────────────────── [custom-init] No custom files found, skipping... 250126 05:33:38 mysqld_safe Logging to '/config/log/mysql/mariadb-error.log'. 250126 05:33:38 mysqld_safe Starting mariadbd daemon with databases from /config/databases Logrotate is enabled [ls.io-init] done. Nextcloud ist Responsive übers WebUI und scheinbar normal benutzbar. Wie kann ich checken ob er richtig mit der DB verbunden ist?
-
Unraid System immer wieder friert ein
Der sftp connect kommt von meinem Macbook und nicht von einem Docker Container. Da habe ich immer Filezilla an und war da zu der Zeit gerade am gucken wegen der unverständlich großen Größe der Mariadb Logs. Siehe den anderen Thread von mir. Ich habe 16 GB Ram im System verbaut. Sollte ich ggfs ein Upgrade auf 32GB in Erwägung ziehen? Für Backups nutze ich zum einen den Timemachine Docker fürs Macbook und ich habe aber auf dem Unraid System auch das Appdata Backup Plugin installiert. Google Recherche ergaben, dass andere User dieses Problem im Zusammenhang mit Transcoding in Plex hatten. Ich nutze kein Plex sondern Jellyfin. Aber ich nutze auch Tdarr um x264 Inhalte in x265 zu konvertieren. Den Docker Container habe ich gerade im Verdacht.
-
Unraid System immer wieder friert ein
Jetzt war es wieder soweit. Unraid hat sich aufgehangen. Anbei der zugehörige Syslog vom Bootvolume. Bin gespannt, ob ihr was findet! syslog-previous
-
Mariadb Logs füllen plötzlich Cache Disk
Es lag wohl am daran, dass ich für SWAG mal ein eigenes Subnet eingerichtet hatte. Bin von SWAG auf NGINX Proxy Manager gewechselt vor kurzem. MariaDB und NC liefen nicht beide im Bridge Mode. Das habe ich jetzt korrigiert. Vielleicht war es das schon!
-
Mariadb Logs füllen plötzlich Cache Disk
Es liegt wirklich an Nextcloud. Hier aus dem Docker Log von Nextcloud. Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused in /app/www/public/lib/private/DB/Connection.php:233 Stack trace: #0 /app/www/public/3rdparty/doctrine/dbal/src/Connection.php(453): OC\DB\Connection->connect() #1 /app/www/public/3rdparty/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion() #2 /app/www/public/3rdparty/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform() #3 /app/www/public/lib/private/DB/Connection.php(899): Doctrine\DBAL\Connection->getDatabasePlatform() #4 /app/www/public/lib/private/DB/ConnectionAdapter.php(235): OC\DB\Connection->getDatabaseProvider() #5 /app/www/public/lib/private/DB/QueryBuilder/QueryBuilder.php(96): OC\DB\ConnectionAdapter->getDatabaseProvider() #6 /app/www/public/lib/private/AppConfig.php(1211): OC\DB\QueryBuilder\QueryBuilder->expr() #7 /app/www/public/lib/private/AppConfig.php(237): OC\AppConfig->loadConfig() #8 /app/www/public/lib/private/AppConfig.php(1351): OC\AppConfig->searchValues() #9 /app/www/public/lib/private/App/AppManager.php(126): OC\AppConfig->getValues() #10 /app/www/public/lib/private/App/AppManager.php(147): OC\App\AppManager->getInstalledAppsValues() #11 /app/www/public/lib/private/legacy/OC_App.php(191): OC\App\AppManager->getInstalledApps() #12 /app/www/public/lib/private/AppFramework/Bootstrap/Coordinator.php(48): OC_App::getEnabledApps() #13 /app/www/public/lib/base.php(659): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration() #14 /app/www/public/lib/base.php(1134): OC::init() #15 /app/www/public/cron.php(24): require_once('...') #16 {main} Hat einer eine Idee was ich checken kann? Scheint ja so, als wenn er sich nicht zur MariaDB verbinden kann.
-
Mariadb Logs füllen plötzlich Cache Disk
Hi zusammen, seit kurzem müllt MariaDB meine Cache Disk mit Logs zu. Aktuell ist der log Folder 228GB groß. root@Tower:~# du -sh /mnt/user/appdata/mariadb/* 4.0K /mnt/user/appdata/mariadb/custom.cnf 136G /mnt/user/appdata/mariadb/databases 228G /mnt/user/appdata/mariadb/log Hier ist noch die custom.cnf ## custom configuration file, please be aware that changing options here may break things [mysqld_safe] nice = 0 [mysqld] character-set-server = utf8 max_connections = 100 connect_timeout = 5 wait_timeout = 600 max_allowed_packet = 16M thread_cache_size = 128 sort_buffer_size = 4M bulk_insert_buffer_size = 16M tmp_table_size = 32M max_heap_table_size = 32M binlog_format=mixed log_error = /config/log/mysql/mariadb-error.log # # * MyISAM # # This replaces the startup script and checks MyISAM tables if needed # the first time they are touched. On error, make copy and try a repair. myisam_recover_options = BACKUP key_buffer_size = 128M #open-files-limit = 2000 table_open_cache = 400 myisam_sort_buffer_size = 512M concurrent_insert = 2 read_buffer_size = 2M read_rnd_buffer_size = 1M # # * Query Cache Configuration # # Cache only tiny result sets, so we can fit more in the query cache. query_cache_limit = 128K query_cache_size = 64M # for more write intensive setups, set to DEMAND or OFF #query_cache_type = DEMAND # # * Logging and Replication # # Both location gets rotated by the cronjob. # Be aware that this log type is a performance killer. # As of 5.1 you can enable the log at runtime! #general_log_file = /config/log/mysql/mysql.log #general_log = 1 # # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf. # # we do want to know about network errors and such log_warnings = 2 # # Enable the slow query log to see queries with especially long duration #slow_query_log[={0|1}] slow_query_log_file = /config/log/mysql/mariadb-slow.log long_query_time = 10 #log_slow_rate_limit = 1000 log_slow_verbosity = query_plan #log-queries-not-using-indexes #log_slow_admin_statements # # The following can be used as easy to replay backup logs or for replication. # note: if you are setting up a replication slave, see README.Debian about # other settings you may need to change. #server-id = 1 #report_host = master1 #auto_increment_increment = 2 #auto_increment_offset = 1 log_bin = /config/log/mysql/mariadb-bin log_bin_index = /config/log/mysql/mariadb-bin.index # not fab for performance, but safer #sync_binlog = 1 expire_logs_days = 10 max_binlog_size = 100M # slaves #relay_log = /config/log/mysql/relay-bin #relay_log_index = /config/log/mysql/relay-bin.index #relay_log_info_file = /config/log/mysql/relay-bin.info #log_slave_updates #read_only # # If applications support it, this stricter sql_mode prevents some # mistakes like inserting invalid dates etc. #sql_mode = NO_ENGINE_SUBSTITUTION,TRADITIONAL # # * InnoDB # # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. # Read the manual for more InnoDB related options. There are many! default_storage_engine = InnoDB # you can't just change log file size, requires special procedure #innodb_log_file_size = 50M innodb_buffer_pool_size = 256M innodb_log_buffer_size = 8M innodb_file_per_table = 1 innodb_open_files = 400 innodb_io_capacity = 400 innodb_flush_method = O_DIRECT # # * Security Features # # Read the manual, too, if you want chroot! # chroot = /var/lib/mysql/ # # For generating SSL certificates I recommend the OpenSSL GUI "tinyca". # # ssl-ca=/etc/mysql/cacert.pem # ssl-cert=/etc/mysql/server-cert.pem # ssl-key=/etc/mysql/server-key.pem # # * Galera-related settings # [galera] # Mandatory settings #wsrep_on=ON #wsrep_provider= #wsrep_cluster_address= #default_storage_engine=InnoDB #innodb_autoinc_lock_mode=2 # # Allow server to accept connections on all interfaces. # #bind-address=0.0.0.0 # # Optional setting #wsrep_slave_threads=1 #innodb_flush_log_at_trx_commit=0 [mysqldump] quick quote-names max_allowed_packet = 16M [mysql] #no-auto-rehash # faster start of mysql but no tab completion [isamchk] key_buffer_size = 16M ─────────────────────────────────────── ██╗ ███████╗██╗ ██████╗ ██║ ██╔════╝██║██╔═══██╗ ██║ ███████╗██║██║ ██║ ██║ ╚════██║██║██║ ██║ ███████╗███████║██║╚██████╔╝ ╚══════╝╚══════╝╚═╝ ╚═════╝ Brought to you by linuxserver.io ─────────────────────────────────────── To support LSIO projects visit: https://www.linuxserver.io/donate/ ─────────────────────────────────────── GID/UID ─────────────────────────────────────── User UID: 99 User GID: 100 ─────────────────────────────────────── Linuxserver.io version: 11.4.4-r1-ls171 Build-date: 2025-01-22T17:54:07+00:00 ─────────────────────────────────────── [custom-init] No custom files found, skipping... 250124 04:42:50 mysqld_safe Logging to '/config/log/mysql/mariadb-error.log'. 250124 04:42:50 mysqld_safe Starting mariadbd daemon with databases from /config/databases Logrotate is enabled [ls.io-init] done. Hat jemand eine Idee, woran das liegen und wie ich das stoppen kann? Nutze mariadb in Verbindung mit Nextcloud. Kann ich alte Logs einfach löschen? Freue mich über Hilfe. Danke!!
-
Unraid System immer wieder friert ein
Danke, das habe ich schon aktiviert. Hoffe, das der Spuk bald ein Ende hat. Bond stelle ich jetzt auch aus.
-
Unraid System immer wieder friert ein
Danke für dein Feedback. Ich werde darauf eingehen. 1/ Ich meine modprobe habe ich mal aktiviert als die GPU Treiber noch nicht standardmäßig geladen worden sind, um in Jellyfin und Tdarr Transcoding zu nutzen. Ist aber auch minimum 2 Jahre her und mein Gedächtnis an der Stelle löchrig. In diesem Thread wird ja auch darauf eingegangen. Überall steht immer nur wie man modprobe aktiviert bei der Intel GPU. Wie kann ich das easy wieder deaktivieren? 2/ Mit Netzwerk Bond meinst du die Nutzung mehrerer lokaler IP Adressen mit einer NIC? Unraid läuft bei mir mit der 192.168.178.108 und auf Unraid ist Adguard Home als Docker mit der 192.168.178.109 als lokaler DNS Server eingerichtet. Ich habe das damals sicherlich mit einem Tutorial eingerichtet wo mir das so empfohlen wurde. Ist es unkritisch Adguard Home auf der gleichen IP laufen zu lassen wie Unraid? Edit: Ich sehe gerade, dass der Timemachine Docker auch mit einer dedizierten IP läuft. Besonders ärgerlich ist natürlich, dass im Falle eines Systemabsturzes so immer das komplette Internet Zuhause ausfällt via WLAN, da die DNS Einträge nicht mehr aufgelöst werden von der Fritzbox und ich Remote keine Chance habe den Server neuzustarten. Kurzes Googlen hat ergeben, dass Bond eigentlich mehrere NICs zusammenschließt?! Also könnte ich das ggfs. einfach deaktivieren? Habe ein bisschen Angst mich auszusperren wenn ich daran herumfummel ohne das OK von einem Profi. 3/ Danke für den Hinweis. Habe den Treiber mal installiert und starte Unraid gleich neu. 4/ Von den Problemen die btrfs machen kann, habe ich schon vorab gelesen. Ohne Fehler in den Logs würde ich es dennoch damit erstmal belassen. /Allgemein Leider sind die Abstürze des Servers keinesfalls reproduzierbar. Bis gestern lief der Server 22 Tage durch. Dann gleich zwei Abstürze an einem Tag.
-
Unraid System immer wieder friert ein
Hallo zusammen, ich bin mit meinem Latein am Ende. Mein Unraid Server friert immer wieder einfach ein. Dann hilft nur ein harter Cut vom Strom und Reboot. Per SSH ist dann kein Connect mehr möglich. Anbei das Diagnostic Log. Vielleicht seht ihr Profis ja was im Log. Ich habe die Cache SSD im Verdacht gehabt, die wurde bereits kürzlich getauscht. Vielleicht ist es der RAM? Wäre das nächste Bauteil was ich austauschen würde. Vielleicht kann mir kja einer helfen? tower-diagnostics-20250113-2141.zip
-
[Support] ImSkully - Vikunja
Does anyone have a working SWAG Config file for vikunja? I currently use this, which ends up in a 502 error: server { listen 443 ssl; listen [::]:443 ssl; server_name vikunja.*; include /config/nginx/ssl.conf; client_max_body_size 0; # enable for Authelia # include /config/nginx/authelia-server.conf; location / { # enable for Authelia #include /config/nginx/authelia-location.conf; include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app vikunja; set $upstream_port 80; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; # root /; # try_files $uri $uri/ /; # index index.html index.htm; } location ~* ^/(api|dav|\.well-known)/ { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $api_app vikunja-api; set $api_port 3456; set $api_proto http; proxy_pass $api_proto://$api_app:$api_port; client_max_body_size 20M; } } Any help is greatly appreciated, thanks!
-
Durch VPN getunnelter Dockercontainer bekommt bei Neustart an einen anderen Container zugewiesenen Port
Hi zusammen, ich habe eine Herausforderung mit einem Dockercontainer (tvp) der via Gluetun per VPN getunnelt wird. Den Container habe ich manuell via Console installiert und gestartet mit dem Befehl: docker run -d --network=container:gluetunvpn --name tvp tvp In Gluetun habe ich den Port 64321 für den Webserver des Containers tvp entsprechend freigeschaltet. Das ganze funktioniert auch, allerdings nicht über Nacht. Wenn ich am nächsten morgen in mein Docker Webinterface schaue, dann hat der tvp Container auf einmal ein falsches Portmapping. Nämlich das eines beliebigen anderen Dockercontainers. Jetzt hilft auch kein Neustart des Containers. Ich muss den Container tvp und das Volume löschen und neu installieren. So ein Problem hatte ich bislang noch nicht. Freue mich über Lösungsansätze.
-
Timemachine Application Support Thread
Using the TimeMachine docker prevents my drives from spinning down. Anyone else having this issue? Using the File Activity Script shows regular activities on my TimeMachine share. How can I prevent this?
-
[Support] binhex - qBittorrentVPN
To be honest, I don't understand what you mean. Let me give an example: I am routing nzbget through the qbittorrentvpn container to secure usenet downloads through VPN tunneling. Everything is working on local network meaning I can access the WebUI from NZBget. However, when I try to access the nzbget Web-UI on port 6789 from anywhere else using my dyndns account I cannot access it. How to achieve that?
-
[Support] binhex - qBittorrentVPN
I am routing another containers Internet traffic through the VPN Connection of QbittorrentVPN and expose two ports (14444 and 31000) of this Container to my ISPs IP Adress to reach these ports from remote. The two ports are mapped in qbittorrentvpn docker to the Unraid's server local IP adress. I set up port forwarding for these ports in my router accordingly, however the ports are not reachable. Any ideas how to investigate?
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Hey, I am running the script on a cronjob every 10 minutes. Here is a full qoute of my mount script. #!/bin/bash ###################### #### Mount Script #### ###################### ## Version 0.96.9.3 ## ###################### ####### EDIT ONLY THESE SETTINGS ####### # INSTRUCTIONS # 1. Change the name of the rclone remote and shares to match your setup # 2. NOTE: enter RcloneRemoteName WITHOUT ':' # 3. Optional: include custom command and bind mount settings # 4. Optional: include extra folders in mergerfs mount # REQUIRED SETTINGS RcloneRemoteName="gdrive_vfs" # Name of rclone remote mount WITHOUT ':'. NOTE: Choose your encrypted remote for sensitive data RcloneMountShare="/mnt/user/mount_rclone" # where your rclone remote will be located without trailing slash e.g. /mnt/user/mount_rclone RcloneMountDirCacheTime="720h" # rclone dir cache time LocalFilesShare="/mnt/user/local" # location of the local files and MountFolders you want to upload without trailing slash to rclone e.g. /mnt/user/local. Enter 'ignore' to disable RcloneCacheShare="/mnt/user0/mount_rclone" # location of rclone cache files without trailing slash e.g. /mnt/user0/mount_rclone RcloneCacheMaxSize="200G" # Maximum size of rclone cache RcloneCacheMaxAge="336h" # Maximum age of cache files MergerfsMountShare="/mnt/user/mount_mergerfs" # location without trailing slash e.g. /mnt/user/mount_mergerfs. Enter 'ignore' to disable DockerStart="binhex-nzbhydra2 binhex-jackett binhex-lidarr binhex-radarr sonarr unpackerr nzbget overseerr" # list of dockers, separated by space, to start once mergerfs mount verified. Remember to disable AUTOSTART for dockers added in docker settings page MountFolders=\{"downloads/complete,downloads/intermediate,downloads/seeds,downloads/completed"\} # comma separated list of folders to create within the mount # Note: Again - remember to NOT use ':' in your remote name above # OPTIONAL SETTINGS # Add extra paths to mergerfs mount in addition to LocalFilesShare LocalFilesShare2="ignore" # without trailing slash e.g. /mnt/user/other__remote_mount/or_other_local_folder. Enter 'ignore' to disable LocalFilesShare3="ignore" LocalFilesShare4="ignore" # Add extra commands or filters Command1="--rc" Command2="" Command3="" Command4="" Command5="" Command6="" Command7="" Command8="" CreateBindMount="N" # Y/N. Choose whether to bind traffic to a particular network adapter RCloneMountIP="192.168.1.252" # My unraid IP is 172.30.12.2 so I create another similar IP address NetworkAdapter="eth0" # choose your network adapter. eth0 recommended VirtualIPNumber="2" # creates eth0:x e.g. eth0:1. I create a unique virtual IP addresses for each mount & upload so I can monitor and traffic shape for each of them ####### END SETTINGS ####### ############################################################################### ##### DO NOT EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING ####### ############################################################################### ####### Preparing mount location variables ####### RcloneMountLocation="$RcloneMountShare/$RcloneRemoteName" # Location for rclone mount LocalFilesLocation="$LocalFilesShare/$RcloneRemoteName" # Location for local files to be merged with rclone mount MergerFSMountLocation="$MergerfsMountShare/$RcloneRemoteName" # Rclone data folder location ####### create directories for rclone mount and mergerfs mounts ####### mkdir -p /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName # for script files mkdir -p $RcloneCacheShare/cache/$RcloneRemoteName # for cache files if [[ $LocalFilesShare == 'ignore' ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Not creating local folders as requested." LocalFilesLocation="/tmp/$RcloneRemoteName" eval mkdir -p $LocalFilesLocation else echo "$(date "+%d.%m.%Y %T") INFO: Creating local folders." eval mkdir -p $LocalFilesLocation/"$MountFolders" fi mkdir -p $RcloneMountLocation if [[ $MergerfsMountShare == 'ignore' ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Not creating MergerFS folders as requested." else echo "$(date "+%d.%m.%Y %T") INFO: Creating MergerFS folders." mkdir -p $MergerFSMountLocation fi ####### Check if script is already running ####### echo "$(date "+%d.%m.%Y %T") INFO: *** Starting mount of remote ${RcloneRemoteName}" echo "$(date "+%d.%m.%Y %T") INFO: Checking if this script is already running." if [[ -f "/mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Exiting script as already running." exit else echo "$(date "+%d.%m.%Y %T") INFO: Script not running - proceeding." touch /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running fi ####### Checking have connectivity ####### echo "$(date "+%d.%m.%Y %T") INFO: *** Checking if online" ping -q -c2 google.com > /dev/null # -q quiet, -c number of pings to perform if [ $? -eq 0 ]; then # ping returns exit status 0 if successful echo "$(date "+%d.%m.%Y %T") PASSED: *** Internet online" else echo "$(date "+%d.%m.%Y %T") FAIL: *** No connectivity. Will try again on next run" rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running exit fi ####### Create Rclone Mount ####### # Check If Rclone Mount Already Created if [[ -f "$RcloneMountLocation/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Success ${RcloneRemoteName} remote is already mounted." else echo "$(date "+%d.%m.%Y %T") INFO: Mount not running. Will now mount ${RcloneRemoteName} remote." # Creating mountcheck file in case it doesn't already exist echo "$(date "+%d.%m.%Y %T") INFO: Recreating mountcheck file for ${RcloneRemoteName} remote." touch mountcheck rclone copy mountcheck $RcloneRemoteName: -vv --no-traverse # Check bind option if [[ $CreateBindMount == 'Y' ]]; then echo "$(date "+%d.%m.%Y %T") INFO: *** Checking if IP address ${RCloneMountIP} already created for remote ${RcloneRemoteName}" ping -q -c2 $RCloneMountIP > /dev/null # -q quiet, -c number of pings to perform if [ $? -eq 0 ]; then # ping returns exit status 0 if successful echo "$(date "+%d.%m.%Y %T") INFO: *** IP address ${RCloneMountIP} already created for remote ${RcloneRemoteName}" else echo "$(date "+%d.%m.%Y %T") INFO: *** Creating IP address ${RCloneMountIP} for remote ${RcloneRemoteName}" ip addr add $RCloneMountIP/24 dev $NetworkAdapter label $NetworkAdapter:$VirtualIPNumber fi echo "$(date "+%d.%m.%Y %T") INFO: *** Created bind mount ${RCloneMountIP} for remote ${RcloneRemoteName}" else RCloneMountIP="" echo "$(date "+%d.%m.%Y %T") INFO: *** Creating mount for remote ${RcloneRemoteName}" fi # create rclone mount rclone mount \ $Command1 $Command2 $Command3 $Command4 $Command5 $Command6 $Command7 $Command8 \ --allow-other \ --umask 000 \ --dir-cache-time $RcloneMountDirCacheTime \ --attr-timeout $RcloneMountDirCacheTime \ --log-level INFO \ --poll-interval 10s \ --cache-dir=$RcloneCacheShare/cache/$RcloneRemoteName \ --drive-pacer-min-sleep 10ms \ --drive-pacer-burst 1000 \ --vfs-cache-mode full \ --vfs-cache-max-size $RcloneCacheMaxSize \ --vfs-cache-max-age $RcloneCacheMaxAge \ --vfs-read-ahead 1G \ --bind=$RCloneMountIP \ $RcloneRemoteName: $RcloneMountLocation & # Check if Mount Successful echo "$(date "+%d.%m.%Y %T") INFO: sleeping for 5 seconds" # slight pause to give mount time to finalise sleep 5 echo "$(date "+%d.%m.%Y %T") INFO: continuing..." if [[ -f "$RcloneMountLocation/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Successful mount of ${RcloneRemoteName} mount." else echo "$(date "+%d.%m.%Y %T") CRITICAL: ${RcloneRemoteName} mount failed - please check for problems. Stopping dockers" docker stop $DockerStart rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running exit fi fi ####### Start MergerFS Mount ####### if [[ $MergerfsMountShare == 'ignore' ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Not creating mergerfs mount as requested." else if [[ -f "$MergerFSMountLocation/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Check successful, ${RcloneRemoteName} mergerfs mount in place." else # check if mergerfs already installed if [[ -f "/bin/mergerfs" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Mergerfs already installed, proceeding to create mergerfs mount" else # Build mergerfs binary echo "$(date "+%d.%m.%Y %T") INFO: Mergerfs not installed - installing now." mkdir -p /mnt/user/appdata/other/rclone/mergerfs docker run -v /mnt/user/appdata/other/rclone/mergerfs:/build --rm trapexit/mergerfs-static-build mv /mnt/user/appdata/other/rclone/mergerfs/mergerfs /bin # check if mergerfs install successful echo "$(date "+%d.%m.%Y %T") INFO: *sleeping for 5 seconds" sleep 5 if [[ -f "/bin/mergerfs" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Mergerfs installed successfully, proceeding to create mergerfs mount." else echo "$(date "+%d.%m.%Y %T") ERROR: Mergerfs not installed successfully. Please check for errors. Exiting." rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running exit fi fi # Create mergerfs mount echo "$(date "+%d.%m.%Y %T") INFO: Creating ${RcloneRemoteName} mergerfs mount." # Extra Mergerfs folders if [[ $LocalFilesShare2 != 'ignore' ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Adding ${LocalFilesShare2} to ${RcloneRemoteName} mergerfs mount." LocalFilesShare2=":$LocalFilesShare2" else LocalFilesShare2="" fi if [[ $LocalFilesShare3 != 'ignore' ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Adding ${LocalFilesShare3} to ${RcloneRemoteName} mergerfs mount." LocalFilesShare3=":$LocalFilesShare3" else LocalFilesShare3="" fi if [[ $LocalFilesShare4 != 'ignore' ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Adding ${LocalFilesShare4} to ${RcloneRemoteName} mergerfs mount." LocalFilesShare4=":$LocalFilesShare4" else LocalFilesShare4="" fi # make sure mergerfs mount point is empty mv $MergerFSMountLocation $LocalFilesLocation mkdir -p $MergerFSMountLocation # mergerfs mount command mergerfs $LocalFilesLocation:$RcloneMountLocation$LocalFilesShare2$LocalFilesShare3$LocalFilesShare4 $MergerFSMountLocation -o rw,async_read=false,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=partial,dropcacheonclose=true # check if mergerfs mount successful echo "$(date "+%d.%m.%Y %T") INFO: Checking if ${RcloneRemoteName} mergerfs mount created." if [[ -f "$MergerFSMountLocation/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Check successful, ${RcloneRemoteName} mergerfs mount created." else echo "$(date "+%d.%m.%Y %T") CRITICAL: ${RcloneRemoteName} mergerfs mount failed. Stopping dockers." docker stop $DockerStart rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running exit fi fi fi ####### Starting Dockers That Need Mergerfs Mount To Work Properly ####### # only start dockers once if [[ -f "/mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/dockers_started" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: dockers already started." else # Check CA Appdata plugin not backing up or restoring if [ -f "/tmp/ca.backup2/tempFiles/backupInProgress" ] || [ -f "/tmp/ca.backup2/tempFiles/restoreInProgress" ] ; then echo "$(date "+%d.%m.%Y %T") INFO: Appdata Backup plugin running - not starting dockers." else touch /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/dockers_started echo "$(date "+%d.%m.%Y %T") INFO: Starting dockers." docker start $DockerStart fi fi rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running echo "$(date "+%d.%m.%Y %T") INFO: Script complete" exit I cannot see any issues configuration wise, however I am glad for help on this.
-
Rclone crypt mount nicht sichtbar
Genau das ist es. Es hat jahrelang funktioniert und jetzt treten auf einmal Probleme auf. Merkwürdigerweise laufen die Uploads auf das Crypt Remote problemlos durch. Da besteht dann ja auch eine stabile Verbindung. Parallel habe ich mal geschaut ob es an einem der Docker Container liegt, die auf den Pfad zugreifen und den Mount ohne laufende Container neu gestartet. Aber auch da verliert er schnell die Verbindung. Weiß jemand wie ich über das Mountscript einen Log erstelle? Vielleicht sieht man da woran es hakt. VG unn4m3d
-
Guide: How To Use Rclone To Mount Cloud Drives And Play Files
Hi, I used the provided scripts throughout the last couple of years. A few days ago I ran into ongoing issues with my crypt mount. After mounting the crypt remote, folders inside the remote are visible and accessible. However, after a few minutes the mount drops and I get the following error: root@Tower:~# ls -la /mnt/user/mount_rclone/gdrive_vfs /bin/ls: cannot open directory '/mnt/user/mount_rclone/gdrive_vfs': Transport endpoint is not connected If I now run the mount script without unmounting it does not give me any errors. However, I cannot acess the crypt mount. After unmounting with fusermount -uz I can mount and access the crypt folder again. Any ideas to fix the issue are welcome. Many thanks in advance.