Re: [self hosting] _almost_ got it running

183 views
Skip to first unread message

Vijay Pandurangan

unread,
Mar 15, 2015, 8:58:59 PM3/15/15
to Mike Litoris, mitr...@googlegroups.com, Evan Jones


On Tuesday, March 10, 2015, Mike Litoris <alca...@gmail.com> wrote:
Hi,

I've succefully managed to get Mitro connect to db and started it. But I'm unable to "connect to https://localhost:8443/mitro-core", I'm getting 404. Any tips?

I think you have to try a different url, namely /mitro-core/BuildMetdata or something. I can't remember offhand but the docs should explain this

Also, some more questions ;)

1) What is this key generating procedure at the start? Any way to do this just once? Takes a lot of time on my VDS.
The keys are used when inviting a new user who does not already have an account. Precomputing the keys and keeping them around is not recommended, as anyone with access to the keys would be able to access secrets shared with new users.  The keys are generated in the background, so it should not block execution of the mitro jar.
 
2) I'm not really familiar with Java and Ant, but is it possible to compile Mitro to one jar [to rule them all] and just keep this one jar?
It's already configured that way; ant should create a single jar for you!
 

And slightly offtopic: how are things with Firefox extension? Does it work?

Thanks a lot,
Mike

--
You received this message because you are subscribed to the Google Groups "Mitro developers list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mitro-dev+...@googlegroups.com.
To post to this group, send email to mitr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mitro-dev/5a122459-b013-4b47-9d9a-1342d3f36d01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vijay Pandurangan

unread,
Mar 16, 2015, 7:40:02 AM3/16/15
to Mikhail Gorbulev, mitr...@googlegroups.com, Evan Jones
Look at the command line ant server generates and invoke Java with the same args
On Mon, Mar 16, 2015 at 4:01 AM Mikhail Gorbulev <alca...@gmail.com> wrote:
Hi Vijay,
thanks for the answer.

I have found the jar you mentioned. I run it with java -jar -ea mitrocore.jar. However, it quits with exceptions:
Exception in thread "main" java.lang.RuntimeException: Unable to load signing key
        at co.mitro.core.server.SecretsBundle.<init>(SecretsBundle.java:54)
        at co.mitro.core.server.Main.main(Main.java:302)
Caused by: org.keyczar.exceptions.KeyczarException: Error reading file: mitrocore_secrets/sign_keyczar/meta
Caused by: java.io.FileNotFoundException: mitrocore_secrets/sign_keyczar/meta (No such file or directory)

Is there anything I should run in order to get it running?

I would like to clarify that before that I was running it with "ant server", however I would really like to run it as a standalone jar.

Thanks,
M.

Vijay Pandurangan

unread,
Mar 16, 2015, 8:16:18 AM3/16/15
to Mikhail Gorbulev, mitr...@googlegroups.com, Evan Jones
The regression test does that. You will find stuff to preconpute checked in.  You can also reduce chahge the constant that governs how many keys are precomputed and how long they take to expire

On Monday, March 16, 2015, Mikhail Gorbulev <alca...@gmail.com> wrote:
Thanks.

What if I still want to precompute keys in order to make it faster to start up with an init script? I do realize security risks, but I'm planning to use it myself only.

M.


On 16/03/15 12:40, Vijay Pandurangan wrote:
Look at the command line ant server generates and invoke Java with the
same args
On Mon, Mar 16, 2015 at 4:01 AM Mikhail Gorbulev <alca...@gmail.com
<mailto:alca...@gmail.com>> wrote:

    Hi Vijay,
    thanks for the answer.

    I have found the jar you mentioned. I run it with java -jar -ea
    mitrocore.jar. However, it quits with exceptions:
    Exception in thread "main" java.lang.RuntimeException: Unable to
    load signing key
             at
    co.mitro.core.server.SecretsBundle.<init>(SecretsBundle.java:54)
             at co.mitro.core.server.Main.main(Main.java:302)
    Caused by: org.keyczar.exceptions.KeyczarException: Error reading
    file: mitrocore_secrets/sign_keyczar/meta
    Caused by: java.io.FileNotFoundException:
    mitrocore_secrets/sign_keyczar/meta (No such file or directory)

    Is there anything I should run in order to get it running?

    I would like to clarify that before that I was running it with "ant
    server", however I would really like to run it as a standalone jar.

    Thanks,
    M.


    On Mon, Mar 16, 2015 at 1:58 AM Vijay Pandurangan <vij...@gmail.com
    <mailto:vij...@gmail.com>> wrote:



        On Tuesday, March 10, 2015, Mike Litoris <alca...@gmail.com
            <https://groups.google.com/d/msgid/mitro-dev/5a122459-b013-4b47-9d9a-1342d3f36d01%40googlegroups.com?utm_medium=email&utm_source=footer>.

            For more options, visit https://groups.google.com/d/optout.


--
M.
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages