Dedicated server and writable url

Asked by Vladislav Krejcirik on 2011-07-25

Hi,

I'm new in Bazaar. I tried to install Bazaar as dedicated server. I proceed according to the Bazaar documentation.
On server I started:

1) bzr init-repo /srv/bzr/repo
2) I created new folder trunk there
3) bzr init trunk

Then I ran server:

45$bzr serve --directory=/srv/bzr/repo
listening on port: 4155

On client I did checkout. (Client is now on the same machine)

1) bzr checkout bzr://localhost/trunk
2) I created new text file and wrote there some text..
3) I tried to commit changes, but I got:

91$bzr commit -m "add file" bzr://localhost/trunk
bzr: ERROR: Cannot lock LockDir(filtered-169082380:///trunk/.bzr/branch/lock): Transport operation not possible: readonly transport
~/test/trunk/.bzr/branch

I read something about writable URL, but how can I retrieve that? Did I something wrong?

Thanks in advance,

Vlad

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
2011-07-25
Last reply:
2011-07-26
John A Meinel (jameinel) said : #1

You need to run bzr serve --allow-writes

John
=:->
On Jul 25, 2011 6:46 PM, "Vladislav Krejcirik" <
<email address hidden>> wrote:
> New question #165957 on Bazaar:
> https://answers.launchpad.net/bzr/+question/165957
>
> Hi,
>
> I'm new in Bazaar. I tried to install Bazaar as dedicated server. I
proceed according to the Bazaar documentation.
> On server I started:
>
> 1) bzr init-repo /srv/bzr/repo
> 2) I created new folder trunk there
> 3) bzr init trunk
>
> Then I ran server:
>
> 45$bzr serve --directory=/srv/bzr/repo
> listening on port: 4155
>
> On client I did checkout. (Client is now on the same machine)
>
> 1) bzr checkout bzr://localhost/trunk
> 2) I created new text file and wrote there some text..
> 3) I tried to commit changes, but I got:
>
> 91$bzr commit -m "add file" bzr://localhost/trunk
> bzr: ERROR: Cannot lock
LockDir(filtered-169082380:///trunk/.bzr/branch/lock): Transport operation
not possible: readonly transport
> ~/test/trunk/.bzr/branch
>
>
> I read something about writable URL, but how can I retrieve that? Did I
something wrong?
>
> Thanks in advance,
>
> Vlad
>
>
> --
> You received this question notification because you are an answer
> contact for Bazaar.

Martin Pool (mbp) said : #2

I would really recommend that rather than using --allow-writes on the
network, you instead access bzr over ssh. A public writable tcp
server is a security incident waiting to happen.

Can you help with this problem?

Provide an answer of your own, or ask Vladislav Krejcirik for more information if necessary.

To post a message you must log in.