pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/35931: monotone-server package's "monotone-server-init" script broken



>Number:         35931
>Category:       pkg
>Synopsis:       monotone-server-init seems to do the wrong thing
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 05 23:50:00 +0000 2007
>Originator:     riz%wiki.corp.revision3.com@localhost
>Release:        NetBSD 4.0_BETA2
>Organization:
        
>Environment:
        
        
System: NetBSD wiki.corp.revision3.com 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #0: 
Thu Jan 4 10:19:03 PST 2007 
riz%p1.corp.revision3.com@localhost:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
        After installing the devel/monotone-server pkg, it says to
        run "monotone-server-init", which seems to get things about
        the monotone user's home directory wrong, and results in
        a not-properly-set-up environment.
>How-To-Repeat:
        - install monotone-server package (and monotone-0.33) as
          binary packages

        - run 'monotone-server-init' using sudo, like this:

wiki:riz  ~> sudo monotone-server-init
The following user and group will be used to run the monotone server
process under a restricted account:

    User name `monotone', UID `1003'
    Group name `monotone', GID `1002'

If either the UID or the GID are inappropriate, please abort this
script now, correct them and restart the utility so that all the
files are created with the correct ownerships.

Press RETURN to continue or CTRL-C to abort.

The monotone package is currently configured to use the
/var/monotone directory to hold the public database.
You may now change this default path to something else that is
more suitable for your system, if you wish.

Enter home directory [/var/monotone]: 

In order to serve a collection, you must now create a public/private key
pair to access the database.  This has to be _different_ to the key pair
you use for development; it will only be used by the server process.

The key name should be in the form of an email address.  Typicall, it will
be something like monotone@your_host_name.

I have determined that monotone%wiki.corp.revision3.com@localhost is probably a 
good choice.

Enter key name [monotone%wiki.corp.revision3.com@localhost]: 
Initializing new home directory: `/var/monotone'
Initializing database: `/var/monotone/monotone.db'
su: no directory

Monotone will now ask you for a passphrase to protect the key pair we are
creating.  Choose a hard one and write it down temporarily; you will need
to put it in one of the configuration files in a later step.  After that,
you can forget about it (assuming you have a safe copy).

su: no directory
su: no directory
su: no directory
chown: monotone.db: No such file or directory
chown: monotone%wiki.corp.revision3.com-public@localhost: No such file or 
directory
chown: monotone%wiki.corp.revision3.com-private@localhost: No such file or 
directory
chmod: monotone.db: No such file or directory
chmod: monotone%wiki.corp.revision3.com-public@localhost: No such file or 
directory
chmod: monotone%wiki.corp.revision3.com-private@localhost: No such file or 
directory

Initialization process finished!

You should now backup the following file and store it in a safe place.
It contains the key pair that authenticates your server:

    /usr/pkg/etc/monotone-server/keys/monotone%wiki.corp.revision3.com@localhost

At last, edit the following files to finish the configuration of your
new server:

    /usr/pkg/etc/monotone-server/branches.conf
    /usr/pkg/etc/monotone-server/hooks.conf
    /usr/pkg/etc/monotone-server/read-permissions
    /usr/pkg/etc/monotone-server/write-permissions

Once finished, use the installed rc.d script (monotone) to start the
dedicated server process.

>Fix:
        I haven't worked out a fix yet - I just wanted to get this
        documented before I forget.

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index