server db drivers not loading

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark

Locked
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

server db drivers not loading

Post by monte » Tue Jun 18, 2013 1:09 pm

I'm trying to work out the issue and I'm not sure if it's just on OS X but the _MAC_SERVER and _SERVER macros aren't defined for the server-revdb project and they seem to be critical for finding the db drivers...
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: server db drivers not loading

Post by sturgis » Tue Jun 18, 2013 2:41 pm

Replacing the driver files with copies from 5.0.2 commercial solves the issue. Don't know if it helps you track down the problem but thought i'd throw it out there.

EDIT: to test I just copied both folders (externals and drivers) to the correct location and LC community started working fine.

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1207
Joined: Thu Apr 11, 2013 11:27 am

Re: server db drivers not loading

Post by LCMark » Tue Jun 18, 2013 2:57 pm

@monte: Looks like a missing Preprocessor define in the server-* targets in revdb/revdb.xcodeproj. Both _MAC_SERVER and _SERVER should be defined on those targets (they probably got accidentally lost when we redid the project files :S).

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: server db drivers not loading

Post by monte » Tue Jun 18, 2013 8:44 pm

Ok... That's what I thought... I never seem to know when something should be called a macro and when it should be called a preprocessor define...
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

fenick
Posts: 15
Joined: Fri Mar 20, 2009 10:32 pm

Re: server db drivers not loading

Post by fenick » Tue Jun 25, 2013 11:44 pm

I may have the same issue.

When I run:
put revOpenDatabase("MySQL", tHostName, tDataBaseName, tUserName, tPassword) into tDataBaseID

in a stack I get an integer for tDataBaseID
on the server I get "revdberr,invalid database type" for tDataBaseID

Or, the problem could be in configuration. I recently just installed the MySQL database locally and am trying to get up to speed on it.

I am running
OSX 10.8.4 with server.app
I just installed serverLiveCodeCommunityServer-6_1_0_rc_1-Mac but that did not help any.

Question: where could I get an older version of the externals and drivers so I can test out that solution.

or is my problem elsewhere?

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: server db drivers not loading

Post by monte » Wed Jun 26, 2013 12:08 am

If you replace the older revdb with the new one it will work. I had thought @runrevmark got this before RC1 but perhaps it was after?
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

fenick
Posts: 15
Joined: Fri Mar 20, 2009 10:32 pm

Re: server db drivers not loading

Post by fenick » Wed Jun 26, 2013 1:13 am

OK. I tried that. I replaced drivers and externals within my CGI-Exectuables folder with the one that comes with 6.1 RC1. That did not solve the problem.

To see what is going on, I tried to output revGetDatabaseDriverPath() on the server... but the server times and only returns empty. To retest, when I comment out that line on the server I get the "revdberr,invalid database type" again. so it seems that revGetDatabaseDriverPath() is causing the server to hang.

Next I added:
revSetDatabaseDriverPath "../drivers/"

The server no longer hangs, But I still get "revdberr,invalid database type"

I'm not sure where to look now. Does the livecode-server or its folder need special permissions that I may have wiped out? Any suggestion on where else to look?

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: server db drivers not loading

Post by monte » Wed Jun 26, 2013 1:30 am

no, replace them from version 5.whatever...
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

fenick
Posts: 15
Joined: Fri Mar 20, 2009 10:32 pm

Re: server db drivers not loading

Post by fenick » Wed Jun 26, 2013 1:35 am

I'm new to playing with server. I do not have an earlier version.

I'll send a message to support and see if they can help.

Thanks,

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: server db drivers not loading

Post by monte » Wed Jun 26, 2013 2:36 am

Ah.. well you will probably either need to wait for the next RC which should be within a few days or compile it yourself now that it's fixed.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1207
Joined: Thu Apr 11, 2013 11:27 am

Re: server db drivers not loading

Post by LCMark » Thu Jun 27, 2013 5:29 pm

This should be fixed in 6.1.0-rc-2 - server available here: http://downloads.livecode.com/livecode/server/6_1_0.

Locked

Return to “Engine Contributors”