[Glass] problem with stone log and permissions :(

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Thu Sep 18 10:18:34 PDT 2014


Okay, there are several things going on here ... first off, we don't
recommend that you have GEMSTONE_NRS_ALL set in your startstone environment
... in 3.1.0.6 GEMSTONE_NRS_ALL is not consistently applied and in 3.2.3
and beyond the GEMSTONE_NRS_ALL will be ignored by the startstone command.
We recommend that you use `-l` to set the log location for the stone, as
you are doing...

The GEMSTONE_NRS_ALL isn't directly involved, but it does tend to confuse
things ...

We haven't reproduced your problem here, but we believe that the problem is
related to the fact that when you use `su username` the "current
environment is passed to the new shell" and startstone is probably cd'ing
to $HOME which is /home/marianopeck/.

You should try using `su --login username` as the environment for the new
shell is "similar to what the user would expect had the user logged in
directly" and startstone will cd to the $HOME for `username`.

Let's see how that works...

Dale

On Wed, Sep 17, 2014 at 9:32 PM, Mariano Martinez Peck via Glass <
glass at lists.gemtalksystems.com> wrote:

> Hi guys,
>
> I am trying to be a bit more strict in file permissions for my stones.
> When I now try to start a stone, I get this error:
>
> startstone[Info]: GemStone version '3.1.0.6'
> startstone[Info]: Starting Stone repository monitor 'debrisTesting2'.
> startstone[Info]: GEMSTONE is: '/opt/gemstone/product'.
> startstone[Info]: GEMSTONE_NRS_ALL is:
> '#dir:/somePath/data#log:/somePath/log/%N%P.log'.
> startstone[Info]:
>     GEMSTONE_SYS_CONF=/somePath/etc/system.conf
>     GEMSTONE_EXE_CONF=/somePath/etc/gem.conf
>
>  _____________________________________________________________________________
> |              ERROR:  chdir(/home/marianopeck/) failure:
>     |
> |       System Error:  errno=13,EACCES, Authorization failure (permission
> denied)
>
> |_____________________________________________________________________________|
>
> startstone[Error]: Stone process (id=25917) has died.
> startstone[Error]: Could not show end of log file '/somePath/log/log.txt'
> because: errno=2,ENOENT, The file or directory specified cannot be found
>
> So it looks like it cannot create '/somePath/log/log.txt'.
>
> The stone is launched this way as part of a larger script.
>
>   su  $RUNASUSER -c '$GEMSTONE_INSTALLATION/bin/startstone -z
> $GEMSTONE_SYS_CONF -l $APPLICATION_LOG_DIR/log.txt $APPLICATION_NAME >
> $GEMSTONE_LOGDIR/startup.log 2>&1'
>
> And then that script is invoked with sudo from my username marianopeck..
>
> What I don't understand is why it cannot create the log and why it does a
> "  chdir(/home/marianopeck/) "
>
>
> Finally...if from comand line I do:
>
> sudo su $RUNASUSER -c " touch '/somePath/log/log.txt' "
>
> I can create it with no problem.
>
> Any idea what could be happening?
>
>
> Thanks
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140918/ff12072d/attachment.html>


More information about the Glass mailing list