CentOS 7: Want a functional loggerhead
William Grant
william.grant at canonical.com
Thu Oct 8 22:57:53 UTC 2015
On 09/10/15 09:20, Kevin R. Bulgrien wrote:
> To bring this thread around to some closure:
>
>> $ cat /etc/redhat-release && /home/app/bin/serve-branches ~/bzr/blah
>> CentOS Linux release 7.1.1503 (Core)
>> DEBUG:paste.httpserver.ThreadPool:Started new worker 139704170727168: Initial
>> worker pool
>> <snip />
>> serving on 0.0.0.0:8080 view at http://127.0.0.1:8080
>>
>> $ lynx http://localhost:8080/
>> Alert!: HTTP/1.0 404 Not Found
>
> All my problems with 404s go away on CentOS 7 if I change the command used
> to invoke serve-branches:
>
> 1) Add --allow-writes to the serve-branches command line.
>
> 2) Do not add --allow-writes, but do prefix the served path with "file://".
>
> Thanks to William Grant for this tip. He had a hunch that my issue might be
> related to:
>
> https://bugs.launchpad.net/loggerhead/+bug/1097567
>
> I'm not exactly sure how he came up with the suggestions that worked...
>
> So I still don't know why CentOS 7 needs these things and other operating
> systems do not, but bug 1097567 questions whether the issue might be
> related to middleware.
>
> I also reported success here:
>
> https://answers.launchpad.net/loggerhead/+question/271275/
The problem is in loggerhead/main.py's get_config_and_path. If
allow_writes isn't set, it prepends "readonly+" to the base -- but that
only makes sense if the base is a URL rather than a path.
Loggerhead should probably turn a naked path into a file:/// URL before
it gets to that point.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20151009/f34577b7/attachment.pgp>
More information about the bazaar
mailing list