[Glass] Who is overriding $GEMSTONE_LOGDIR ?

Mariano Martinez Peck marianopeck at gmail.com
Mon May 12 13:00:03 PDT 2014


On Mon, May 12, 2014 at 3:12 PM, Dale Henrichs <
dale.henrichs at gemtalksystems.com> wrote:

> Mariano,
>
> GEMSTONE_NRS_ALL is probably the best way to guarantee that all log files
> get put into the same spot, so if part of your env var set up is to do the
> following:
>
>   export GEMSTONE_NRS_ALL=#dir:$GEMSTONE_LOG_DIR
>
> before starting your netldis, then all of the logs should end up in the
> right spot ...
>


Thanks Dale. That was actually the problem. It seems setting GEMSTONE_LOGDIR
was not enough.
Setting the above worked perfectly. Finally....I have all logs and pids in
their correct folder :)

Thanks!



>
>
> Dale
>
>
> On Mon, May 12, 2014 at 10:04 AM, Mariano Martinez Peck <
> marianopeck at gmail.com> wrote:
>
>>
>>
>>
>> On Wed, Jan 15, 2014 at 3:40 PM, Dale Henrichs <
>> dale.henrichs at gemtalksystems.com> wrote:
>>
>>> gemnetobject15083MacBook-Pro-de-Mariano.local.log is the log file for
>>> an rpc gem and is constructed with gem pid and the name of your machine
>>> (preumably MacBook-Pro-de-Mariano.local).
>>>
>>> It shows up in your home directory when you have _NOT_
>>> set GEMSTONE_LOGDIR.
>>>
>>> The ones on your mac are from gems started against the stone running on
>>> your mac and therefore the netldi that is running on your mac may not have
>>> had the correct env vars set before it was started
>>>
>>>
>>
>> Hi Dale,
>>
>> I am pretty sure GEMSTONE_LOGDIR is set when I am starting netldi and
>> everywhere else I can look at.
>> My stone and netldi are started this way:
>>
>>   su -m $RUNASUSER -c '$GEMSTONE_INSTALLATION/bin/startstone -z
>> $GEMSTONE_SYS_CONF -l $APPLICATION_LOG_DIR/log.txt $APPLICATION_NAME' >
>> $GEMSTONE_LOGDIR/startup.log 2>&1
>>   su -m $RUNASUSER -c '$GEMSTONE_INSTALLATION/bin/startnetldi -g -a
>> $GEMSTONE_USER -n -P $NETLDI_PORT -l
>> $APPLICATION_LOG_DIR/netldi$APPLICATION_NAME.log netldi$APPLICATION_NAME' >
>> *$GEMSTONE_LOGDIR/netldiStartup.log* 2>&1
>>
>> When this run, I do see netldiStartup.log written in the proper place,
>> hence, at that time, $GEMSTONE_LOGDIR was correct. In addition, with teh -l
>> option I also specify the log ( $APPLICATION_LOG_DIR is the same
>> as  $GEMSTONE_LOGDIR ). And that log is again created correctly in the
>> proper place.
>>
>> However, my logs still appear in the home folder of the user running the
>> stone/gems. Example ~/gemnetobject32654centosserver.log
>>
>> So....where can I debug or check with more detail why my gems are getting
>> those logs?
>>
>> Thanks,
>>
>>
>>
>>> Dale
>>>
>>>
>>> On Tue, Jan 14, 2014 at 11:56 AM, Mariano Martinez Peck <
>>> marianopeck at gmail.com> wrote:
>>>
>>>> mmmmm I have a related problem.... I don't know why the log of my gems
>>>> are written with a name like
>>>> 'gemnetobject15083MacBook-Pro-de-Mariano.local.log' and they are being
>>>> written into my $HOME folder.....weird. There is clearly something wrong
>>>> with the log variables or parameters.
>>>> I will try to find what is going on...
>>>>
>>>> Thanks,
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Jan 14, 2014 at 4:01 PM, Mariano Martinez Peck <
>>>> marianopeck at gmail.com> wrote:
>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Jan 14, 2014 at 3:07 PM, Bill Erickson <
>>>>> bill.erickson at gemtalksystems.com> wrote:
>>>>>
>>>>>> Mariano,
>>>>>>
>>>>>> If you're using RPC topaz, remember that the netldi spawns the gem
>>>>>> process using the environment that was in effect at the time netldi was
>>>>>> started.  If you change anything in this environment, you need to shutdown
>>>>>> and restart netldi in order for any gems spawned by the netldi to include
>>>>>> the updated variables.
>>>>>>
>>>>>>
>>>>> Hi Bill,
>>>>>
>>>>> Thanks for the answer. Good point. I have restarted the netldi just in
>>>>> case but same problem. I made sure that the variables are correctly
>>>>> exported when I started netldi and they were...
>>>>> So I might have a problem elsewhere.... :(
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>> Bill Erickson
>>>>>> GemTalk Systems Engineering
>>>>>> 15220 NW Greenbrier Parkway #240, Beaverton OR 97006
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>> Mariano Martinez Peck wrote
>>>>>>> > ... I am getting the incorrect result with
>>>>>>> >  $GEMSTONE_LOGDIR. For some reason, no matter I have set/exported
>>>>>>> the
>>>>>>> > variable to my own value, like
>>>>>>> /opt/applications/test2/gemstone/log, I
>>>>>>> > always get '/opt/gemstone/log'.
>>>>>>>
>>>>>>> View this message in context:
>>>>>>> http://forum.world.st/Glass-Who-is-overriding-GEMSTONE-LOGDIR-tp4736718p4736723.html
>>>>>>> Sent from the GLASS mailing list archive at Nabble.com.
>>>>>>> _______________________________________________
>>>>>>> Glass mailing list
>>>>>>> Glass at lists.gemtalksystems.com
>>>>>>> http://lists.gemtalksystems.com/mailman/listinfo/glass
>>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Glass mailing list
>>>>>> Glass at lists.gemtalksystems.com
>>>>>> http://lists.gemtalksystems.com/mailman/listinfo/glass
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Mariano
>>>>> http://marianopeck.wordpress.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Mariano
>>>> http://marianopeck.wordpress.com
>>>>
>>>> _______________________________________________
>>>> Glass mailing list
>>>> Glass at lists.gemtalksystems.com
>>>> http://lists.gemtalksystems.com/mailman/listinfo/glass
>>>>
>>>>
>>>
>>
>>
>> --
>> Mariano
>> http://marianopeck.wordpress.com
>>
>
>


-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140512/16edd624/attachment.html>


More information about the Glass mailing list