Bug 3453 - Can't locate object method "forceCommit" via package "Slim::Schema" - crash
: Can't locate object method "forceCommit" via package "Slim::Schema" - crash
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 6.5b1
: PC Windows Server 2003
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-26 06:09 UTC by Greg Hamilton
Modified: 2008-09-15 14:39 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Hamilton 2006-05-26 06:09:56 UTC
Active Perl, Windows 2003

C:\Program Files\slimperl\trunk\server>perl slimserver.pl --d_info
Can't locate object method "mergeVariousArtistsAlbums" via package "Slim::Schema" at C:/Program Files/slimperl/trunk/server/Slim/Music/Import.pm line 103.
Can't locate object method "forceCommit" via package "Slim::Schema" at slimserve
r.pl line 1006.
END failed--call queue aborted.
Comment 1 sbjaerum 2006-05-27 12:47:47 UTC
Adding
use Slim::Schema;
in Import.pm gets me passed this error.
Comment 2 Dan Sully 2006-06-02 17:01:11 UTC
Greg/Steinar - is this still an issue with the latest svn/nightly?

Thanks
Comment 3 sbjaerum 2006-06-03 00:06:05 UTC
I am now at r7723 on WinXP.
Remove slimserver.pref (fresh install), and you will see this.

Comment 4 Greg Hamilton 2006-06-03 04:24:58 UTC
Dan

I am now at 7723 but am getting two errors depending on how I start things
After fresh install, with no slimserver.pref and no Cache folder

Just running the scanner
C:\Program Files\slimperl\trunk\server>perl scanner.pl --wipe --progress "D:\My
Music"
DBIx::Class::Storage::DBI::dbh(): DBI Connection failed: DBI connect('hostname=1
27.0.0.1;port=9092;database=slimserver','slimserver',...) failed: Can't connect
to MySQL server on '127.0.0.1' (10061) at C:\Program Files\slimperl\trunk\server
\CPAN/DBIx/Class/Storage/DBI.pm line 407
2006-06-03 07:19:48.0355 ERROR: forceCommit: Trying to commit transactions befor
e DB is initialized!


Running the Slimserver
C:\Program Files\slimperl\trunk\server>perl slimserver.pl
Can't locate object method "mergeVariousArtistsAlbums" via package "Slim::Schema
" at C:/Program Files/slimperl/trunk/server/Slim/Music/Import.pm line 122.


Comment 5 alex_m74 2006-06-07 07:11:35 UTC
Same error for me using rev 7783:

Can't locate object method "mergeVariousArtistsAlbums" via package "Slim::Schema" at C:\SlimMySQL/Slim/Music/Import.pm line 122.

Running on Windows XP MCE 2005 SP2, and retrieved latest build into a clean folder (just to be sure).
Comment 6 Dan Sully 2006-06-07 09:41:31 UTC
*** Bug 3490 has been marked as a duplicate of this bug. ***
Comment 7 Dan Sully 2006-06-12 17:31:11 UTC
Can you please run slimserver with the --d_server & --d_mysql options?

The scanner won't run by itself unless you are using your own version of MySQL.

Normally it's just launched from SlimServer itself which brings up the embedded version of MySQL we're shipping.

Please make sure you're using the latest nightly.

Thanks.
Comment 8 alex_m74 2006-06-12 17:45:09 UTC
Using rev 7926, deleted the slimserver.pref file and started using "perl -w slimserver.pl --d_server --d_mysql", as requested. Log as follows:

2006-06-13 01:41:06.3778 SlimServer OSDetect init...
2006-06-13 01:41:06.3781 SlimServer OS Specific init...
2006-06-13 01:41:06.3782 SlimServer saving pid file.
2006-06-13 01:41:06.3783 SlimServer settings effective user and group if requested...
2006-06-13 01:41:06.3787 SlimServer settings init...
Can't locate object method "mergeVariousArtistsAlbums" via package "Slim::Schema" at C:\SlimMySQL/Slim/Music/Import.pm line 121.
2006-06-13 01:41:06.4139 Got to the END.
2006-06-13 01:41:06.4141 Got sigint.
2006-06-13 01:41:06.4142 SlimServer cleaning up.

Regards,
-Alex
Comment 9 Dan Sully 2006-06-12 17:47:51 UTC
I don't understand why there aren't any mysql debugging messages showing up.. something is wrong there. MySQL isn't being started.

Any chance I could get a Remote Desktop session or VNC to your machine?
Comment 10 KDF 2006-06-12 18:06:56 UTC
I was seeing this with iTunes import enabled. turning off iTunes got me past this point and it was fine after.
Comment 11 Greg Hamilton 2006-06-12 18:22:53 UTC
No Itunes for my,  but I do have Moodlogic & MusicIP.  As far as I can tell they are not enabled in the slimserver.pref file.

Comment 12 Neil Sleightholm 2006-06-12 23:04:38 UTC
(In reply to comment #9)
> I don't understand why there aren't any mysql debugging messages showing up..
> something is wrong there. MySQL isn't being started.
> Any chance I could get a Remote Desktop session or VNC to your machine?

If you checkout bug 3490 there may be some extra information about this has how to recreate it (basically delete slimserver.pref and start again). Also, I believe there aren't any MySQL messages because this is happening before MySQL has been started - may be this is the problem.

Neil
Comment 13 Dan Sully 2006-06-14 11:57:21 UTC
Fixed in change 7971
Comment 14 Neil Sleightholm 2006-06-14 14:09:13 UTC
This works for me, thanks.

Comment 15 Greg Hamilton 2006-06-14 15:21:43 UTC
Works for me also
Comment 16 alex_m74 2006-06-15 01:31:50 UTC
Great stuff - works now!