4.7 (build 3105) – character issue

Need help? Post your questions here.

Moderator: moderators

4.7 (build 3105) – character issue

Postby dillzz » Sun Nov 18, 2012 3:58 pm

Installed on Synology DSM 1512+.

I see this with many music listings. I also cannot download them when they are in this state. I had this happen before on a Linux box but I had to just set and solved it with the entries below in the startup script:

export LANG="en_US.utf8"
export LC_CTYPE="en_US.utf8"


This now happens with with foreign characters and apostrophes even if I put that in. Any thoughts?

Example: like a Song���.mp3
dillzz
 
Posts: 10
Joined: Wed Apr 25, 2012 9:34 am

Re: 4.7 (build 3105) – character issue

Postby hakko » Sun Nov 18, 2012 4:17 pm

Does it make a difference if you add the parameter -Dfile.encoding=UTF8 to java in your startup script?
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: 4.7 (build 3105) – character issue

Postby dillzz » Sun Nov 18, 2012 4:49 pm

hakko,

I tried and did a rescan of the library, however no change. . .
dillzz
 
Posts: 10
Joined: Wed Apr 25, 2012 9:34 am

Re: 4.7 (build 3105) – character issue

Postby hakko » Sun Nov 18, 2012 5:22 pm

I'm not sure on how this will work exactly (and I don't use 4.7 myself). But for one it seems like the 4.7 media scanner looks at the "modified" property of directories, so to force an actual rescan, you'd have to something like

Code: Select all
find . -exec touch {} \;


(in the directory containing UTF8 file names) to have your files detected as "new" by the media scanner.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: 4.7 (build 3105) – character issue

Postby dillzz » Sun Nov 18, 2012 8:40 pm

Well I cleared out the db and re initialed the library using your setting and the ones i mentioned prior. Still the same results. . . Very frustrating because prior to this update it worked fine. Thank you for the prompt responses.
dillzz
 
Posts: 10
Joined: Wed Apr 25, 2012 9:34 am

Re: 4.7 (build 3105) – character issue

Postby dillzz » Sun Nov 18, 2012 8:43 pm

[2012-11-18 15:38:42,958] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/04. Rembihn??tur.mp3
[2012-11-18 15:38:42,963] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/03. Var????.mp3
[2012-11-18 15:38:42,968] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/08. Fj??gur p??an??.mp3
[2012-11-18 15:38:42,973] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/06. Var??eldur.mp3
[2012-11-18 15:38:42,978] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/01. ??g anda.mp3
[2012-11-18 15:38:42,982] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/02. Ekki m??kk.mp3
[2012-11-18 15:38:42,987] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/05. Dau??alogn.mp3


Here is a sample of what is in the subsonic.log
dillzz
 
Posts: 10
Joined: Wed Apr 25, 2012 9:34 am

Re: 4.7 (build 3105) – character issue

Postby dillzz » Sun Nov 18, 2012 9:35 pm

Just installed the same build on a Fedora 17 box and all works fine without any modification. . . I would really like to keep this service on the synology.
dillzz
 
Posts: 10
Joined: Wed Apr 25, 2012 9:34 am

Re: 4.7 (build 3105) – character issue

Postby dillzz » Sun Nov 18, 2012 9:54 pm

So I dropped back to a 4.6 build on the synology and I am still seeing the issue. Perhaps something changed with the DSM upgrade (Currently running 4.1-2647, there is an update to 4.1-2661, I will see what happens)
dillzz
 
Posts: 10
Joined: Wed Apr 25, 2012 9:34 am

Re: 4.7 (build 3105) – character issue

Postby dillzz » Mon Nov 19, 2012 1:14 am

Updated dsm and no change

Sent from my Nexus 7 using Tapatalk 2
dillzz
 
Posts: 10
Joined: Wed Apr 25, 2012 9:34 am

Re: 4.7 (build 3105) – character issue

Postby TorbenB » Mon Nov 19, 2012 1:58 am

I've been seeing the exact same problems on my QNAP server when I upgraded to 4.7, but seem to have fixed it.

First up, this:
export LANG="en_US.utf8"
export LC_CTYPE="en_US.utf8"

didn't do anything for me, but opening a shell and entering "locale", I noticed that what was already registered, was "en_US.UTF-8", so I changed it to:
export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"


and added -Dfile.encoding=UTF8 to the Java section in subsonic.h

I also deleted my existing database (actually most of the home folder content) and did my experiments on a couple of folders, each containing a few artists and albums. This means I'll have to scan everything again, but I'd rather do that and know it works now, than having a messed up database. Of course losing users and other registrations in the database is another issue.

So I'm not sure if it was just deleting the existing database or a combination of it all, but now Subsonic scans my folder structure, where I have artists like "ÜNN", that wasn't scanned before, and tracks with names containing characters like "æ" or "ö" shows up as a normal track in the correct order, and not at the top and non-playable.
TorbenB
 
Posts: 1
Joined: Mon Nov 19, 2012 12:43 am

Re: 4.7 (build 3105) – character issue

Postby hakko » Mon Nov 19, 2012 6:05 am

I like to post this link as reference for saving/retrieving users if you move your database around or have it corrupted: viewtopic.php?f=6&t=10338
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: 4.7 (build 3105) – character issue

Postby dillzz » Tue Nov 20, 2012 10:44 am

TorbenB,

Sorry for the delayed response. Thank you for the information. I did notice the utf case issue and corrected it earlier. I have not tried both options and clearing the db. I will test tomorrow and update accordingly. Many thanks.
dillzz
 
Posts: 10
Joined: Wed Apr 25, 2012 9:34 am

Re: 4.7 (build 3105) – character issue

Postby dillzz » Wed Nov 21, 2012 5:30 pm

I tried all the suggestions and still have the same results. Looks like I will be leaving it on my Fedora machine until this is resolved.
dillzz
 
Posts: 10
Joined: Wed Apr 25, 2012 9:34 am


Return to Help

Who is online

Users browsing this forum: No registered users and 8 guests