Monticello on local network server

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

Monticello on local network server

dario trussardi
Hi,

i work with Pharo 1.4.

I need to manage a packages on a local server with Monticello http repository.

I configured the Monticello repository with:
MCHttpRepository location: 'http://www.server1.com/RepositoryDTR/' user: '' password: ''

And configured the local DNS to redirect the request on the IP server

and configured the lighttpd on the server   to redirect the /RepositoryDTR/  path on the specific server path.

Now when i open the repository with Monticello i can see the hold  *.mcz package   into server 1 /RepositoryDTR/   path


I found the error:
ZnHttpUnsuccessful: 404 Not Found

 when i save,  with Monticello browser, a new package version on the server.


I need to do some initialization before use a remote http ? 


Thanks for any considerations,

Dario


This is the stack relative of the error.

VM: Mac OS - intel - 1075 - CoInterpreter VMMaker-oscog-EstebanLorenzano.161 uuid: 8e0c22c3-b48d-4d8d-a7f9-8a75dc246f28 Jul 18 2012, StackToRegisterMappingCogit VMMaker-oscog-EstebanLorenzano.161 uuid: 8e0c22c3-b48d-4d8d-a7f9-8a75dc246f28 Jul 18 2012, https://git.gitorious.org/cogvm/blessed.git Commit: 5151310c41b08f55b70e9c6250711cb1f3672ce7 Date: 2012-07-18 14:06:15 +0200 By: Camillo Bruni <[hidden email]>

Image: Pharo1.4 [Latest update: #14445]

 

ZnClient>>handleResponse

            Receiver: a ZnClient

            Arguments and temporary variables:

 

            Receiver's instance variables:

                        request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)

                        response:             a ZnResponse(404 Not Found text/html 345B)

                        connection:             nil

                        lastUsed:             nil

                        state:             #closed

                        options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...

                        session:             nil

                        log:             a ZnLogSupport

 

ZnClient>>executeWithRedirectsRemaining:

            Receiver: a ZnClient

            Arguments and temporary variables:

                        redirectCount:             3

            Receiver's instance variables:

                        request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)

                        response:             a ZnResponse(404 Not Found text/html 345B)

                        connection:             nil

                        lastUsed:             nil

                        state:             #closed

                        options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...

                        session:             nil

                        log:             a ZnLogSupport

 

[self executeWithRedirectsRemaining: self maxNumberOfRedirects] in ZnClient>>executeWithRetriesRemaining:

            Receiver: a ZnClient

            Arguments and temporary variables:

 

            Receiver's instance variables:

                        request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)

                        response:             a ZnResponse(404 Not Found text/html 345B)

                        connection:             nil

                        lastUsed:             nil

                        state:             #closed

                        options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...

                        session:             nil

                        log:             a ZnLogSupport

 

BlockClosure>>on:do:

            Receiver: [self executeWithRedirectsRemaining: self maxNumberOfRedirects]

            Arguments and temporary variables:

                        exception:             Exception

                        handlerAction:             [:exception | retryCount > 0

                        ifTrue: [self handleRetry; execut...etc...

                        handlerActive:             false

            Receiver's instance variables:

                        outerContext:             ZnClient>>executeWithRetriesRemaining:

                        startpc:             49

                        numArgs:             0

 

ZnClient>>executeWithRetriesRemaining:

            Receiver: a ZnClient

            Arguments and temporary variables:

                        retryCount:             0

            Receiver's instance variables:

                        request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)

                        response:             a ZnResponse(404 Not Found text/html 345B)

                        connection:             nil

                        lastUsed:             nil

                        state:             #closed

                        options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...

                        session:             nil

                        log:             a ZnLogSupport

 

[:exception | retryCount > 0

                        ifTrue: [self handleRetry; executeWithRetriesRemaining: retryCount - 1]

                        ifFalse: [exception pass]] in ZnClient>>executeWithRetriesRemaining:

            Receiver: a ZnClient

            Arguments and temporary variables:

                        retryCount:             HTTPProgress: Connecting to www.server1.com

                        exception:             1

            Receiver's instance variables:

                        request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)

                        response:             a ZnResponse(404 Not Found text/html 345B)

                        connection:             nil

                        lastUsed:             nil

                        state:             #closed

                        options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...

                        session:             nil

                        log:             a ZnLogSupport

Reply | Threaded
Open this post in threaded view
|

Re: Monticello on local network server

Sven Van Caekenberghe-2
Dario,

It is a bit more complicated than that. For a repository, the HTTP server needs to accept PUT requests, these are used when saving.

If you want to know the exact protocol (actually just 3 operations, GET repo listing, GET mcz, PUT mcz), you can study ZnMonticelloServerDelegate. Have a look at the class comment on how to set up a server inside Pharo itself.

I know that it is possible to setup a local repo using some classic servers, but I have never done it. Maybe other people can help.

Why do you need it ?

SmalltalkHub is free and has private repos I believe. Using filetree and git is also an option. You can even save to a shared volume, even cloud drives.

Sven

PS: Why are you still using 1.4 ?

> On 24 Oct 2014, at 17:15, Dario Trussardi <[hidden email]> wrote:
>
> Hi,
>
> i work with Pharo 1.4.
>
> I need to manage a packages on a local server with Monticello http repository.
>
> I configured the Monticello repository with:
>
> MCHttpRepository
> location: '
> http://www.server1.com/RepositoryDTR/'
>
> user: ''
> password: ''
>
>
>
> And configured the local DNS to redirect the request on the IP server
>
> and configured the lighttpd on the server   to redirect the /RepositoryDTR/  path on the specific server path.
>
> Now when i open the repository with Monticello i can see the hold  *.mcz package   into server 1 /RepositoryDTR/   path
>
>
> I found the error:
>
> ZnHttpUnsuccessful: 404 Not Found
>
> when i save,  with Monticello browser, a new package version on the server.
>
>
> I need to do some initialization before use a remote http ?
>
>
> Thanks for any considerations,
>
> Dario
>
>
> This is the stack relative of the error.
>
> VM: Mac OS - intel - 1075 - CoInterpreter VMMaker-oscog-EstebanLorenzano.161 uuid: 8e0c22c3-b48d-4d8d-a7f9-8a75dc246f28 Jul 18 2012, StackToRegisterMappingCogit VMMaker-oscog-EstebanLorenzano.161 uuid: 8e0c22c3-b48d-4d8d-a7f9-8a75dc246f28 Jul 18 2012, https://git.gitorious.org/cogvm/blessed.git Commit: 5151310c41b08f55b70e9c6250711cb1f3672ce7 Date: 2012-07-18 14:06:15 +0200 By: Camillo Bruni <[hidden email]>
> Image: Pharo1.4 [Latest update: #14445]
>
>  
>
> ZnClient>>handleResponse
>
>             Receiver: a ZnClient
>
>             Arguments and temporary variables:
>
>  
>
>             Receiver's instance variables:
>
>                         request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)
>
>                         response:             a ZnResponse(404 Not Found text/html 345B)
>
>                         connection:             nil
>
>                         lastUsed:             nil
>
>                         state:             #closed
>
>                         options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...
>
>                         session:             nil
>
>                         log:             a ZnLogSupport
>
>  
>
> ZnClient>>executeWithRedirectsRemaining:
>
>             Receiver: a ZnClient
>
>             Arguments and temporary variables:
>
>                         redirectCount:             3
>
>             Receiver's instance variables:
>
>                         request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)
>
>                         response:             a ZnResponse(404 Not Found text/html 345B)
>
>                         connection:             nil
>
>                         lastUsed:             nil
>
>                         state:             #closed
>
>                         options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...
>
>                         session:             nil
>
>                         log:             a ZnLogSupport
>
>  
>
> [self executeWithRedirectsRemaining: self maxNumberOfRedirects] in ZnClient>>executeWithRetriesRemaining:
>
>             Receiver: a ZnClient
>
>             Arguments and temporary variables:
>
>  
>
>             Receiver's instance variables:
>
>                         request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)
>
>                         response:             a ZnResponse(404 Not Found text/html 345B)
>
>                         connection:             nil
>
>                         lastUsed:             nil
>
>                         state:             #closed
>
>                         options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...
>
>                         session:             nil
>
>                         log:             a ZnLogSupport
>
>  
>
> BlockClosure>>on:do:
>
>             Receiver: [self executeWithRedirectsRemaining: self maxNumberOfRedirects]
>
>             Arguments and temporary variables:
>
>                         exception:             Exception
>
>                         handlerAction:             [:exception | retryCount > 0
>
>                         ifTrue: [self handleRetry; execut...etc...
>
>                         handlerActive:             false
>
>             Receiver's instance variables:
>
>                         outerContext:             ZnClient>>executeWithRetriesRemaining:
>
>                         startpc:             49
>
>                         numArgs:             0
>
>  
>
> ZnClient>>executeWithRetriesRemaining:
>
>             Receiver: a ZnClient
>
>             Arguments and temporary variables:
>
>                         retryCount:             0
>
>             Receiver's instance variables:
>
>                         request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)
>
>                         response:             a ZnResponse(404 Not Found text/html 345B)
>
>                         connection:             nil
>
>                         lastUsed:             nil
>
>                         state:             #closed
>
>                         options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...
>
>                         session:             nil
>
>                         log:             a ZnLogSupport
>
>  
>
> [:exception | retryCount > 0
>
>                         ifTrue: [self handleRetry; executeWithRetriesRemaining: retryCount - 1]
>
>                         ifFalse: [exception pass]] in ZnClient>>executeWithRetriesRemaining:
>
>             Receiver: a ZnClient
>
>             Arguments and temporary variables:
>
>                         retryCount:             HTTPProgress: Connecting to www.server1.com
>
>                         exception:             1
>
>             Receiver's instance variables:
>
>                         request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)
>
>                         response:             a ZnResponse(404 Not Found text/html 345B)
>
>                         connection:             nil
>
>                         lastUsed:             nil
>
>                         state:             #closed
>
>                         options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...
>
>                         session:             nil
>
>                         log:             a ZnLogSupport
>


Reply | Threaded
Open this post in threaded view
|

Re: Monticello on local network server

stepharo
In reply to this post by dario trussardi
Dario

Pharo ****REALLYYYYYyyyyyyyyyy **** improves in three years.
You should really think about migrating to Pharo30.

Stef

On 24/10/14 17:15, Dario Trussardi wrote:
Hi,

i work with Pharo 1.4.

I need to manage a packages on a local server with Monticello http repository.

I configured the Monticello repository with:
MCHttpRepository location: 'http://www.server1.com/RepositoryDTR/' user: '' password: ''

And configured the local DNS to redirect the request on the IP server

and configured the lighttpd on the server   to redirect the /RepositoryDTR/  path on the specific server path.

Now when i open the repository with Monticello i can see the hold  *.mcz package   into server 1 /RepositoryDTR/   path


I found the error:
ZnHttpUnsuccessful: 404 Not Found

 when i save,  with Monticello browser, a new package version on the server.


I need to do some initialization before use a remote http ? 


Thanks for any considerations,

Dario


This is the stack relative of the error.

VM: Mac OS - intel - 1075 - CoInterpreter VMMaker-oscog-EstebanLorenzano.161 uuid: 8e0c22c3-b48d-4d8d-a7f9-8a75dc246f28 Jul 18 2012, StackToRegisterMappingCogit VMMaker-oscog-EstebanLorenzano.161 uuid: 8e0c22c3-b48d-4d8d-a7f9-8a75dc246f28 Jul 18 2012, https://git.gitorious.org/cogvm/blessed.git Commit: 5151310c41b08f55b70e9c6250711cb1f3672ce7 Date: 2012-07-18 14:06:15 +0200 By: Camillo Bruni <[hidden email]>

Image: Pharo1.4 [Latest update: #14445]

 

ZnClient>>handleResponse

            Receiver: a ZnClient

            Arguments and temporary variables:

 

            Receiver's instance variables:

                        request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)

                        response:             a ZnResponse(404 Not Found text/html 345B)

                        connection:             nil

                        lastUsed:             nil

                        state:             #closed

                        options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...

                        session:             nil

                        log:             a ZnLogSupport

 

ZnClient>>executeWithRedirectsRemaining:

            Receiver: a ZnClient

            Arguments and temporary variables:

                        redirectCount:             3

            Receiver's instance variables:

                        request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)

                        response:             a ZnResponse(404 Not Found text/html 345B)

                        connection:             nil

                        lastUsed:             nil

                        state:             #closed

                        options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...

                        session:             nil

                        log:             a ZnLogSupport

 

[self executeWithRedirectsRemaining: self maxNumberOfRedirects] in ZnClient>>executeWithRetriesRemaining:

            Receiver: a ZnClient

            Arguments and temporary variables:

 

            Receiver's instance variables:

                        request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)

                        response:             a ZnResponse(404 Not Found text/html 345B)

                        connection:             nil

                        lastUsed:             nil

                        state:             #closed

                        options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...

                        session:             nil

                        log:             a ZnLogSupport

 

BlockClosure>>on:do:

            Receiver: [self executeWithRedirectsRemaining: self maxNumberOfRedirects]

            Arguments and temporary variables:

                        exception:             Exception

                        handlerAction:             [:exception | retryCount > 0

                        ifTrue: [self handleRetry; execut...etc...

                        handlerActive:             false

            Receiver's instance variables:

                        outerContext:             ZnClient>>executeWithRetriesRemaining:

                        startpc:             49

                        numArgs:             0

 

ZnClient>>executeWithRetriesRemaining:

            Receiver: a ZnClient

            Arguments and temporary variables:

                        retryCount:             0

            Receiver's instance variables:

                        request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)

                        response:             a ZnResponse(404 Not Found text/html 345B)

                        connection:             nil

                        lastUsed:             nil

                        state:             #closed

                        options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...

                        session:             nil

                        log:             a ZnLogSupport

 

[:exception | retryCount > 0

                        ifTrue: [self handleRetry; executeWithRetriesRemaining: retryCount - 1]

                        ifFalse: [exception pass]] in ZnClient>>executeWithRetriesRemaining:

            Receiver: a ZnClient

            Arguments and temporary variables:

                        retryCount:             HTTPProgress: Connecting to www.server1.com

                        exception:             1

            Receiver's instance variables:

                        request:             a ZnRequest(PUT /RepositoryDTR/DtrLogin-DTR.417.mcz)

                        response:             a ZnResponse(404 Not Found text/html 345B)

                        connection:             nil

                        lastUsed:             nil

                        state:             #closed

                        options:             a Dictionary(#enforceAcceptContentType->true #enforceHttpSuccess->true...etc...

                        session:             nil

                        log:             a ZnLogSupport