singularity098 Posted May 13 Share Posted May 13 No, I don't know where the script comes from. Obviously it has something to do with a Dynamix plugin based on the file path, but I had uninstalled all Dynamix plugins and the thing was still there and writing errors to my log. I have no idea where the script comes from or what the purpose is. All I know is that I noticed the error in the log, Googled it, ended up in this thread and found a fix. Quote Link to comment
ljm42 Posted May 13 Share Posted May 13 2 hours ago, singularity098 said: No, I don't know where the script comes from. Obviously it has something to do with a Dynamix plugin based on the file path, but I had uninstalled all Dynamix plugins and the thing was still there and writing errors to my log. I have no idea where the script comes from or what the purpose is. All I know is that I noticed the error in the log, Googled it, ended up in this thread and found a fix. The code being discussed in this thread is not stock Unraid. Something has completely overwritten this file: /usr/local/emhttp/plugins/dynamix/scripts/monitor. I'm guessing that you added code to your /boot/config/go script but without diagnostics it is hard to tell. Please upload your diagnostics.zip (from Tools -> Diagnostics) Quote Link to comment
singularity098 Posted May 14 Share Posted May 14 (edited) Ok, I've got you. Sharing my diagnostics here. (EDIT: Removed the diagnostics since it is no longer necessary) Edited May 14 by singularity098 Quote Link to comment
ljm42 Posted May 14 Share Posted May 14 3 hours ago, singularity098 said: Ok, I've got you. Sharing my diagnostics here. So it looks like you followed a guide somewhere and added 27 lines of code to the config/go script on your flash drive. This code modifies two core Unraid fails: /etc/rc.d/rc.docker /usr/local/emhttp/plugins/dynamix/scripts/monitor I strongly recommend removing all that and restoring your go script to stock: #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & then rebooting. This will get you back into a supported configuration. If you are unwilling to return to stock Unraid, you should find where you originally got the code and see if there is an updated version. Keep in mind that with every Unraid update there is a chance this code will break so you should bookmark the source and check it regularly for updates. Modifying core Unraid files like this is highly discouraged, always be sure to upload your diagnostics when asking questions so the people helping you know up front about the mod. Any support questions about the mod or the files it modifies should be asked in the thread where you got the mod. Quote Link to comment
singularity098 Posted May 14 Share Posted May 14 Ok. I have no clue where the modification came from and I know that I never modified this file directly. But I'll revert the file and then see if I can figure out how this came about. Thanks for the help! Quote Link to comment
MAM59 Posted May 14 Author Share Posted May 14 this code comes from a script from this forum. Purpose is to move the everrunning docker logs to a ramdisk and sync it every few...(hours? days? dunno) to a "real" disk. I cannot remember who brought it up, but it is quite old already. The relevant full code is: # Automatically backup Docker RAM-Disk sed -i '/^<?PHP$/a \ $sync_interval_minutes=60;\ if ( ! ((date("i") * date("H") * 60 + date("i")) % $sync_interval_minutes) && file_exists("/var/lib/docker/containers")) {\ exec("mkdir /var/lib/docker_bind");\ exec("mount --bind /var/lib/docker /var/lib/docker_bind");\ exec("rsync -aH --delete /var/lib/docker/containers/ /var/lib/docker_bind/containers");\ exec("umount /var/lib/docker_bind");\ exec("rmdir /var/lib/docker_bind");\ }' /usr/local/emhttp/plugins/dynamix/scripts/monitor Basically it is creating a php page that hooks into emhttp's monitor script The problem arises, when "go" is edited with a wrong editor and the ' and " quote signs are mixed or removed. Quote Link to comment
ljm42 Posted May 14 Share Posted May 14 12 minutes ago, MAM59 said: I cannot remember who brought it up, but it is quite old already. singularity098 appears to have a newer version, but everything I said above still applies. Modifying Unraid like this is strongly discouraged. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.