Gemtools-1.0b8 login error

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

Gemtools-1.0b8 login error

dario trussardi
Hi,

        thanks for a new release, i hope to port my code on it and go in the 'sea'.


        On the server based on Ubuntu Server 1004 i install the last version of Gemstone with the script :

                installGemstone2.4-Linux.sh

        download from :
       
                http://seaside.gemstone.com/script.


        All go well and the command  :

                startGemstone  - startnetldi - runSeasideGems
       
                works fine.

       
On Mac i have a Pharo GemTools -1.0b6 image  update to GemTools-1.0b8.


I create a session :

        OGCustomSessionDescription new
                name: 'Monviso';
                stoneHost: 'monviso';
                stoneName: 'seaside';
                gemHost: 'monviso';
                netLDI: '50377';
                gemTask: 'gemnetobject';
                userId: 'DataCurator';
                password: 'swordfish';
                osUserId: 'dario';
                osPassword: 'dario';
                backupDirectory: '';
                dataDirectory: '';
                yourself.

Now when i do login i found the error :

basicLogin: initializeServer

        | desc |
        self isLoggedIn ifTrue: [ ^self ].
        desc := self sessionDescription.
        session := GciSession new
                gemNRS: desc gemNRS;
                stoneNRS: desc stoneNRS;
                userID: desc userId;
                yourself.
        [
                (session
                        login: desc password
                        osUser: (desc isGuest ifTrue: [''] ifFalse: [ desc osUserId ])
                        osPassword: (desc isGuest ifTrue: [''] ifFalse: [ desc osPassword ])
                        initializeServer: initializeServer)
                                ifFalse: [ | messageText |
                                        messageText := session getAndClearLastError message.
                                        session := nil.
                                        ^Error signal: messageText ].
        ] on: Error do: [:ex |
                session := nil.
                ^ex pass ].
        usingMetacello := glassPackageName := nil.
        windowSessionNumber := session number.
        session windowLabel: ' G/S[', self sessionDescription name, ':', windowSessionNumber printString, ']'.


where messageText is :

        'Unable to create a GemStone session.
        Netldi ''gs64ldi'' on host ''monviso'' reports the request ''gemnetobject'' failed:
        Password validation failed for user dario because getspnam() returned an error: errno=13,EACCES, Authorization failure (permission denied)'

The relative stack:

[] in OGSessionNode>>basicLogin:
BlockClosure>>on:do:
OGSessionNode>>basicLogin:
OGSessionNode>>login
OGCmdLoginSession>>execute
PluggableButtonMorphPlus(PluggableButtonMorph)>>performAction
PluggableButtonMorphPlus>>performAction
[] in PluggableButtonMorphPlus(PluggableButtonMorph)>>mouseUp:
Array(SequenceableCollection)>>do:
PluggableButtonMorphPlus(PluggableButtonMorph)>>mouseUp:
PluggableButtonMorphPlus>>mouseUp:
PluggableButtonMorphPlus(Morph)>>handleMouseUp:
MouseButtonEvent>>sentTo:
PluggableButtonMorphPlus(Morph)>>handleEvent:
PluggableButtonMorphPlus(Morph)>>handleFocusEvent:
[] in HandMorph>>sendFocusEvent:to:clear:
[] in PasteUpMorph>>becomeActiveDuring:
BlockClosure>>on:do:
PasteUpMorph>>becomeActiveDuring:
HandMorph>>sendFocusEvent:to:clear:


I wrong anything ?


        Thanks for any consideration.

        Dario



Reply | Threaded
Open this post in threaded view
|

Re: Gemtools-1.0b8 login error

Dale Henrichs
Dario,

The error message indicates that the password for the mac user 'dario'
is incorrect.

The only reason for passing in the mac user and password is if you have
started the netldi without the -g option.

It is recommended that you use the -g option. If you use the -g option
the processes are forked as the same user that launched netldi which is
usually just fine.

If you are intending to use username and password with netldi, then
we'll have to dig deeper.

Dale

Dario Trussardi wrote:

> Hi,
>
> thanks for a new release, i hope to port my code on it and go in the 'sea'.
>
>
> On the server based on Ubuntu Server 1004 i install the last version of Gemstone with the script :
>
> installGemstone2.4-Linux.sh
>
> download from :
>
> http://seaside.gemstone.com/script.
>
>
> All go well and the command  :
>
> startGemstone  - startnetldi - runSeasideGems
>
> works fine.
>
>
> On Mac i have a Pharo GemTools -1.0b6 image  update to GemTools-1.0b8.
>
>
> I create a session :
>
> OGCustomSessionDescription new
> name: 'Monviso';
> stoneHost: 'monviso';
> stoneName: 'seaside';
> gemHost: 'monviso';
> netLDI: '50377';
> gemTask: 'gemnetobject';
> userId: 'DataCurator';
> password: 'swordfish';
> osUserId: 'dario';
> osPassword: 'dario';
> backupDirectory: '';
> dataDirectory: '';
> yourself.
>
> Now when i do login i found the error :
>
> basicLogin: initializeServer
>
> | desc |
> self isLoggedIn ifTrue: [ ^self ].
> desc := self sessionDescription.
> session := GciSession new
> gemNRS: desc gemNRS;
> stoneNRS: desc stoneNRS;
> userID: desc userId;
> yourself.
> [
> (session
> login: desc password
> osUser: (desc isGuest ifTrue: [''] ifFalse: [ desc osUserId ])
> osPassword: (desc isGuest ifTrue: [''] ifFalse: [ desc osPassword ])
> initializeServer: initializeServer)
> ifFalse: [ | messageText |
> messageText := session getAndClearLastError message.
> session := nil.
> ^Error signal: messageText ].
> ] on: Error do: [:ex |
> session := nil.
> ^ex pass ].
> usingMetacello := glassPackageName := nil.
> windowSessionNumber := session number.
> session windowLabel: ' G/S[', self sessionDescription name, ':', windowSessionNumber printString, ']'.
>
>
> where messageText is :
>
> 'Unable to create a GemStone session.
> Netldi ''gs64ldi'' on host ''monviso'' reports the request ''gemnetobject'' failed:
> Password validation failed for user dario because getspnam() returned an error: errno=13,EACCES, Authorization failure (permission denied)'
>
> The relative stack:
>
> [] in OGSessionNode>>basicLogin:
> BlockClosure>>on:do:
> OGSessionNode>>basicLogin:
> OGSessionNode>>login
> OGCmdLoginSession>>execute
> PluggableButtonMorphPlus(PluggableButtonMorph)>>performAction
> PluggableButtonMorphPlus>>performAction
> [] in PluggableButtonMorphPlus(PluggableButtonMorph)>>mouseUp:
> Array(SequenceableCollection)>>do:
> PluggableButtonMorphPlus(PluggableButtonMorph)>>mouseUp:
> PluggableButtonMorphPlus>>mouseUp:
> PluggableButtonMorphPlus(Morph)>>handleMouseUp:
> MouseButtonEvent>>sentTo:
> PluggableButtonMorphPlus(Morph)>>handleEvent:
> PluggableButtonMorphPlus(Morph)>>handleFocusEvent:
> [] in HandMorph>>sendFocusEvent:to:clear:
> [] in PasteUpMorph>>becomeActiveDuring:
> BlockClosure>>on:do:
> PasteUpMorph>>becomeActiveDuring:
> HandMorph>>sendFocusEvent:to:clear:
>
>
> I wrong anything ?
>
>
> Thanks for any consideration.
>
> Dario
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Gemtools-1.0b8 login error

dario trussardi

Hi Dale,

i start netldi with startnetldi and not wtih startnet command this create the error.


Now after startnet correctly,

 when i do login from a Pharo GemTools -1.0b6 image  update to GemTools-1.0b8

i found the error:

'Network error - text follows:'

The relative stack :

[] in OGSessionNode>>basicLogin: BlockClosure>>on:do: OGSessionNode>>basicLogin: OGSessionNode>>login OGCmdLoginSession>>execute PluggableButtonMorphPlus(PluggableButtonMorph)>>performAction PluggableButtonMorphPlus>>performAction [] in PluggableButtonMorphPlus(PluggableButtonMorph)>>mouseUp: Array(SequenceableCollection)>>do: PluggableButtonMorphPlus(PluggableButtonMorph)>>mouseUp: PluggableButtonMorphPlus>>mouseUp: PluggableButtonMorphPlus(Morph)>>handleMouseUp: MouseButtonEvent>>sentTo: PluggableButtonMorphPlus(Morph)>>handleEvent: PluggableButtonMorphPlus(Morph)>>handleFocusEvent: [] in HandMorph>>sendFocusEvent:to:clear: [] in PasteUpMorph>>becomeActiveDuring: BlockClosure>>on:do: PasteUpMorph>>becomeActiveDuring: HandMorph>>sendFocusEvent:to:clear:


I do login test from GemTools-1.0beta.8-244x download from GemTools 1.0-beta.8 for Gemstone/S 2.4.4 all platforms.

It work fine.

Thanks,

Dario
Reply | Threaded
Open this post in threaded view
|

Re: Gemtools-1.0b8 login error

Dale Henrichs
Dario,

In you session description these two lines:

                osUserId: 'dario';
                osPassword: 'dario';

should be changed to:

                osUserId: '';
                osPassword: '';

and try again.

Dale

Dario Trussardi wrote:

>
> Hi Dale,
>
> i start netldi with startnetldi and not wtih startnet command this
> create the error.
>
>
> Now after startnet correctly,
>
>  when i do login from a Pharo GemTools -1.0b6 image  update to
> GemTools-1.0b8
>
> i found the error:
>
> 'Network error - text follows:'
>
> The relative stack :
>
> [] in OGSessionNode>>basicLogin: BlockClosure>>on:do:
> OGSessionNode>>basicLogin: OGSessionNode>>login
> OGCmdLoginSession>>execute
> PluggableButtonMorphPlus(PluggableButtonMorph)>>performAction
> PluggableButtonMorphPlus>>performAction [] in
> PluggableButtonMorphPlus(PluggableButtonMorph)>>mouseUp:
> Array(SequenceableCollection)>>do:
> PluggableButtonMorphPlus(PluggableButtonMorph)>>mouseUp:
> PluggableButtonMorphPlus>>mouseUp:
> PluggableButtonMorphPlus(Morph)>>handleMouseUp:
> MouseButtonEvent>>sentTo: PluggableButtonMorphPlus(Morph)>>handleEvent:
> PluggableButtonMorphPlus(Morph)>>handleFocusEvent: [] in
> HandMorph>>sendFocusEvent:to:clear: [] in
> PasteUpMorph>>becomeActiveDuring: BlockClosure>>on:do:
> PasteUpMorph>>becomeActiveDuring: HandMorph>>sendFocusEvent:to:clear:
>
>
> I do login test from GemTools-1.0beta.8-244x download from GemTools
> 1.0-beta.8 for Gemstone/S 2.4.4 all platforms
> <http://seaside.gemstone.com/squeak/GemTools-1.0-beta.8-244x.app.zip>.
>
> It work fine.
>
> Thanks,
>
> Dario
Reply | Threaded
Open this post in threaded view
|

Re: Gemtools-1.0b8 login error

dario trussardi
Dale,  

>
> In you session description these two lines:
>
> osUserId: 'dario';
> osPassword: 'dario';
>
> should be changed to:
>
>


i do this but the system erase the same error.

The :

        OGStandardSessionDescription new
        name: 'Standard';
        stoneHost: 'monviso';
        stoneName: 'seaside';
        gemHost: 'monviso';
        netLDI: '50377';
        userId: 'DataCurator';
        password: 'swordfish';
        backupDirectory: '';
        yourself.

        work fine with GemTools-1.0beta.8-244x

        When load Pharo GemTools -1.0b6 image  update to GemTools-1.0b8 with:  GemTools-1.0b6(Squeak VM 4.2.2b1) the system erase the error.

        If load the same image with: GemTools-1.0beta8-244x(Squeak VM 4.2.1b1) the login work fine.


        Thanks,

                Dario
Reply | Threaded
Open this post in threaded view
|

Re: Gemtools-1.0b8 login error

Dale Henrichs
Dario,

If you are logging in against 2.4.4.1 then you need to make sure that
you have the correct gciLinux.so file. You must use a 2.4.4.1
gciLinux.so file, since the api changed between 2.4.3 and 2.4.4.1.

The only difference between

   GemTools-1.0beta8-244x

and

  GemTools-1.0beta8-231

is that they are using different gci library files.

Dale



  Dario Trussardi wrote:

> Dale,  
>
>> In you session description these two lines:
>>
>> osUserId: 'dario';
>> osPassword: 'dario';
>>
>> should be changed to:
>>
>>
>
>
> i do this but the system erase the same error.
>
> The :
>
> OGStandardSessionDescription new
> name: 'Standard';
> stoneHost: 'monviso';
> stoneName: 'seaside';
> gemHost: 'monviso';
> netLDI: '50377';
> userId: 'DataCurator';
> password: 'swordfish';
> backupDirectory: '';
> yourself.
>
> work fine with GemTools-1.0beta.8-244x
>
> When load Pharo GemTools -1.0b6 image  update to GemTools-1.0b8 with:  GemTools-1.0b6(Squeak VM 4.2.2b1) the system erase the error.
>
> If load the same image with: GemTools-1.0beta8-244x(Squeak VM 4.2.1b1) the login work fine.
>
>
> Thanks,
>
> Dario