Fresh Install on Ubuntu - 404 Error

Need help? Post your questions here.

Moderator: moderators

Fresh Install on Ubuntu - 404 Error

Postby carbide20 » Sat May 13, 2017 9:04 pm

Problem Description: I just installed a fresh copy of Subsonic server 6.1 beta 2 on Ubuntu 17.04. The server is running, but I get a 404 page at http://localhost:4040

HTTP ERROR: 404

NOT_FOUND
RequestURI=/

Powered by jetty://


Troubleshooting Steps: Prior to installing Subsonic 6.1 b2 I attempted the same process with Subsonic 6.0 which gave me the same 404 error page. I only attempted 6.1 b2 in hopes that I would not receive this error. Current /etc/default/subsonic config is SUBSONIC_ARGS="--port=4040 --https-port=4433 --max-memory=1024"

it's worth noting that if I try using the machine's network ip/port from another computer on the network (http://192.168.1.x:4040) that I see the same 404 error page, 'powered by jetty', so I know the page is at least being served as part of the subsonic install.

Playback Application and version: Does not apply

Subsonic Version: N/A

Server Version: 6.1 b2 (also experienced similar issues with 6.0)

Hardware Platform: Ubuntu Linux 17.04

Java Memory Limit: I tried increasing the memory limit in /etc/default/subsonic all the way up to 1024 with no luck. My current config is: SUBSONIC_ARGS="--port=4040 --https-port=4433 --max-memory=1024"

Problem Filename: N/A

Output from ffmpeg -i:

I'm not sure what filename to pass to the -i argument, but here's the output:

Code: Select all
ffmpeg version 3.2.4-1build2 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.3.0 (Ubuntu 6.3.0-8ubuntu1) 20170221
  configuration: --prefix=/usr --extra-version=1build2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Missing argument for option 'i'.
Error splitting the argument list: Invalid argument


Last ten log file lines:
Code: Select all
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
        at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:118)
        ... 51 more
Caused by: java.lang.SecurityException: Can't read cryptographic policy directory: unlimited
        at java.base/javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:324)
        at java.base/javax.crypto.JceSecurity.access$000(JceSecurity.java:73)
        at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:109)
        at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:106)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:105)
        ... 51 more
8285 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Looking for RMI registry at port '9412'
15150 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Could not detect RMI registry - creating new one
[15.641s][info][gc] GC(5) Pause Young (G1 Evacuation Pause) 30M->13M(63M) 9.985ms
15567 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Binding service 'SubsonicDeployerService' to RMI registry: Registr$
[82.473s][info][gc] GC(6) Pause Initial Mark (Metadata GC Threshold) 16M->11M(63M) 9.428ms
[82.474s][info][gc] GC(7) Concurrent Cycle
[82.517s][info][gc] GC(7) Pause Remark 12M->12M(63M) 32.775ms
[82.531s][info][gc] GC(7) Pause Cleanup 12M->11M(63M) 0.162ms
[82.537s][info][gc] GC(7) Concurrent Cycle 63.093ms


checking the server status with service subsonic status looks good to me:

Code: Select all
● subsonic.service - LSB: Subsonic daemon
   Loaded: loaded (/etc/init.d/subsonic; generated; vendor preset: enabled)
   Active: active (running) since Sat 2017-05-13 19:03:31 EDT; 8s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 4731 ExecStop=/etc/init.d/subsonic stop (code=exited, status=0/SUCCESS)
  Process: 4771 ExecStart=/etc/init.d/subsonic start (code=exited, status=0/SUCCESS)
    Tasks: 23 (limit: 4915)
   CGroup: /system.slice/subsonic.service
           └─4786 java -Xmx1024m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=4433 -Dsub

May 13 19:03:31 xenon systemd[1]: Starting LSB: Subsonic daemon...
May 13 19:03:31 xenon subsonic[4771]: Started Subsonic [PID 4786, /var/subsonic/subsonic_sh.log]
May 13 19:03:31 xenon systemd[1]: Started LSB: Subsonic daemon.



EDIT - in further testing, I've found that if I remove the HTTPS port (--https-port=443) from my /etc/default/subsonic, the error changes from a 404 to a 503:
Code: Select all
SUBSONIC_ARGS="--port=4040 --max-memory=1024"


HTTP ERROR: 503

SERVICE_UNAVAILABLE
RequestURI=/

Powered by jetty://
carbide20
 
Posts: 6
Joined: Sun May 23, 2010 6:36 am

Re: Fresh Install on Ubuntu - 404 Error

Postby carbide20 » Tue May 16, 2017 5:48 pm

Additional info:

I also tried an install on the same server of Madsonic. I know it's no longer the same codebase, but the fact that the exact same error also happens with that may help someone with diagnosing this. Here's hoping someone has a solution! I'm using Emby until/unless I get Subsonic working, but it's nowhere near as good or widely supported. It's a shame Subsonic has been broken on this machine for days, my buddies are getting antsy about not being able to stream from our collection!
carbide20
 
Posts: 6
Joined: Sun May 23, 2010 6:36 am

Re: Fresh Install on Ubuntu - 404 Error

Postby Exrace » Wed May 17, 2017 5:35 am

What version of java are you running on this setup?
Exrace
 
Posts: 218
Joined: Thu Nov 11, 2010 5:02 am

Re: Fresh Install on Ubuntu - 404 Error

Postby carbide20 » Wed May 17, 2017 6:29 pm

Code: Select all
java -version

openjdk version "9-Ubuntu"
OpenJDK Runtime Environment (build 9-Ubuntu+0-9b161-1)
OpenJDK 64-Bit Server VM (build 9-Ubuntu+0-9b161-1, mixed mode)
carbide20
 
Posts: 6
Joined: Sun May 23, 2010 6:36 am


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests