Opened 8 years ago

Closed 8 years ago

#12673 closed Bug Report - General (Works for me)

Myth Music Schema Update Failed

Reported by: jheizer@… Owned by: paulh
Priority: major Milestone: unknown
Component: Plugin - MythMusic Version: 0.28.0
Severity: medium Keywords:
Cc: Ticket locked: no

Description

It appears the myth music plugin is attempting to upgrade the schema of the database. The Backup runs but then the frontend appears to closeat which point mythbuntu restarts it in an never ending cycle.

Please attach all output as a file in bug reports. MythTV Version : v0.28-pre-3592-g34c7003 MythTV Branch : fixes/0.28 Network Protocol : 88 Library API : 0.28.20160210-1 QT Version : 5.2.1 Options compiled in:

linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_crystalhd using_dvb using_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_opengl_video using_qtwebkit using_qtscript using_qtdbus using_sdl using_taglib using_v4l2 using_x11 using_xrandr using_xv using_profiletype using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_vaapi using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2

Attachments (1)

backup.log (331.8 KB) - added by jheizer@… 8 years ago.
Frontend log

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by jheizer@…

Attachment: backup.log added

Frontend log

comment:1 Changed 8 years ago by paulh

I've not verfied it myself but heard from other sources that the service that restarts the frontend in MythBuntu? is pretty dumb and just keeps restarting it without checking the exit code to see if it should try to start it. That is nothing to do with MythTV though it's a problem with MythBuntu?.

When the frontend starts does it ask you if you want to update the MythMusic database schema or does it stop before that?

If you fix the location of the DB Backups storage group does it work?

CoreContext storagegroup.cpp:704 (FindNextDirMostFree) SG(DB Backups): FindNextDirMostFree: '/raid5/myth/dbbackups' does not exist! 

comment:2 Changed 8 years ago by Jon Heizer <jheizer@…>

Yeah it just blindly restarts as far as I know.

No Myth UI ever appears. I originally thought it was just not starting up.

My I am having some server issues at the moment and that array is down. It is successfully backing up to the fail back of /tmp I had dozen or so backups in there. If you want I can redirect that SG and try it again.

comment:3 Changed 8 years ago by paulh

OK I was wondering if the backup was failing and the frontend just bailed out but it sounds like the backup completed OK.

Try starting the frontend in a console so we can see if it is crashing or just exiting.

If if just exits gracefully the exit code would be helpful to see why it exited.

echo $?

should print the exit code.

If it is crashing then if you can try to get a backtrace. Starting the frontend in gdb may give enough information to see what is happening. https://www.mythtv.org/wiki/Debugging#Getting_a_Backtrace

There are more MythgBuntu? specific instructions here https://www.mythtv.org/wiki/Debugging

comment:4 Changed 8 years ago by Jon Heizer <jheizer@…>

Interesting, running it directly you get the schema upgrade prompt like you'd expect.

comment:5 Changed 8 years ago by paulh

Resolution: Works for me
Status: newclosed

I suspect a bug with the MythBuntu? startup script. Maybe it doesn't like the fact the frontend can take a while to start up if the database needs to be backed up causing it to assume it crashed and tries to restart it leading to the infinite loop?

Note: See TracTickets for help on using tickets.