romain

Members
  • Posts

    38
  • Joined

  • Last visited

Posts posted by romain

  1. I tried stopping a docker container that was unresponsive this morning and was getting an error so I tried to stop the array and now it looks like it's having trouble unmounting a zfs cache pool. I ended up restarting the server manually.

     

    These lines are repeating in the log:

     

    Jan  8 12:07:12 unRAID root: rmdir: failed to remove '/mnt/user': Device or resource busy
    Jan  8 12:07:12 unRAID emhttpd: shcmd (6600): exit status: 1
    Jan  8 12:07:12 unRAID emhttpd: shcmd (6602): rm -f /boot/config/plugins/dynamix/mover.cron
    Jan  8 12:07:12 unRAID emhttpd: shcmd (6603): /usr/local/sbin/update_cron
    Jan  8 12:07:12 unRAID emhttpd: Retry unmounting user share(s)...
    Jan  8 12:07:17 unRAID emhttpd: shcmd (6604): /usr/sbin/zfs unmount -a
    Jan  8 12:07:17 unRAID root: cannot open 'trash': pool I/O is currently suspended
    Jan  8 12:07:17 unRAID root: cannot open 'trash/media': pool I/O is currently suspended
    Jan  8 12:07:17 unRAID root: cannot unmount '/mnt/cache': pool or dataset is busy
    Jan  8 12:07:17 unRAID emhttpd: shcmd (6604): exit status: 1
    Jan  8 12:07:17 unRAID emhttpd: shcmd (6605): umount /mnt/user
    Jan  8 12:07:17 unRAID root: umount: /mnt/user: target is busy.
    Jan  8 12:07:17 unRAID emhttpd: shcmd (6605): exit status: 32
    Jan  8 12:07:17 unRAID emhttpd: shcmd (6606): rmdir /mnt/user

     

    This happens on and off, I've googled and searched the forum before for answers but am not sure what is going on.

     

    I ran diagnostics before forcing the reboot, they're attached here. Hopefully someone can point me in the right direction to fix whatever is causing this.

     

    unraid-diagnostics-20240108-1152.zip

  2. I've been able to bulk upload photos to Immich manually through the command line by going to my Docker tab, finding the Immich container, clicking ">_ Console" and running the command:

    immich upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api --recursive directory/

    This works fine, but I'd like to automate this using userscripts so that it runs automatically from time to time. I don't know much about writing scripts though - I've tried a few things but haven't gotten it to work.

     

    If I click the ">_" button at the top of my GUI for the UNRAID terminal, and run:

    docker exec -it immich bash

     

    I can get into the docker container, so my userscript looks like this:

    #!/bin/bash
    docker exec -it immich bash
    immich upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api --recursive directory/

     

    When I run that though I get the error:

    Quote

    the input device is not a TTY
    /tmp/user.scripts/tmpScripts/immich test/script: line 3: immich: command not found

     

    I've also tried running:

    docker exec -it immich upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api --recursive directory/

    but get an error message telling me that the upload command is not found.

     

     

     

     

    I'm pasting in the generic 'immich upload' command from the Immich website, the command that I'm running has my correct API key, IP address & upload source directory.

     

     

     

    Can anyone suggest a way to set up my user script so that I can run it on a schedule to grab any photos that I put into the upload source directory?

     

     

    Another item that I'm concerned about once I get the first part running - when I run the immich upload command through the docker console, there is a message that says something like 'you're about to upload ### photos, are you sure?' and then I have to enter y/n. Is there a way to make sure that the user script can confirm 'y' for me?

     

  3. 5 minutes ago, Djoss said:

     

    Yes, when you search for similar photos, there is a preview of duplicates found.  For similar videos, you can also double-click the file to view it.

    @Djoss thanks for writing back.

     

    For some reason I was thinking that I couldn't see photos but I just checked again and you're right it works the same in the container as it does with the desktop version. I tried double clicking on some .mp4 and .mov files that it found and could not watch the videos. Is there anything extra that I might need to do to allow czkawka to show video?

  4. I did a short search for this and didn't see any thing so maybe there's not much demand for this and it's just me, but I have about 50 user shares and if I need to update anything it can take a while because they all have different settings so I'm usually hesitant to use the "Read settings from" or "Write settings to" options.


    It would be great if you could just go to the SHARES tab and edit main settings of all shares on one page as if you were working on a spreadsheet - for example if you had 20 shares and you wanted to exclude disk 4 from 7 of them, you would just have to find the "Excluded disk(s)" column and select disk 7 from each row (share) that you wanted it excluded from and then click APPLY at the bottom.

     

  5. 15 hours ago, Swarles said:

    Yep that appears to be your issue as I don't see anything else wrong. The process appears to be fully executing but just not finding any files to move.

     

    Check the following location:

    ls /boot/config/shares

    You must have a file called "Media.cfg". I'm not sure how unraid processes this side of things, did you at any point rename the capital letter? If you directly rename the file to "media.cfg" it will work for the mover tuning plugin, not sure how unraid will handle it. Perhaps try renaming the share (in settings) to something completely different, saving etc, then renaming it back to "media" and see if it changes :)

     

    @Swarles That fixed it! Changed the share to media1234 and then back to media and the .cfg file updated itself accordingly and mover started working. Thanks for the help.

    • Like 1
  6. @Swarles

    What does the line below do in the context of Mover? Does it give a list of files to move?

     

    Skipfiletypes string: find "/mnt/nzbget/Media" -depth

     

    I ran it and got nothing, because my share name is "media", not "Media" - I replaced the upper case "M" with a lower case "m" and got a full list of everything on the cache pool.

     

    Could that be the reason that I'm having an issue? If so, I don't know how to fix it if somehow Unraid is capitalizing a letter that it shouldn't be. I took a look around and there are no upper case M's anywhere that I've typed that I can find so I'm not sure why it's capitalized in the log.

  7. 2 hours ago, Swarles said:

    I can try help with this, first thing to check would be if "share.cfg" exists.

    1. Go to “cd /boot/config” and identify if “share.cfg” file exists.
    2. If it does, verify that the line 'shareCacheEnabled="yes"' is in there.
    3. If no to either 1 or 2, do one of the following:
    • To have the file created by the system, edit your global share settings (edit, save, revert). "Settings>Global Share Settings"
    • OR; Paste the following in the terminal:
    • echo shareCacheEnabled='"yes"' >> /boot/config/share.cfg

       

    If the file did exist and you verified step 2, do the following:

    1. Enable Mover Logging.
    2. Set “Move Now Button Follows Plug-In Filters” to yes.
    3. Set “Test Mode” to yes.
    4. Run mover.
    5. Go to “cd /tmp/Mover” and share the contents of the most recent ".log" file.

    @Swarles Thanks for responding!

     

    share.cfg exists and shareCacheEnabled="yes" was present in that file, so here is the log after following your other instructions.

     

     

    Mover_Tuning_2023-08-15T000944.log

  8. I'm having an issue where if I have this plugin installed mover starts and immediately stops without moving anything, but if I uninstall the plugin mover works fine.

    I have 2 cache pools:

    - Cache

    - Sabnzbd

     

    Any shares that use the Cache pool are set to Cache only, so mover only moves files from the Sabnzbd cache pool to the array.

     

    When I install the Mover Tuning plugin, all I do is update this one setting;

    Move Now button follows plug-in filters: Yes

     

    and after that if I click MOVE NOW, mover starts and immediately stops, here is the log:

    Aug 14 18:09:33 unRAID move: mover: started
    Aug 14 18:09:34 unRAID move: mover: finished

     

    I've tried reinstalling and updating the plugin and have messed around with some other settings, but after whittling settings away it looks like that's all it takes to keep Mover from running for me. I was wondering if it was an issue with my using a cache pool called Sabnzbd instead of Cache, but saw a thread on reddit saying that the plugin should work fine with multiple cache pools so now I'm not really sure what the issue is.

  9. I spent a little time tracing out my server and disk shelves in nanocad and I tried to make an icon out of it with inkscape but the finished product is hard to really see in the Unraid dashboard.

     

    I don't know much about inkscape, just downloaded it yesterday to mess with this - can anyone help me out with this image so that it fills out a little better on the dashboard?

     

    I'm attaching the DXF and a screen shot of how it looks now in Unraid.

    Screenshot 2023-06-07 123912.png

    T630 stack.dxf

  10. Diagnostics are attached.

    I was using unbalance overnight to move files off of one of three drives that I was going to remove from the array, when I came back to check on it in the morning the server was unresponsive through the gui so I rebooted it through idrac & everything started up fine.

     

    I re-ran unbalance to get the last few gigs off of the hard drive, then I powered down the server, pulled the three drives out of the server and turned it back on. I created a new config and preserved all assignments, then I went to the main page and moved some disks around so that there wouldn't be any empty spots in the list and so that the disks were ordered largest to smallest, I started the array, entered my encryption key and things hung up on 'mounting disks' so I checked the log and had the segfault error.

     

    I forced a reboot through idrac and when the server came back on I put the disks back in their original order because the log was giving errors about 'wrong fs type' on the 2 newer drives which are formatted to zfs, I was wondering if that was an issue if they're the first drives that unraid looked at, so I put them back in the same order that they were in while things were working well, minus the three drives that I just removed. I started the array and got a similar segfault error.

     

    I forced a power down through idrac and added the three drives back into the server, when the OS was back up I reset the config again and went through to put all the drives including the three I had removed back in the same order that they were in before any of the issues started popping up, and I started the array and again got the segfault error.

     

    I've rebooted my server maybe 5 times since updating to 6.12.0-rc6 and have had no issues, I started getting the segfault errors right after I removed the drives and set up the new config, but resetting everything to be the same as it was before getting the segfault hasn't solved the issue.

     

    These diagnostics are from the most recent start up, I didn't save any diagnostics from the first 2 segfault hang ups.

     

     

    I have some parts coming in from ebay today for another server that I'm planning to migrate my unraid hardware into so whenever that gets here I'll try moving my drives over to see how it responds. The new server has different CPUs and RAM so If it's a CPU or RAM issue it should not have this problem in the new server.

     

     

     

    unraid-diagnostics-20230526-1224.zip

  11. So for the whole background, I precleared both of these drives and they post read failed so I did some looking around and saw people recommending memtest to other people, so I ran memtest  for 24 hours and had no issues.

    Then I did another preclear with these drives and they finished with no issues.

    After that I figured I'd run 1 more preclear to double check that all issues were taken care of and that's when I got these failures.

     

    Should I run a 3-4 day memtest because it takes 3-4 days to preclear these drives or are there other things that I could/should look into?

  12. I bought two 20tb drives and was preclearing them both and both failed. It looks like something went wrong with the zeroing, both have a line in the log saying "dd process hung at..." and so I'm wondering if that caused an issue with the post read? But the dd process hang was near the end of the zeroing and the post read failed kind of early on.

     

    Any help interpreting these logs would be appreciated, I'm just not sure if it's something I should be worried about or not.

    preclear_disk_ZVT51BBP_37942.txt preclear_disk_ZVT6L4TC_33438.txt

  13. I just started creating new pools - one for Plex to use and one to use for VMs. I used to use single disks in unassigned devices for these purposes but now set these up as 2-disk pools. I'm not sure if I did something wrong when I set them up or what, but now when I try stopping the array I get stuck with this message in the bottom corner:

     

     

    Array Stopping•Retry unmounting disk share(s)...

     

    Looking into the logs it looks like Unraid can't unmount my /mnt/vm pool.

     

    Does anyone have any tips on what I might have misconfigured to cause this?

    unraid-diagnostics-20230506-2053.zip

  14. Hey everyone I'm thinking about getting started with tape backups on my Unraid server but I'm not sure what the best way to go about it is.

     

    I have a Dell T620 for Unraid and I think these are my options:

    • I could get an internal tape drive, but if I did that I wouldn't know how to write data to the tape, would I be able to do that straight from MC or Krusader or would I need to install a Docker container or plugin to let me interface with the drive, or would I need to do something else?
    • I could also get an external drive but I'd have the same questions as I do with the internal drive option, how to write data to tapes?
    • I could get a tape library - maybe a Dell TL2000 - but I don't know how I'd control that either or get data written onto the tapes & I think this would be a more expensive starting point.
  15. I attached a screen shot. My server was on 24/7 except for restarts and updates for a few years and then I moved somewhere with expensive power and only turned it on every once in a while. I just started leaving it on 24/7 again recently and have noticed that the GUI gets stuck as shown in the screenshot fairly often. It'll sit like this for 5 or 10 minutes or longer, I haven't timed it but it's much longer than normal. Sometimes I'll stop & start the array and it'll work normally for a while, maybe less than an hour before it happens again.

     

    Does anyone have ideas for what might be causing this or how to fix? Let me know if there's any additional info I can provide.

    Screenshot 2023-03-21 142657.png

  16. 8 hours ago, Djoss said:

    When you setup a "/live02" custom location, did you try to access it via "code.mydomain.com/live02" or "code.mydomain.com/live02/" (with or without ending slash) ?

    I tried both, neither worked.

     

     

    When I tried using /live02/ in the settings (as opposed to what was shown in the screen shot) something confusing also happened when trying to go to code.mydomain.com/live02.  Instead of it immediately not working, it sat there and tried to load for 10 - 20 seconds and then the URL changed to be code.mydomain.com:4443/live02/ which is very strange, nothing in my code-server or my Nginx Proxy Manager settings have anything to do with port 4443, so I'm not sure where that's coming from.