OS X Installer - 0.28.1

For discussion of topics specific to MythTV on OSX

OS X Installer - 0.28.1

Postby pvr4me » Wed Feb 15, 2017 3:29 pm

Hello Mac users:

Well, it has been a long time coming but I’m pleased to announce a new all-in-one installer for MythTV 0.28 on OS X (aka macOS). This one is really a big step forward for new users: no more Terminal commands required!

What's changed?
+ up-to-date version of MythTV 0.28.1 from the Fixes-0.28 branch.
+ install process simplified--no more Terminal commands required to get the database up and running!!
+ WebFrontend -- check out the initial version of the planned replacement for MythWeb
+ lots of pesky little things (like fonts) are fixed.
- Now requires OS X version 10.9 or later.

https://sourceforge.net/projects/macpor ... installer/

As usual, the installer (built with MacPorts) provides everything for a self-contained Mac-based system:
-backend and database (MariaDB)
-frontend (including selected plugins)
-Perl, Python and PHP bindings
-Both WebFrontend and MythWeb, for accessing and controlling your Myth system via a web browser
-all the support programs and packages to make everything 'just work'!

Updated instructions are at:

http://www.mythtv.org/wiki/MacPorts

Enjoy! Please post with any problems or issues here on the OS X forum.

Craig
The MacPorts guy.
User avatar
Canadapvr4me
Senior
 
Posts: 543
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada

Re: OS X Installer - 0.28.1

Postby leejk » Wed Feb 15, 2017 5:48 pm

Thank you sir! I'll try it out this weekend.
leejk
Junior
 
Posts: 59
Joined: Wed Mar 18, 2015 1:51 am

Re: OS X Installer - 0.28.1

Postby grayman001 » Sat Feb 18, 2017 2:12 am

Thanks for all your support for the community and releasing the latest version Craig.

Much appreciated :)
Australiagrayman001
Junior
 
Posts: 19
Joined: Thu Jul 24, 2014 8:52 am

Re: OS X Installer - 0.28.1

Postby karlshea » Mon Apr 10, 2017 12:02 am

I only need frontend, and already have MySQL installed. Is there any way to only install the applications instead of everything else?
karlshea
Newcomer
 
Posts: 4
Joined: Wed Apr 29, 2015 5:15 pm

Re: OS X Installer - 0.28.1

Postby pvr4me » Mon Apr 10, 2017 12:39 am

karlshea wrote:I only need frontend, and already have MySQL installed. Is there any way to only install the applications instead of everything else?

I'm not sure if you mean the database and backend are already running on this Mac or on another machine on the network? The installer starts the database which could be a problem. Need to check something...

Craig
The MacPorts guy.
User avatar
Canadapvr4me
Senior
 
Posts: 543
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada

Re: OS X Installer - 0.28.1

Postby pvr4me » Mon Apr 10, 2017 12:55 am

If you install with the all-in-one installer, you may stop the included database with the following command:

Code: Select all
sudo launchctl unload /Library/LaunchDaemons/org.macports.mariadb-server.plist


You will have to supply your administrator's password. If it works, you'll just get the command prompt--for errors it will bark something.

Craig
The MacPorts guy.
User avatar
Canadapvr4me
Senior
 
Posts: 543
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada

Re: OS X Installer - 0.28.1

Postby karlshea » Mon Apr 10, 2017 4:44 am

My Myth backend is on another machine, but I have MySQL installed and running locally for web development.

Thanks anyways, I'm going to just give up running Myth frontend on this Mac. I wanted to be able to change some settings that only frontend can do, but it's not worth the hassle.

I tried building it myself, but the docs for building on the Mac are really outdated and osx-packager-qtsdk.pl isn't updated to work with the newest XCode or even knows where to download the archived Qt version it seems to need. It's now failing trying to build Qt5Sql and my willingness to get this working is over.
karlshea
Newcomer
 
Posts: 4
Joined: Wed Apr 29, 2015 5:15 pm

Re: OS X Installer - 0.28.1

Postby pvr4me » Mon Apr 10, 2017 12:02 pm

Have you tried the pre-built bundled apps?

https://sourceforge.net/projects/mythtvformacosx/files/

The frontend was updated last September but should still be compatible with any 0.28 backend.

Craig
The MacPorts guy.
User avatar
Canadapvr4me
Senior
 
Posts: 543
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada

Re: OS X Installer - 0.28.1

Postby karlshea » Mon Apr 10, 2017 4:53 pm

I was using those builds previously, but they seem to have problems with a 0.28.1 backend. They attempt db schema updates on launch, and are very crashy (at least on Sierra, not sure if it's a backend compatibility issue or a Sierra issue—I use frontend on this Mac infrequently so I don't have a good sense of which side might be the issue).
karlshea
Newcomer
 
Posts: 4
Joined: Wed Apr 29, 2015 5:15 pm

Re: OS X Installer - 0.28.1

Postby tvdave » Sun Apr 30, 2017 5:26 am

Hi Craig,

I attempted to run the installer to upgrade form 0.27.4 (your last all in one build) to 0.28.1. The script seems to run, MythTV came up, wanted to upgrade the database but I couldn't get LiveTV to work. I rebooted the Mac (running Sierra 12.4 - current version) and the backend has not started since.

Here is the log
2017-04-30 15:15:36.584195 C [1113/775] thread_unknown mythcommandlineparser.cpp:2599 (ConfigureLogging) - mythbackend version: fixes/0.28 [v0.28.1-03f44039-MacPorts] www.mythtv.org
2017-04-30 15:15:36.584224 C [1113/775] thread_unknown mythcommandlineparser.cpp:2601 (ConfigureLogging) - Qt version: compile: 5.6.2, runtime: 5.6.2
2017-04-30 15:15:36.584231 N [1113/775] thread_unknown mythcommandlineparser.cpp:2603 (ConfigureLogging) - Enabled verbose msgs: general
2017-04-30 15:15:36.584322 N [1113/775] thread_unknown logging.cpp:920 (logStart) - Setting Log Level to LOG_INFO
2017-04-30 15:15:36.600116 I [1113/8963] Logger logging.cpp:313 (run) - Added logging to the console
2017-04-30 15:15:36.600821 I [1113/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Interrupt: 2 handler
2017-04-30 15:15:36.600836 I [1113/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Terminated: 15 handler
2017-04-30 15:15:36.600848 I [1113/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Segmentation fault: 11 handler
2017-04-30 15:15:36.600859 I [1113/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Abort trap: 6 handler
2017-04-30 15:15:36.600880 I [1113/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Bus error: 10 handler
2017-04-30 15:15:36.600897 I [1113/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Floating point exception: 8 handler
2017-04-30 15:15:36.600910 I [1113/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Illegal instruction: 4 handler
2017-04-30 15:15:36.600936 I [1113/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Hangup: 1 handler
2017-04-30 15:15:36.601046 N [1113/775] thread_unknown mythdirs.cpp:192 (InitializeMythDirs) - Using runtime prefix = /opt/dvr
2017-04-30 15:15:36.601065 N [1113/775] thread_unknown mythdirs.cpp:194 (InitializeMythDirs) - Using configuration directory = /opt/dvr/var/mythtvuser/.mythtv
2017-04-30 15:15:36.601226 I [1113/775] CoreContext mythcorecontext.cpp:266 (Init) - Assumed character encoding:
2017-04-30 15:15:36.601248 W [1113/775] CoreContext mythcorecontext.cpp:273 (Init) - This application expects to be running a locale that specifies a UTF-8 codeset, and many features may behave improperly with your current language settings. Please set the LC_ALL or LC_CTYPE, and LANG variable(s) in the environment in which this program is executed to include a UTF-8 codeset (such as 'en_US.UTF-8').
2017-04-30 15:15:36.602394 N [1113/775] CoreContext mythcontext.cpp:505 (LoadDatabaseSettings) - Empty LocalHostName.
2017-04-30 15:15:36.602409 I [1113/775] CoreContext mythcontext.cpp:513 (LoadDatabaseSettings) - Using localhost value of Media.local
2017-04-30 15:15:36.616606 N [1113/775] CoreContext mythcorecontext.cpp:1670 (InitLocale) - Setting QT default locale to en_AU
2017-04-30 15:15:36.616622 I [1113/775] CoreContext mythcorecontext.cpp:1703 (SaveLocaleDefaults) - Current locale en_AU
2017-04-30 15:15:36.616659 E [1113/775] CoreContext mythlocale.cpp:110 (LoadDefaultsFromXML) - No locale defaults file for en_AU, skipping
2017-04-30 15:15:36.617244 I [1113/775] CoreContext mythtranslation.cpp:73 (load) - Loading en_gb translation for module mythfrontend
2017-04-30 15:15:36.618666 E [1113/775] CoreContext main_helpers.cpp:563 (run_backend) - MySQL time zone support is missing. Please install it and try again. See 'mysql_tzinfo_to_sql' for assistance.
2017-04-30 15:15:36.766414 I [1113/8707] LogForward loggingserver.cpp:142 (FileLogger) - Added logging to /opt/dvr/var/log/mythtv.28/mythbackend.20170430051536.1113.log

It seems to be referring to MySQL but as far as I can tell I am running the MariaDB. There are no MySQL folders that I can see.

Attempting to run MythTV setup crashes out badly - here is the log
017-04-30 15:04:20.923947 I [1068/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Interrupt: 2 handler
2017-04-30 15:04:20.923984 I [1068/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Terminated: 15 handler
2017-04-30 15:04:20.923991 I [1068/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Segmentation fault: 11 handler
2017-04-30 15:04:20.923996 I [1068/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Abort trap: 6 handler
2017-04-30 15:04:20.924001 I [1068/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Bus error: 10 handler
2017-04-30 15:04:20.924007 I [1068/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Floating point exception: 8 handler
2017-04-30 15:04:20.924012 I [1068/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Illegal instruction: 4 handler
2017-04-30 15:04:20.924020 I [1068/775] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Hangup: 1 handler
2017-04-30 15:04:20.924140 C [1068/775] thread_unknown mythcommandlineparser.cpp:2599 (ConfigureLogging) - mythtv-setup version: fixes/0.28 [v0.28.1-03f44039-MacPorts] www.mythtv.org
2017-04-30 15:04:20.924146 C [1068/775] thread_unknown mythcommandlineparser.cpp:2601 (ConfigureLogging) - Qt version: compile: 5.6.2, runtime: 5.6.2
2017-04-30 15:04:20.924150 N [1068/775] thread_unknown mythcommandlineparser.cpp:2603 (ConfigureLogging) - Enabled verbose msgs: general
2017-04-30 15:04:20.924240 N [1068/775] thread_unknown logging.cpp:920 (logStart) - Setting Log Level to LOG_INFO
2017-04-30 15:04:20.935692 I [1068/30723] Logger logging.cpp:313 (run) - Added logging to the console
2017-04-30 15:04:21.039514 I [1068/30467] LogForward loggingserver.cpp:142 (FileLogger) - Added logging to /opt/dvr/var/log/mythtv.28/mythtv-setup.20170430050420.1068.log
2017-04-30 15:04:21.139070 N [1068/775] thread_unknown mythdirs.cpp:192 (InitializeMythDirs) - Using runtime prefix = /opt/dvr
2017-04-30 15:04:21.139085 N [1068/775] thread_unknown mythdirs.cpp:194 (InitializeMythDirs) - Using configuration directory = /Users/media/.mythtv
2017-04-30 15:04:21.139249 I [1068/775] CoreContext mythcorecontext.cpp:266 (Init) - Assumed character encoding:
2017-04-30 15:04:21.139278 W [1068/775] CoreContext mythcorecontext.cpp:273 (Init) - This application expects to be running a locale that specifies a UTF-8 codeset, and many features may behave improperly with your current language settings. Please set the LC_ALL or LC_CTYPE, and LANG variable(s) in the environment in which this program is executed to include a UTF-8 codeset (such as 'en_US.UTF-8').
2017-04-30 15:04:21.140191 N [1068/775] CoreContext mythcontext.cpp:505 (LoadDatabaseSettings) - Empty LocalHostName.
2017-04-30 15:04:21.140202 I [1068/775] CoreContext mythcontext.cpp:513 (LoadDatabaseSettings) - Using localhost value of Media.local
2017-04-30 15:04:21.158539 N [1068/775] CoreContext mythcorecontext.cpp:1670 (InitLocale) - Setting QT default locale to en_AU
2017-04-30 15:04:21.158557 I [1068/775] CoreContext mythcorecontext.cpp:1703 (SaveLocaleDefaults) - Current locale en_AU
2017-04-30 15:04:21.158595 E [1068/775] CoreContext mythlocale.cpp:110 (LoadDefaultsFromXML) - No locale defaults file for en_AU, skipping
2017-04-30 15:04:21.791291 E [1068/775] CoreContext lirc.cpp:208 (Init) - LIRC: Failed to connect to Unix socket '/var/run/lirc/lircd'
eno: No such file or directory (2)
2017-04-30 15:04:21.814216 I [1068/775] CoreContext mythudplistener.cpp:32 (Enable) - UDPListener: Enabling
2017-04-30 15:04:21.817104 I [1068/775] CoreContext serverpool.cpp:508 (bind) - Binding to UDP 127.0.0.1:6948
2017-04-30 15:04:21.817221 I [1068/775] CoreContext serverpool.cpp:508 (bind) - Binding to UDP 192.168.0.225:6948
2017-04-30 15:04:21.817322 I [1068/775] CoreContext serverpool.cpp:508 (bind) - Binding to UDP [::1]:6948
2017-04-30 15:04:21.817496 I [1068/775] CoreContext serverpool.cpp:508 (bind) - Binding to UDP [fe80::1%lo0]:6948
2017-04-30 15:04:21.817629 I [1068/775] CoreContext serverpool.cpp:508 (bind) - Binding to UDP [fe80::c2d:e30c:dad3:c135%en0]:6948
2017-04-30 15:04:21.817749 I [1068/775] CoreContext serverpool.cpp:508 (bind) - Binding to UDP [fe80::d3fb:868:f71c:430d%utun0]:6948
2017-04-30 15:04:21.817813 I [1068/775] CoreContext serverpool.cpp:508 (bind) - Binding to UDP 192.168.0.255:6948
2017-04-30 15:04:21.871729 N [1068/775] CoreContext DisplayRes.cpp:64 (Initialize) - Desktop video mode: 1920x1080 60.000 Hz
2017-04-30 15:04:21.917248 I [1068/775] CoreContext mythtranslation.cpp:73 (load) - Loading en_gb translation for module mythfrontend
2017-04-30 15:04:21.919239 I [1068/775] CoreContext mythmainwindow.cpp:1041 (Init) - Using Frameless Window
2017-04-30 15:04:21.919249 I [1068/775] CoreContext mythmainwindow.cpp:1052 (Init) - Using Full Screen Window
2017-04-30 15:04:21.919921 I [1068/775] CoreContext mythmainwindow.cpp:1079 (Init) - UI Screen Resolution: 1920 x 1080
2017-04-30 15:04:22.007414 I [1068/775] CoreContext mythmainwindow.cpp:1185 (Init) - Using the Qt painter
2017-04-30 15:04:25.391452 I [1068/775] CoreContext mythuiwebbrowser.cpp:1090 (LoadUserStyleSheet) - MythUIWebBrowser: Loading css from - file:///opt/dvr/share/mythtv/themes/default/htmls/mythbrowser.css
2017-04-30 15:04:25.393953 I [1068/775] CoreContext mythuiwebbrowser.cpp:997 (Init) - MythUIWebBrowser: enabling plugins
2017-04-30 15:04:25.459886 E [1068/775] CoreContext main.cpp:533 (main) - MySQL time zone support is missing. Please install it and try again. See 'mysql_tzinfo_to_sql' for assistance.
2017-04-30 15:04:25.685205 C [1068/775] CoreContext mthread.cpp:128 (~MThread) - MThread epilog was never run!

I am attempting to restore back to 0.27 but I am not sure what went wrong.

Any ideas?
Australiatvdave
Junior
 
Posts: 48
Joined: Sun Jun 29, 2014 10:11 am

Re: OS X Installer - 0.28.1

Postby pvr4me » Sun Apr 30, 2017 3:24 pm

Hmm, the following seems to be the problem:

Code: Select all
2017-04-30 15:15:36.618666 E [1113/775] CoreContext main_helpers.cpp:563 (run_backend) - MySQL time zone support is missing. Please install it and try again. See 'mysql_tzinfo_to_sql' for assistance.

I don't understand how this is possible?!?

You had a working 0.27.x installation, right? If so, your database had to have the time zone support tables loaded.

The installer checks for an existing database and leaves it alone if found. All your data from 0.27 should have been updated to 0.28 the first time the backend or mythtv-setup were run.

Do you have another mysql database running on this machine or elsewhere on the network? Perhaps Myth is latching onto some other database server?

If that is not the case, could you please run the all-in-one installer again and BEFORE you quit the installer, save the full install log. Attach it here and perhaps we can figure out what is going on.

Craig
The MacPorts guy.
User avatar
Canadapvr4me
Senior
 
Posts: 543
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada

Re: OS X Installer - 0.28.1

Postby lastrider » Wed Jun 28, 2017 8:28 pm

I've tried the all-in-one installer,

But the pre-filled database details don't seem to work during the setup.

It maybe because I tried the build setup prior and ended up removing all the files but something must have remained because the setup just doesn't work.
United States of Americalastrider
Newcomer
 
Posts: 1
Joined: Wed Jun 28, 2017 8:26 pm

Re: OS X Installer - 0.28.1

Postby pvr4me » Thu Jun 29, 2017 12:59 pm

lastrider wrote:I've tried the all-in-one installer,

But the pre-filled database details don't seem to work during the setup.

It maybe because I tried the build setup prior and ended up removing all the files but something must have remained because the setup just doesn't work.

I'd be glad to help but I need some more specifics. You "tried the build setup"--do you mean you installed XCode and MacPorts and tried 'sudo port install mythtv.28 +blah+blah' or something else?

Also, please attach the log from your attempts to run mythtv-setup.

Craig
The MacPorts guy.
User avatar
Canadapvr4me
Senior
 
Posts: 543
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada

Re: OS X Installer - 0.28.1

Postby MoisiePants » Fri Jul 14, 2017 8:43 pm

Hello,

Finally got myself a Mac which supports a modern version of OS X (El Cap maximum), so have been able to upgrade from my previous installation (running Myth 0.27 on OS X 10.7.5). I'm a very competent Mac user - but not everyday-familiar with the intricacies of Unix - so I hope this might be useful for someone with a similar outlook as me.

I was able to export the database from the old installation without problem - but kept running into a problem importing the database into the new installation; sorry - I can't get to the exact error message at the moment - but it made reference to not being able to find the mysql command.

I couldn't find this written down anywhere, but I was able to resolve it by running the following in Terminal:

Code: Select all
export PATH=$PATH:/opt/dvr/bin:/opt/dvr/sbin:/opt/dvr/lib/mariadb/bin


Craig - can this be added to the installer in the future? And thanks so much for your work for the community!


Thanks,

Pants.
Great BritainMoisiePants
Newcomer
 
Posts: 4
Joined: Sat Jul 23, 2016 11:41 am

Re: OS X Installer - 0.28.1

Postby pvr4me » Sun Jul 16, 2017 3:30 pm

MoisiePants wrote:Hello,

Finally got myself a Mac which supports a modern version of OS X (El Cap maximum), so have been able to upgrade from my previous installation (running Myth 0.27 on OS X 10.7.5). I'm a very competent Mac user - but not everyday-familiar with the intricacies of Unix - so I hope this might be useful for someone with a similar outlook as me.

I was able to export the database from the old installation without problem - but kept running into a problem importing the database into the new installation; sorry - I can't get to the exact error message at the moment - but it made reference to not being able to find the mysql command.

I couldn't find this written down anywhere, but I was able to resolve it by running the following in Terminal:

Code: Select all
export PATH=$PATH:/opt/dvr/bin:/opt/dvr/sbin:/opt/dvr/lib/mariadb/bin


Craig - can this be added to the installer in the future? And thanks so much for your work for the community!


Ah, yes, the MySQL to MariaDB migration after October 2014. I had the details documented at the time:

https://www.mythtv.org/wiki?title=MacPo ... _Migration

I removed this portion of the docs after a year or so since it was becoming very confusing for people to figure out if it applied or not.

The issue is/was that a user had to carefully specify to create the backup out of the OLD database and restore it to the NEW database. The documented procedure tried to walk folks through that process. I had little feedback on how many people actually did this as opposed to just creating a new database from scratch.

As for the PATH, the idea of the all-in-one installer is that a user shouldn't need to run stuff from the command line. If/when they do, they can just specify the full path the executable so there is no ambiguity about what is being run.

Incidentally, it can be rather complex to ensure a PATH is set properly. Not everybody uses the default (bash) and there are a couple of different files that may be used to set up the PATH.

Craig
The MacPorts guy.
User avatar
Canadapvr4me
Senior
 
Posts: 543
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada


Return to OSX



Who is online

Users browsing this forum: No registered users and 2 guests