[Plugin] unbalanced


Recommended Posts

I'm moving around Movies, Anime and TVShows.  I started with Anime.

 

As for special characters...most don't have anything outside the norm.

They typically will have a period, comma, dash, squared brackets and/or exclamation points.

 

See the screen shots

 

Sample folder listing

folderlist.PNG.ef872a5f9cf1f73f89c9c6d2d80b5a24.PNG

 

Sample File Name List:

filelisting.PNG.df18d1676e4d451a944eac19aca5b2bc.PNG

 

As for the size....I've tried multiple tests. The error happens with selecting 1 folder, Bleach for example, or selecting many of folders.

Selection total > 20GB fails

Selection total < 20GB transfers no problem

 

Folder Selection < 20GB

image.thumb.png.7fddc0b75d23218973e6258fb7dcc5a0.png

 

image.thumb.png.8699f38eb4c732cb63f5268acc9cd041.png

 

image.png.10edcc47063b80c3f98162a53f193c24.png

 

Completed:

image.thumb.png.3e38c46279e897ba0d473dce963f6d97.png

 

 

So now i'll select the same 3 series + add Bleach.  This batch will be > 20GB.

 

image.thumb.png.1ea1d45e5e23aca603f64105b20fc555.png

image.png.11ac2a5e9dd0e253eac2599103a3b78b.png

Click Proceed and goes right to here:

image.png.b2c464aef0260eb7168f1876fb2cd183.png

 

Log only shows this one error:

W: 2017/12/17 08:38:20 server.go:331: closing socket (&{ws:0xc420116870 onMessage:0x6e6730 onClose:0x6e6780}): unexpected end of JSON input

 

 

 

BTW.....Sorry for all the posts!!

 

Looking at the logs saw something else that looked a tad strange....grabbed 7 series that were about 22GB

In the logs I see this:

I: 2017/12/17 09:44:41 planner.go:490: [143.32 MB] /mnt/disk4/media/anime/Denpa Onna to Seishun Otoko (2011)/./Ground Control To Psychoelectric Girl - Special 02 - The Nightmare Sun [1280x720 x264 AAC 2ch] [F327A5D6].mkv
I: 2017/12/17 09:44:41 planner.go:493: ---------------------------------------------------------
I: 2017/12/17 09:44:41 planner.go:494:
I: 2017/12/17 09:44:41 planner.go:485: =========================================================

I: 2017/12/17 09:44:41 planner.go:486: disk(/mnt/cache):items(77)-(22.27 GB):currentFree(321.28 GB)-plannedFree(299.01 GB)

I: 2017/12/17 09:44:41 planner.go:487: ---------------------------------------------------------
I: 2017/12/17 09:44:41 planner.go:490: [343.12 MB] /mnt/disk2/media/anime/Chaos;Child (2017)/./Chaos;Child - 07 - Episode 7 [1280x720 x264 AAC 2ch].mkv
I: 2017/12/17 09:44:41 planner.go:504: =========================================================

I: 2017/12/17 09:44:41 planner.go:505: Bytes To Transfer: 155.89 GB

I: 2017/12/17 09:44:41 planner.go:506: ---------------------------------------------------------
W: 2017/12/17 09:44:48 server.go:331: closing socket (&{ws:0xc420116240 onMessage:0x6e6730 onClose:0x6e6780}): unexpected end of JSON input

 

Why does it say Bytes to Transfer is 155GB? when in the previous line is shows 22.27GB?

Also what is it doing with the cache disk in that same line?....out of curosity

 

Anything else i can test for ya!  Let me know!

 

Urlryn

 

Edited by Urlryn
Link to comment

I've had similar problems in 4.0.0 as Urlryn, but my assumption has been different, since I've been less patient.   I've gotten his error:

 

W: 2017/12/17 07:59:25 server.go:331: closing socket (&{ws:0xc4201c4090 onMessage:0x6e6730 onClose:0x6e6780}): unexpected end of JSON input

 

But I've also seen this:

 

W: 2017/12/17 08:00:49 server.go:331: closing socket (&{ws:0xc4200fc240 onMessage:0x6e6730 onClose:0x6e6780}): invalid character ' ' in string escape code

 

I think in my vast anime collection I have some filenames that aren't being escaped correctly for the JSON and are causing the JSON interpreter to dump.

Link to comment

One of my movie directories fails too.  Here are some interesting directory names:

'Master\ Harold'\ ...\ And\ the\ Boys\ (2010)/
*batteries\ not\ included\ (1987)/

Scotland,\ Pa.\ (2001)/

WALL·E\ (2008)/

 

Maybe these help?

 

Would be happy to PM you logs if that would help.

Edited by bmfrosty
Link to comment
One of my movie directories fails too.  Here are some interesting directory names:

'Master\ Harold'\ ...\ And\ the\ Boys\ (2010)/
*batteries\ not\ included\ (1987)/
Scotland,\ Pa.\ (2001)/
WALL·E\ (2008)/
 
Maybe these help?
 
Would be happy to PM you logs if that would help.
You really should rename batteries included. The * is an invalid character when dealing with SMB. Whether you use it now or possibly later it is something you're only going to have problems with
  • Like 1
Link to comment

Hi - is there any way of pausing/cancelling?  I've got three entries queued up in a scatter (freeing up a drive to reformat), and it's got 51h remaining.  However, I've got a different replacement drive precleared waiting to add to the array that I'd like to get in if possible.  Don't mind letting the first of three finish.  Thought that clicking on the "-" icon next to each entry would remove.

Link to comment
19 hours ago, jbrodriguez said:

killall rsync

Thanks for your advice.

 

This command gracefully stopped the sync at its current position.

 

I waited for the first command to complete (the first share to transfer).  For anybody else, this is not just when unBALANCE says "Command Finished" (or similar), but when all folders have been removed from the source drive.  Wait for the next share to start, then run the command (can be quite a while if - like me - you were moving 2.5TB).  Then delete the portion that has already transferred from this new share.

Link to comment

Just tried this after using the commandline `diskmv` from the MUSDL plugin for awhile... looks really nice, but doesn't seem to work from me.  Just about every move I try, stops immediately with a `exit status 23 : Partial transfer due to error` 

 

But if I drop to the command line, and manually paste in the rsync command, it goes through..  

 

Actually, watching the output from the current `rsync` command I copy pasted in, I think that `.git` repos break it..

 

 

Link to comment
On 12/31/2017 at 12:46 PM, JustinAiken said:

But if I drop to the command line, and manually paste in the rsync command, it goes through..

 

Hi JustinAiken, thanks for the feedback !

 

Yes, I've experienced this too.

 

I want to change the way rsync is invoked from unBALANCE, right now it fails in instances where a command line invocation just reports a warning.

Link to comment

v4.0.1 (2018.01.11) is out !

 

This is small maintenance release to help figure out the json parsing error.

 

Towards this end, the go websocket library has been replaced with the gorilla's version.

 

Additionally, separate warnings are being logged for transmission and parsing errors.

 

Additional changes are:
- Fix plugin install script (remove error shown on server boot)
- Add date based plugin version
- Other bug fixes and improvements
 

I tested json parsing with all the folder names you sent and couldn't reproduce the error.

What I did is change websocket library and log separate errors as per description above.

If/when you get the error, please post it, hopefully it should help identify the cause.

 

The test was done on Chrome, Safari and Firefox (mac), so I don't rule out it may have to do with some windows/linux browser issue.

 

Also I wasn't able to repro the floating footer error either, but I need to overhaul the front-end code anyway.

 

Let me know how it goes !

Link to comment

I just tried to install unbalance with Community Applications and I get this error;

 

 

plugin: installing: https://raw.githubusercontent.com/jbrodriguez/unraid/master/plugins/unbalance.plg
plugin: downloading https://raw.githubusercontent.com/jbrodriguez/unraid/master/plugins/unbalance.plg
plugin: downloading: https://raw.githubusercontent.com/jbrodriguez/unraid/master/plugins/unbalance.plg ... done
plugin: downloading: "https://github.com/jbrodriguez/unbalance/releases/download/2018.01.11/unbalance-2018.01.11.tgz" ... failed (Invalid URL / Server error response)
plugin: wget: "https://github.com/jbrodriguez/unbalance/releases/download/2018.01.11/unbalance-2018.01.11.tgz" download failure (Invalid URL / Server error response)
 

Is this a Github problem?

Link to comment

I: 2018/01/12 09:07:22 planner.go:493: ---------------------------------------------------------

I: 2018/01/12 09:07:22 planner.go:494:

I: 2018/01/12 09:07:22 planner.go:504: =========================================================

I: 2018/01/12 09:07:22 planner.go:505: Bytes To Transfer: 727.02 GB

I: 2018/01/12 09:07:22 planner.go:506: ---------------------------------------------------------

W: 2018/01/12 09:07:33 server.go:331: closing socket (&{ws:0xc4201ac480 onMessage:0x6e6730 onClose:0x6e6780}): invalid character ' ' in string escape code

I: 2018/01/12 09:07:33 core.go:158: Sending operation

I: 2018/01/12 09:07:43 core.go:153: Sending state

I: 2018/01/12 09:07:43 core.go:148: Sending config

I: 2018/01/12 09:07:43 core.go:163: Sending storage

Link to comment

There's an issue with the footer where it floats on top of long lists. Apparently was brought up before but never fixed.

 

Easy to fix as follows.

 

1. Change `height` on the `body` class to `min-height`. This will have the footer at the bottom of the viewport if there's plenty of space, otherwise other content will push it down outside the viewport.

2. Remove use of `height100` class. It relies on viewport height and unnecessarily clamps the height of a block that is taller than 100vh.

 

Link to comment
  • jbrodriguez changed the title to [Plugin] unbalanced

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.