Jump to content

Localhost connection refused / Emby running but blank log


Recommended Posts

Posted

Hi there,

 

Would very much appreciate some help if possible please.

 

I am setting up Emby in a Ubuntu server VM, but although Emby appears to be running I cannot access localhost.

 

The install steps followed were:

 

wget http://download.opensuse.org/repositories/home:/emby/xUbuntu_14.04/Release.key
sudo apt-key add - < Release.key

 

sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/emby/xUbuntu_14.04//' >> /etc/apt/sources.list.d/emby-server.list"
sudo apt-get update
sudo apt-get install emby-server

 

 

From terminal "sudo service emby-server start" reports "Job is already running" I therefore assume Emby is running.

 

However I get 'connection refused' for localhost:8096 when using a browser inside the VM; and the same from another PC on the network when accessing the VM's IP:8096

 

I've checked the /var/log/emby-server.log file and it is completely blank, otherwise would post.

 

I have tried a purge and reinstall and just got back to the exact same position, and don't really know what to do next.

 

The VM has internet and network connectivity, I can ping from other local network PC's and share files via Samba.

 

Appreciate any help, and let me know if there are additional details I can provide.

hurricanehrndz
Posted

Hi there,

 

Would very much appreciate some help if possible please.

 

I am setting up Emby in a Ubuntu server VM, but although Emby appears to be running I cannot access localhost.

 

The install steps followed were:

 

wget http://download.opensuse.org/repositories/home:/emby/xUbuntu_14.04/Release.key

sudo apt-key add - < Release.key

 

sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/emby/xUbuntu_14.04//' >> /etc/apt/sources.list.d/emby-server.list"

sudo apt-get update

sudo apt-get install emby-server

 

 

From terminal "sudo service emby-server start" reports "Job is already running" I therefore assume Emby is running.

 

However I get 'connection refused' for localhost:8096 when using a browser inside the VM; and the same from another PC on the network when accessing the VM's IP:8096

 

I've checked the /var/log/emby-server.log file and it is completely blank, otherwise would post.

 

I have tried a purge and reinstall and just got back to the exact same position, and don't really know what to do next.

 

The VM has internet and network connectivity, I can ping from other local network PC's and share files via Samba.

 

Appreciate any help, and let me know if there are additional details I can provide.

Can you please check if the process is actually running? 

ps -aux | grep emby

Posted

Can you please check if the process is actually running? 

ps -aux | grep emby

 

Thank you for checking in!

 

I decided to retrace my steps and go through the process again, having taken a VM snapshot prior to installing Emby.

 

ps -aux | grep emby is now reporting the below (which is less than it was showing previously):

"myadminusername" 3317 0.0 0.0 11752 2184 tty2 S+ 00:01 0:00 grep --color=auto emby

 

With Emby installed, I note the Ubuntu boot process shows a bunch of "Starting emby server daemon" lines, all OK but the 8th shows as [fail] and is followed by stopping the daemon.

 

Am I missing anything per the steps here - https://software.opensuse.org/download.html?project=home%3Aemby&package=emby-server?

I also tried another snapshot installing mono-runtime, mediainfo and libsqlite3-dev prior to Emby to see if that made a difference.  No luck.

 

What's more worrying is that installing Emby appears to break 'Lubuntu desktop' - I can't quite operate in terminal mode 100% of the time yet.  Logging in as admin user simply brings up the desktop background and no functionality.  Logging in as a guest however is fine.

I've tested this with a snapshot with working desktop, and only making one change to install Emby, and thereafter the desktop does not work for the admin user.

hurricanehrndz
Posted

We need to figure why emby is not starting and not running because it seems like it is not running. Without any logs or output from the console it becomes extremely difficult to help. Can you please provide as much technical info as possible suck as distro version, kernel version and any logs that have any messages about emby starting. See if there is any entries in syslog. I will boot up a vm in the meantime for 14.04 and ensure that it is working on a vanilla install

 

Sent from my D6603 using Tapatalk

Posted

Thank you very much, I know it is hard to help remotely!  Very much appreciated.  I will try to report as much as I can here, just let me know what to look for.

 

"lsb_release" = Ubuntu 14.04.3 LTS 'Trusty'

 

"uname" = Linux ubuntu-server 3.19.0-47-generic #53~14.04.1-Ubuntu SMP

 

Very close to a vanilla install - basically Lubuntu 'core' desktop and Samba - and have "snapshots" before every package I've installed.

 

"ls -lah" of /var/lib/emby-server/ is empty and reports:

       drwxr-xr-x 2 emby emby 4.0K 

       drwxr-xr-x 66 root root 4.0K 

 

"grep emby /var/log/syslog" gives:

       ubuntu-server /proc/self/fd/9: DEBUG ....     (long line)     .... #012UPSTART_JOB='emby-server'

       init: emby-server main process (4921) terminated with status 1

       init: emby-server main process ended, respawning

 

Re: any logs or files you want me to check, please let me know location/command and I'll report.

Posted (edited)

I had this exact problem tonight. For a week or so now i've been having to restart my Emby VM about once a day because the Emby for Kodi plugin could not connect. Tonight it was far worse and Emby was dropping out consistently within 5 mins of booting. The Kodi plugin would drop connection and i'd get connection refused when attempting to access the web interface. Logging in over SSH i was able to identify Emby was crashing for some reason. 

 

Skimming /var/lib/emby-server/logs i saw something about thetvdb plugin fetchepisodedata errors. After restarting Emby i quickly removed thetvdb from Settings > Metadata > Services > Episodes. Lo and behold no more crashes, it's been up for over an hour now. 

 

 

EDIT error report from log:

*** Error Report ***
	Version: 3.0.5818.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 4.2.6.1
	Processor count: 4
	64-Bit OS: True
	64-Bit Process: True
	Program data path: /var/lib/emby-server
	Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Dec  3 03:58:58 UTC 2015)
	Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
	Root element is missing.
	System.Xml.XmlException
	  at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) <0x40587640 + 0x000a7> in <filename unknown>:0 
	  at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo (System.String res) <0x405870c0 + 0x00077> in <filename unknown>:0 
	  at System.Xml.XmlTextReaderImpl.ParseDocumentContent () <0x4139f720 + 0x00663> in <filename unknown>:0 
	  at System.Xml.XmlTextReaderImpl.Read () <0x4139bba0 + 0x00067> in <filename unknown>:0 
	  at System.Xml.XmlReader.MoveToContent () <0x4139ba30 + 0x00084> in <filename unknown>:0 
	  at MediaBrowser.Providers.TV.TvdbEpisodeProvider.FetchMainEpisodeInfo (MediaBrowser.Controller.Providers.MetadataResult`1 result, System.Xml.XmlReader reader, CancellationToken cancellationToken) <0x405709a0 + 0x000dd> in <filename unknown>:0 
	  at MediaBrowser.Providers.TV.TvdbEpisodeProvider.FetchEpisodeData (MediaBrowser.Controller.Providers.EpisodeInfo id, MediaBrowser.Providers.TV.EpisodeNumbers searchNumbers, System.String seriesDataPath, CancellationToken cancellationToken) <0x4053d140 + 0x0022f> in <filename unknown>:0 
	  at MediaBrowser.Providers.TV.TvdbEpisodeProvider+<GetMetadata>c__async1.MoveNext () <0x4053c850 + 0x0065b> in <filename unknown>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7fa7d63866d0 + 0x00029> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7fa7d63846b0 + 0x000a7> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7fa7d6384630 + 0x0006b> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7fa7d63845e0 + 0x0003a> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7fa7d6384d10 + 0x00017> in <filename unknown>:0 
	  at MediaBrowser.Providers.Manager.MetadataService`2+<ExecuteRemoteProviders>c__async7[TItemType,TIdType].MoveNext () <0x4130c310 + 0x00686> in <filename unknown>:0 
Edited by gurgle
hurricanehrndz
Posted

Thank you very much, I know it is hard to help remotely!  Very much appreciated.  I will try to report as much as I can here, just let me know what to look for.

 

"lsb_release" = Ubuntu 14.04.3 LTS 'Trusty'

 

"uname" = Linux ubuntu-server 3.19.0-47-generic #53~14.04.1-Ubuntu SMP

 

Very close to a vanilla install - basically Lubuntu 'core' desktop and Samba - and have "snapshots" before every package I've installed.

 

"ls -lah" of /var/lib/emby-server/ is empty and reports:

       drwxr-xr-x 2 emby emby 4.0K 

       drwxr-xr-x 66 root root 4.0K 

 

"grep emby /var/log/syslog" gives:

       ubuntu-server /proc/self/fd/9: DEBUG ....     (long line)     .... #012UPSTART_JOB='emby-server'

       init: emby-server main process (4921) terminated with status 1

       init: emby-server main process ended, respawning

 

Re: any logs or files you want me to check, please let me know location/command and I'll report.

Hmm, 

 

Yeah there is nothing useful there.

 

As a normal user and root can you please run `/usr/local/bin/emby-server 

Posted

Hmm, 

 

Yeah there is nothing useful there.

 

As a normal user and root can you please run `/usr/local/bin/emby-server 

 

ls -lah of /usr/local/bin/ doesn't show emby-server at all.

 

I've just gone to my very base VM snapshot and tried to install.  It successfully installed Emby and I could connect via the IP address.  ps -aux | grep emby returned a bunch of lines this time, so it is working on vanilla Ubuntu 14.04.

 

Unfortunately between the base VM snapshot and the current one I lose a bunch of other configured items - Samba and the like.  One of these must cause an issue?

 

It may just be easier for me to install Emby first and add back the other packages one at a time from there, will advise if I can pinpoint if any of these cause a specific issue.

hurricanehrndz
Posted

Sorry wrong location, /usr/bin/emby-sever

 

Sent from my D6603 using Tapatalk

Posted

Sorry wrong location, /usr/bin/emby-sever

 

Sent from my D6603 using Tapatalk

 

I ultimately went through and reinstalled from the base snapshot, but started with Emby first and then added my other packages.

 

For whatever reason this worked, not sure why it didn't work when installed in a different sequence.

 

Either way thank you very much for your help with this, very much appreciated!

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...