Page 2 of 2

Re: Subsonic 6.1.3 (pre-)released

PostPosted: Mon Nov 06, 2017 9:56 pm
by Alsaya
Works like a charm

Thank you Sindre

Re: Subsonic 6.1.3 (pre-)released

PostPosted: Tue Nov 07, 2017 1:40 pm
by DaveWut
Hey Sindre,

Since you are fixing bugs in this release, here's another one I recently found:
- Configure Subsonic to authenticate on LDAP.
- Login as an LDAP user.
- Logout and login as an admin to give this new user all admin rights
- Logout again and login again with that LDAP user
- Navigate a little
- Open a new Incognito tab (On Chrome, or a private browser tab on another browser)
- On the login page, ONLY type the username, leave the password field blank and then press enter on your keyboard.
- Once the page refreshes, you can see the message: "Wrong username or password." doesn't show up. Try to login with the username and password back and you won't be able. It seems like this breaks the authentication mechanisms.

Here's my setup:
Ubuntu Server 16.04 x64
Apache Tomcat/7.0.68 (Ubuntu), java 1.8.0_131, HSQLDB, Linux

The following valve has been added for my reverse proxy setup:
<Valve
className="org.apache.catalina.valves.RemoteIpValve"
internalProxies="*****"
remoteIpHeader="x-forwarded-for"
proxiesHeader="x-forwarded-by" />

Tomcat is listening on port 4040 and the connector has the following additional attributes:
proxyName="example.com"
proxyPort="443" scheme="https" secure="true"

Proxy server is running HA-Proxy version 1.6.3 2015/12/25
The following security headers are injected with all requests that goes through HAProxy:
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
X-Frame-Options "SAMEORIGIN"
X-XSS-Protection "1; mode=block"
X-Content-Type-Options "nosniff"
Referrer-Policy "strict-origin-when-cross-origin"

Because Subsonic includes a lot of inline scripts and evals, it uses this header instead of the default configured one:
Content-Security-Policy "default-src https: data: blob:; script-src https: 'unsafe-inline' 'unsafe-eval'; style-src https: 'unsafe-inline'"

Thanks in advance for looking onto this problem.
David

Re: Subsonic 6.1.3 (pre-)released

PostPosted: Tue Nov 07, 2017 10:12 pm
by hairbag
Thank you soooo much for this update!
The disappearing data issues seem to be fixed. After a full re-scan following the update I did some extensive file changing and moving today, everything showed as it should even without additional scans. I was about to jump ship so thank you for fixing this painful problem. :)

Re: Subsonic 6.1.3 (pre-)released

PostPosted: Wed Nov 08, 2017 11:08 pm
by antti
After upgrade Podcast are not working. When clicking podcast link in main menu, got strange error with path to unexsisting directory for random podcast

Also when scanning, I get lot of WARN JaudiotaggerParser Error when parsing tags errors

Re: Subsonic 6.1.3 (pre-)released

PostPosted: Tue Nov 14, 2017 8:00 am
by zeroday
First crash since long time and just after upgrading to 6.1.3

[2017-11-14 03:19:33,123] WARN JaudiotaggerParser - Error when parsing tags in /media/music/Mixed by DJ Dano.wav
org.jaudiotagger.audio.exceptions.CannotReadException: /media/music/Mixed by DJ Dano.wav:null
at org.jaudiotagger.audio.generic.AudioFileReader.read(AudioFileReader.java:117)
at org.jaudiotagger.audio.AudioFileIO.readFile(AudioFileIO.java:355)
at org.jaudiotagger.audio.AudioFileIO.read(AudioFileIO.java:198)
at net.sourceforge.subsonic.service.metadata.JaudiotaggerParser.getRawMetaData(JaudiotaggerParser.java:58)
at net.sourceforge.subsonic.service.metadata.MetaDataParser.getMetaData(MetaDataParser.java:29)
at net.sourceforge.subsonic.service.MediaFileService.createMediaFile(MediaFileService.java:504)
at net.sourceforge.subsonic.service.MediaFileService.checkLastModified(MediaFileService.java:118)
at net.sourceforge.subsonic.service.MediaFileService.getChildrenOf(MediaFileService.java:188)
at net.sourceforge.subsonic.service.MediaScannerService.scanFile(MediaScannerService.java:219)
at net.sourceforge.subsonic.service.MediaScannerService.scanFile(MediaScannerService.java:223)
at net.sourceforge.subsonic.service.MediaScannerService.doScanLibrary(MediaScannerService.java:161)
at net.sourceforge.subsonic.service.MediaScannerService.access$000(MediaScannerService.java:31)
at net.sourceforge.subsonic.service.MediaScannerService$2.run(MediaScannerService.java:130)
Caused by: java.nio.BufferUnderflowException
at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:271)
at java.nio.ByteBuffer.get(ByteBuffer.java:715)
at org.jaudiotagger.audio.generic.Utils.getString(Utils.java:262)
at org.jaudiotagger.audio.wav.chunk.WavInfoChunk.readChunks(WavInfoChunk.java:40)
at org.jaudiotagger.audio.wav.chunk.WavListChunk.readChunk(WavListChunk.java:53)
at org.jaudiotagger.audio.wav.WavTagReader.readChunk(WavTagReader.java:120)
at org.jaudiotagger.audio.wav.WavTagReader.read(WavTagReader.java:59)
at org.jaudiotagger.audio.wav.WavFileReader.getTag(WavFileReader.java:50)
at org.jaudiotagger.audio.generic.AudioFileReader.read(AudioFileReader.java:106)
... 12 more

also I see this

[GC (Allocation Failure) 66220K->54468K(113136K), 0.0430809 secs]
[GC (Allocation Failure) 85700K->71153K(113136K), 0.0499469 secs]
[GC (Allocation Failure) 102385K->75517K(113136K), 0.0213500 secs]
[GC (Allocation Failure) 106749K->77519K(113136K), 0.0158390 secs]


it seems that this has to do with out of memory stuff

[2017-11-14 09:09:14,576] WARN JaudiotaggerParser - Error when parsing tags in /media/music/Mixed by Steve Murphy.wav
java.lang.OutOfMemoryError: Java heap space

problems became visible after upgrading to 6.1.3

update
one of the things I have done is remove openjdk 7 and install openjdk 8 it might help ..
Right now subsonic is scanning +3TB of my music

Uprading JAVA helped, no crash yes, lots of info in the log though
[2017-11-14 15:37:18,534] WARN JaudiotaggerParser - Error when parsing tags in /media/music/candy dulfer/Candy Dulfer - Beat Side 1990.wav
java.lang.OutOfMemoryError: Java heap space

[2017-11-14 15:37:24,686] INFO MediaScannerService - Scanned media library with 123750 entries.

and switching to java 8 helped

[2017-11-14 17:11:59,064] INFO MediaScannerService - Scanned media library with 159553 entries.
[2017-11-14 17:11:59,064] INFO MediaScannerService - Marking non-present files.
[2017-11-14 17:12:24,078] INFO MediaScannerService - Marking non-present artists.
[2017-11-14 17:12:25,093] INFO MediaScannerService - Marking non-present albums.
[2017-11-14 17:12:28,072] INFO MediaScannerService - Completed media library scan.

Re: Subsonic 6.1.3 (pre-)released

PostPosted: Fri Nov 17, 2017 12:14 pm
by antti
Here is screenshot about Podcast error
Image

And here is settings page
Image
ebay image hosting free

Version info
Image
image processing service

Re: Subsonic 6.1.3 (pre-)released

PostPosted: Sat Nov 18, 2017 1:05 pm
by zeroday
antti wrote:Here is screenshot about Podcast error
Image


security issue, subsonic has no rights at that specific location. Can you reach it when you try to access
maybe not in the upper folders . .
when in shell can you access it?
user / group / rights?

Re: Subsonic 6.1.3 (pre-)released

PostPosted: Sat Nov 18, 2017 1:15 pm
by antti
Problem is that Podcasts setting are not working. The correct path is /music/Podcast. There are no directory mentioned in error. It’s like there is hardcoded /mnt/media somewhere.

Re: Subsonic 6.1.3 (pre-)released

PostPosted: Tue Nov 21, 2017 4:26 am
by cleepa
sindre_mehus wrote:Bugfix: Externally modified tracks disappear in Subsonic.

I upgraded for this fix, from 6.1.1.

I had an album with some (but not all) flac files with invalid DATE tags. I fixed the tags with an external tagger and rescanned. The retagged files disappeared from the Subsonic web ui, but the files that were not changed remained.

I then upgraded to 6.1.3 and rescanned. The flac files that had disappeared came back, however the tags appeared as they did before I did anything at all.

So the issue is not fully resolved yet. I haven't been able to find a workaround.

Re: Subsonic 6.1.3 (pre-)released

PostPosted: Tue Nov 28, 2017 1:02 pm
by magnumforce2006
I'd like to report a bug with 6.1.3


A couple days ago (after updating to newest subsonic version 6.1.3), I realized that I could no longer play songs. The play buttons disappeared, and I couldn't find the settings for Subsonic in my web browser. In an act of desperation I deleted all of my local settings files and created a new user on Subsonic (still on version 6.1.3). Seemed to work, but the next day, I once again could not use the settings in the Web UI, and the play/queue controls were gone.

I have now repeated this process of removing my local settings files, setting up a new user, but also downgraded to 6.1.2. I did this yesterday, and today I am no longer having the issue.

I believe this feature:

"Bugfix: Hide links, buttons etc in the web interface if a user is not allowed to play music."

Is causing issues with users, even when they are granted the proper permissions. I was sure to give my custom user ALL Subsonic privileges, including admin rights, and yet the settings and play controls were still gone the next day.

Re: Subsonic 6.1.3 (pre-)released

PostPosted: Tue Dec 05, 2017 3:51 pm
by kermit22
[quote]Bugfix: Externally modified tracks disappear in Subsonic.[/quote]

Thank you for fixing this issue.

Re: Subsonic 6.1.3 (pre-)released

PostPosted: Tue Dec 12, 2017 12:31 pm
by antti
antti wrote:Problem is that Podcasts setting are not working. The correct path is /music/Podcast. There are no directory mentioned in error. It’s like there is hardcoded /mnt/media somewhere.


Hello!

Still Podcast are not working.

Music is stored in folder /music
Podcast should be in folder /music/Podcasts/

Error message gives strange path that doesn't exist nor have ever existed. I have tried to link /mnt/ to right place but that didn't help.

Image

Where information about podcasts is located?