4D V14, A4D v6.1r6 Setup Problems

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

4D V14, A4D v6.1r6 Setup Problems

Perkins, Bradley D
I'm setting up a new host on Mac OS 10.9.4, with 4D V14r2 running as 4D Remote. Active4D v6.1r6. Web Server is NTK.

I have debug logging on and it looks like Active4D is initializing OK, but I can't seem to server files.

I am seeing Active4D's 404 error page.

I have the Active4D files in the same location on our current production v11/Active4D 5 host


/Library/Application Support/4D/com.aparajita/Active4D/web/

/Library/Application Support/4D/com.aparajita/Active4D/conf/

/Library/Application Support/4D/com.aparajita/Active4D/lib/


That conforms to the docs (page 40):


Under 4D Standalone or Server, the default directory is the current database directory

(the one with the structure file). Under 4D Remote, the default directory is:

- /Library/Application Support/4D/com.aparajita/Active4D (Mac OS X)


Here is the debug log. It's obvious that Active4D wants to see the files in the ~/Library/Application Support/4D/com.aparajita/


What am I missing?


Thanks,


Brad Perkins



Sep 22 15:33:13 Active4D: [notice] *****************************************************************

Sep 22 15:33:13 Active4D: [notice]   Active4D

Sep 22 15:33:13 Active4D: [notice] *****************************************************************

Sep 22 15:33:13 Active4D: [info] env: log level = debug

Sep 22 15:33:13 Active4D: [debug] env: looking for ICU data in plugin bundle

Sep 22 15:33:13 Active4D: [info] env: ICU data directory: /Users/webclient/Library/Caches/4D/OMSv7.4DB_204_121_16_205/Plugins/Active4D.bundle/Contents/Resources

Sep 22 15:33:13 Active4D: [info] env: Active4D 6.1r6 [Macintosh/Intel, release, 32-bit]

Sep 22 15:33:13 Active4D: [info] env: 4D v14.0.2r0 [Client, interpreted, Unicode mode, Mac OS X 10.9.4 (Intel, 32-bit)]

Sep 22 15:33:13 Active4D: [debug] env: Mac OS X user locale: en_US

Sep 22 15:33:13 Active4D: [info] env: ICU locale: en_US - English (United States)

Sep 22 15:33:13 Active4D: [info] env: checked

Sep 22 15:33:13 Active4D: [info] license: searching for key file in /Users/webclient/Library/Application Support/4D/com.aparajita/Active4D

Sep 22 15:33:13 Active4D: [info] license: searching for key file in /Users/webclient/Library/Application Support/4D/Licenses/com.aparajita/Active4D

Sep 22 15:33:13 Active4D: [info] license: searching for key file in /Users/webclient/Library/Caches/4D/OMSv7.4DB_204_121_16_205/Plugins/Active4D.bundle/Contents/Resources

Sep 22 15:33:13 Active4D: [warn] license: key file not found

Sep 22 15:33:13 Active4D: [info] license: type = trial, timeout: 2014-09-22 23:33:13

Sep 22 15:33:13 Active4D: [info] server: initialized

Sep 22 15:33:13 Active4D: [info] lexer: initialized

Sep 22 15:33:13 Active4D: [debug] lexer: decimal point='.', grouping separator=','

Sep 22 15:33:13 Active4D: [info] interpreter: default directory: /Users/webclient/Library/Application Support/4D/com.aparajita/Active4D

Sep 22 15:33:13 Active4D: [info] interpreter: initialized

Sep 22 15:33:14 Active4D: [info] runtime: initialized

Sep 22 15:33:14 Active4D: [info] web_runtime: initialized

Sep 22 15:33:14 Active4D: [info] housekeeper: initialized

Sep 22 15:33:17 Active4D: [debug] xtoolkit: interface lo0: loopback

Sep 22 15:33:17 Active4D: [debug] xtoolkit: interface lo0: loopback

Sep 22 15:33:17 Active4D: [debug] xtoolkit: interface lo0: loopback

Sep 22 15:33:17 Active4D: [debug] xtoolkit: interface lo0: loopback

Sep 22 15:33:17 Active4D: [debug] xtoolkit: interface gif0: down

Sep 22 15:33:17 Active4D: [debug] xtoolkit: interface stf0: down

Sep 22 15:33:17 Active4D: [debug] xtoolkit: interface en0: AF_LINK

Sep 22 15:33:17 Active4D: [debug] xtoolkit: interface en0: 204.121.16.204

Sep 22 15:33:17 Active4D: [debug] xtoolkit: matched IP: 204.121.16.204

Sep 22 15:33:18 Active4D: [info] plugin: starting up web server

Sep 22 15:33:18 Active4D: [error] The library "Active4D" cannot be found: /Users/aparajita/Development/Projects/4D_Plugins/v11/Active4D-v11/src/my_plugin.cpp, line 1480, importActive4DLib

Sep 22 15:33:18 Active4D: [info] plugin: initializing circuits

Sep 22 15:33:18 Active4D: [info] plugin: scanning for circuits in web root web/

Sep 22 15:33:18 Active4D: [info] plugin: circuits initialized

Sep 22 15:33:18 Active4D: [info] plugin: web server started, NTK host, listening on ***.***.***.***:8080 /* IP masked */

Sep 22 15:33:18 Active4D: [info] server: receive callback set to "A4D_NTK_ReceiveCallback"

Sep 22 15:35:04 Active4D: [error] env: error -1 setting wd (/Users/webclient/Library/Application Support/4D/com.aparajita/Active4D): /Users/aparajita/Development/Projects/4D_Plugins/v11/framework/4d/env4d.cpp, line 1292, StDefault4DDirectory
_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: 4D V14, A4D v6.1r6 Setup Problems

aparajita
Administrator
> Here is the debug log. It's obvious that Active4D wants to see the files in the ~/Library/Application Support/4D/com.aparajita/

The docs are wrong, sorry about that. The path is based on the 4D license folder, which by default is in /Library/Application Support/4D, but if the user does not have permissions to create it there, 4D uses ~/Library/Application Support/4D.

Regards,

  Aparajita

_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: 4D V14, A4D v6.1r6 Setup Problems

Perkins, Bradley D
On 9/23/14 2:04 AM, "Aparajita Fishman" <[hidden email]>
wrote:

>> Here is the debug log. It's obvious that Active4D wants to see the
>>files in the ~/Library/Application Support/4D/com.aparajita/
>
>The docs are wrong, sorry about that. The path is based on the 4D license
>folder, which by default is in /Library/Application Support/4D, but if
>the user does not have permissions to create it there, 4D uses
>~/Library/Application Support/4D.

Thanks. A quick test moving some pages below ~/Library/Application
Support/4D/ have them serving.

Permissions on the other machine must have been modified to allow
/Library/Application Support/4D/ usage.

Best,

Brad

_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: 4D V14, A4D v6.1r6 Setup Problems

Perkins, Bradley D
In reply to this post by aparajita
Aparajita,

Based on what is below we moved all files from

/Library/Application Support/4D/com.aparajita/


To

/Users/webclient/Library/Application Support/4D/com.aparajita/


When upgraded to a4D v6 and 4D v14.

This works, but has caused problems with file uploads that are stored
below the Active4D web folder. The biggest problem is that other programs
that had access to those files under V11/A4D v5, do not now unless I set
some global permissions that I'd rather not set. And doing that has the
potential to cause other problems.

For example we have a non-4D application that uses mdfind "Spotlight" to
search uploaded document contents. It worked great under the old setup,
but I've had no luck getting it to work at all when the upload files are
in the webclient directory.

I'd really like to move everything back to

/Library/Application Support/4D/com.aparajita/Active4D/...


In your comment below you said "if the user does not have permissions to
create it there". What is "it" that the user needs to create? I'm assuming
I would need to give the webclient user write (or full) permissions on
"it".

Thanks,

Brad

On 9/23/14 2:04 AM, "Aparajita Fishman" <[hidden email]>
wrote:

>> Here is the debug log. It's obvious that Active4D wants to see the
>>files in the ~/Library/Application Support/4D/com.aparajita/
>
>The docs are wrong, sorry about that. The path is based on the 4D license
>folder, which by default is in /Library/Application Support/4D, but if
>the user does not have permissions to create it there, 4D uses
>~/Library/Application Support/4D.
>
>Regards,
>
>  Aparajita
>
>_______________________________________________
>Active4D-dev mailing list
>[hidden email]
>http://list.aparajitaworld.com/listinfo/active4d-dev
>Archives: http://active4d-nabble.aparajitaworld.com/
>


_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: 4D V14, A4D v6.1r6 Setup Problems

aparajita
Administrator
> In your comment below you said "if the user does not have permissions to
> create it there". What is "it" that the user needs to create?

"it" is the Licenses folder. When you first run 4D, if the effective user/group under which 4D is run does not have permissions to create /Library/Application Support/4D/Licenses, it will create ~/Library/Application Support/4D/Licenses.

Regards,

  Aparajita

_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: 4D V14, A4D v6.1r6 Setup Problems

Perkins, Bradley D
Thanks. That sounds like the path to solve the other problems.

-- Brad

On 10/31/14 3:29 PM, "Aparajita Fishman" <[hidden email]>
wrote:

>> In your comment below you said "if the user does not have permissions to
>> create it there". What is "it" that the user needs to create?
>
>"it" is the Licenses folder. When you first run 4D, if the effective
>user/group under which 4D is run does not have permissions to create
>/Library/Application Support/4D/Licenses, it will create
>~/Library/Application Support/4D/Licenses.
>
>Regards,
>
>  Aparajita
>
>_______________________________________________
>Active4D-dev mailing list
>[hidden email]
>http://list.aparajitaworld.com/listinfo/active4d-dev
>Archives: http://active4d-nabble.aparajitaworld.com/
>


_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/