![]() |
|
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. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
try setting
Code:
export DEBIAN_FRONTEND=noninteractive 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?
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
|||
|
|||
Quote:
__________________
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 |
#4
|
||||
|
||||
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).
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#5
|
|||
|
|||
Quote:
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 |
#6
|
||||
|
||||
Quote:
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
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#7
|
||||
|
||||
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 |
#8
|
|||
|
|||
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 |
#9
|
|||
|
|||
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 |
#10
|
|||
|
|||
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 |
#11
|
||||
|
||||
If you post what the output is; I can tell you if it is coming from the Sage.jar file or not.
__________________
Jeffrey Kardatzke Founder of SageTV |
#12
|
|||
|
|||
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 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 |
#13
|
||||
|
||||
Those both look normal. If you turn on debug_logging; is there anything in sagetv_0.txt?
__________________
Jeffrey Kardatzke Founder of SageTV |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
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 |