SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-05-2016, 10:04 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Linux Trouble Starting Service

I'm on the last Ubuntu LTS, 14.04 32-bit with Java 7. Mainly because SageTV won't build under the latest Ubuntu versions.

When I try to start the SageTV service it gets stuck on "Main is starting". The service seems to load ok but it won't complete the script. This is a problem when I install with dpkg. When I hit ctrl-c to break the script it puts dpkg in a locked state and messes things up.

Going to create a new Ubuntu 15.10 64-bit vm to test on to see if it has the same problem.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #2  
Old 04-05-2016, 10:15 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
try setting

Code:
export DEBIAN_FRONTEND=noninteractive
before running dpkg -i

I think the activation key request is causing issues.

The other thing is that we don't publish 32bit packages, so, if you are installing those, I'm assuming that you built them yourself?
Reply With Quote
  #3  
Old 04-05-2016, 10:27 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stuckless View Post
try setting

Code:
export DEBIAN_FRONTEND=noninteractive
before running dpkg -i

I think the activation key request is causing issues.

The other thing is that we don't publish 32bit packages, so, if you are installing those, I'm assuming that you built them yourself?
That didn't work. Yes, I'm building them myself.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #4  
Old 04-05-2016, 10:40 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Taddeusz View Post
That didn't work. Yes, I'm building them myself.
I built a docker container the other day, and I know people are saying the "installer hangs", but I've never seen this myself

I even have 2 vagrant images that I use for testing as well, and I don't experience it there either.

Certainly there are times when you run dpkg -i that it will run post ininit scripts and start a service, etc, and it might appear as the command line went away, but pressing enter usually restores the command line. (I have seen this happen from time to time with other installs, but it's not blocked, it's just finished, and the console UI hasn't updated).
Reply With Quote
  #5  
Old 04-05-2016, 10:43 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stuckless View Post
I built a docker container the other day, and I know people are saying the "installer hangs", but I've never seen this myself

I even have 2 vagrant images that I use for testing as well, and I don't experience it there either.

Certainly there are times when you run dpkg -i that it will run post ininit scripts and start a service, etc, and it might appear as the command line went away, but pressing enter usually restores the command line. (I have seen this happen from time to time with other installs, but it's not blocked, it's just finished, and the console UI hasn't updated).
Sorry, I forgot to mention that it also happens when just starting the service by doing:

Code:
sudo service sagetv start
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #6  
Old 04-05-2016, 11:19 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Taddeusz View Post
Sorry, I forgot to mention that it also happens when just starting the service by doing:

Code:
sudo service sagetv start
not sure that is the right way for Ubuntu 14...

try

sudo /etc/init.d/sagetv start

SageTV doesn't use the newer service api.

SageTV starts in the background... and as I said, the cursor might not return immediately, but pressing enter, should get the curso back... i restart start like this every couple of weeks on my server.

If sagetv is already started (or if you don't know), then use

sudo /etc/init.d/sagetv restart
Reply With Quote
  #7  
Old 04-05-2016, 11:27 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
I have seen it hang on Ubuntu 14.04, Fedora 22 and 23 when starting the service when I was using OpenJDK. I installed Oracle and that appeared to fix it. I've also seen when it returns you to the terminal, but not actually show the prompt. Pressing Enter always fixes that for me, but when it hangs, I can hit Ctrl-C and SageTV is definitely not running.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #8  
Old 04-05-2016, 01:18 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Just tried doing this with Oracle Java 7 and it gives me the same problem.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #9  
Old 04-05-2016, 06:42 PM
SageWizdom SageWizdom is offline
Sage Advanced User
 
Join Date: Oct 2013
Location: https://github.com/SageWizdom/SageConnect
Posts: 216
Did you use the script from this post?

http://forums.sagetv.com/forums/showthread.php?t=63026

This script is trying to do everything in a 64bit way. Not that I am only advocating for 64bit, but it may matter if you're on 32.

I would also offer that if you kill the script (at the install point where it gets stuck), I would encourage shutting down Sage (sudo service sagetv stop) and then re-running the script as it will attempt to validate what it has already done, and do the rest of the install.

If Sage isn't running at all... there may be a couple of problems.

A) if you used the script, you may now have multiple versions of Java installed
B) you may or may not have incorrect java paths set

Did you try running Sage manually?

/opt/sagetv/server/startsage

it should attempt to run, and should worst case give you a log file that might be more helpful (in the same directory).
__________________
Server: Centos Server 14.04 LTS - 64Bit, VM in XenServer, 2 cores of a Intel i7, 2-4 GB Ram, 8 GB system Disk, 1.8 TB storage, SageTV V9.0.4.232, HDHR Prime x 1

Clients: PC Client x 1, HD-300 x 1, AppleTV x 2, WebClient (phone/tablet) x 3
Reply With Quote
  #10  
Old 04-06-2016, 03:14 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
No, I don't use that install script. I have only HDHR tuners. I see no need to use OpenDCT.

Just to report. Since the latest available pre-built version is behind I used an Ubuntu 14.10 x64 vm to build the latest version. Then installed in an Ubuntu 15.10 x64 vm. It installs and runs fine without the same service starting issues as on 14.10. Not sure why the difference.

BTW, the error occurs during the startsage script. Since the output doesn't correspond with anything in the script I assume the output comes from the Sage.jar itself.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #11  
Old 04-07-2016, 11:00 AM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
If you post what the output is; I can tell you if it is coming from the Sage.jar file or not.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #12  
Old 04-07-2016, 11:39 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Here is the output from startsage. Hitting ENTER at this point brings back the prompt. During installation hitting ENTER doesn't do anything.

Code:
jbean@sagetest32:/opt/sagetv/server$ sudo ./startsage
Changing to SageTV directory /opt/sagetv/server/.
jbean@sagetest32:/opt/sagetv/server$ Executing pre-scripts
Starting server mode
Main is starting
There's also a difference in the stopsage output that I noticed. It shows "." as it's waiting for it to stop. This doesn't happen on newer versions of Ubuntu.

Code:
jbean@sagetest32:/opt/sagetv/server$ sudo ./stopsage 
Changing to SageTV directory /opt/sagetv/server/.
.
.
.
.
.
.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #13  
Old 04-08-2016, 11:50 AM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Those both look normal. If you turn on debug_logging; is there anything in sagetv_0.txt?
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Still trouble starting movies from SMM radiopaque Sage My Movies 22 08-14-2010 12:15 PM
Trouble starting SageTV service after moving PCs gtallan SageTV Software 3 10-28-2009 12:29 PM
When running as service why does starting Sage UI say SageTV Service is initializing? GollyJer SageTV Software 2 12-27-2006 09:59 AM
After starting the service..why did this happen. rdefino SageTV Software 2 10-14-2006 12:57 PM
SageTV V4 Service not starting sfisher SageTV Software 6 12-05-2005 03:51 PM


All times are GMT -6. The time now is 02:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.