Can't connect to local machine

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

Can't connect to local machine

Jeff Gray
Hi all,
Magma newbie...

In the help docs, to connect locally it says:
myMagmaSession := MagmaSession openLocal: 'c:\myMagmaFolder\myRepository.magma'.

As an experiment if I select:
MagmaSession openLocal: 'c:\myMagmaFolder\myRepository.magma'.
and print it, I get an error 'Could not open _open in use?'

The directory is there but with no myRepsitory.magma file.
If I create the file and try again Pharo freezes and I have to kill the task in the Windows Task Manager.

What am I doing wrong?
Pharo 1.1.1
Not sure which version of Magma I have.
Reply | Threaded
Open this post in threaded view
|

Re: Can't connect to local machine

fvozzi
Hi Jeff,
You need create the repository before you can connect to it. Try:

MagmaRepositoryController create: 'c:\myMagmaFolder' root: Dictionary new.
(MagmaSession openLocal:  'c:\myMagmaFolder') connectAs: 'user'             "inspect it"

See you,
FV

On Fri, Feb 18, 2011 at 1:46 AM, Jeff Gray <[hidden email]> wrote:

Hi all,
Magma newbie...

In the help docs, to connect locally it says:
myMagmaSession := MagmaSession openLocal:
'c:\myMagmaFolder\myRepository.magma'.

As an experiment if I select:
MagmaSession openLocal: 'c:\myMagmaFolder\myRepository.magma'.
and print it, I get an error 'Could not open _open in use?'

The directory is there but with no myRepsitory.magma file.
If I create the file and try again Pharo freezes and I have to kill the task
in the Windows Task Manager.

What am I doing wrong?
Pharo 1.1.1
Not sure which version of Magma I have.

--
View this message in context: http://forum.world.st/Can-t-connect-to-local-machine-tp3312050p3312050.html
Sent from the Magma mailing list archive at Nabble.com.
_______________________________________________
Magma mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/magma


_______________________________________________
Magma mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/magma
Reply | Threaded
Open this post in threaded view
|

Re: Can't connect to local machine

Chris Muller-3
In reply to this post by Jeff Gray
The temporary file named "_open" is just an empty file created when
repository is opened, deleted when it's closed.  This is to prevent
multiple OS processes from opening the same repository.

You may delete the _open file if it is truly not open by any Squeak VM's.

 - Chris

On Thu, Feb 17, 2011 at 10:46 PM, Jeff Gray <[hidden email]> wrote:

>
> Hi all,
> Magma newbie...
>
> In the help docs, to connect locally it says:
> myMagmaSession := MagmaSession openLocal:
> 'c:\myMagmaFolder\myRepository.magma'.
>
> As an experiment if I select:
> MagmaSession openLocal: 'c:\myMagmaFolder\myRepository.magma'.
> and print it, I get an error 'Could not open _open in use?'
>
> The directory is there but with no myRepsitory.magma file.
> If I create the file and try again Pharo freezes and I have to kill the task
> in the Windows Task Manager.
>
> What am I doing wrong?
> Pharo 1.1.1
> Not sure which version of Magma I have.
>
> --
> View this message in context: http://forum.world.st/Can-t-connect-to-local-machine-tp3312050p3312050.html
> Sent from the Magma mailing list archive at Nabble.com.
> _______________________________________________
> Magma mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/magma
>
_______________________________________________
Magma mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/magma