MathHubInfo / Legacy-localmh

DEPRECATED - A cross-repository administration tool for the local authoring in MathHub.info
1 stars 0 forks source link

lmh install seems to be unable to checkout public repositories without ssh-key #269

Closed cmaeder closed 8 years ago

cmaeder commented 8 years ago

In https://github.com/KWARC/localmh/blob/hello_test/bin/testHello.sh I needed to checkout the HelloWorld repositories manually in order to run further tests.

@kohlhase do we need an MMT issue to report failures via a final (non-zero) exit code? (see https://travis-ci.org/KWARC/localmh/builds/92687511 for current pdf and omdoc failures)

cmaeder commented 8 years ago

lmh install ... fails with

Unable to make connection
git@gl.mathhub.info's password: 
cmaeder commented 8 years ago

see https://travis-ci.org/KWARC/localmh/builds/92696706 (or branch https://github.com/KWARC/localmh/tree/lmh_install)

cmaeder commented 8 years ago

it is "lmh install -y" inside https://github.com/KWARC/localmh/blob/lmh_install/bin/testHello.sh

cmaeder commented 8 years ago

Despite installing the package python3-lxml (on trusty) I get the message:

Missing lxml module
If you are using localmh_docker you might want to:
  lmh docker pull
and re-create the image or manually run:
   lmh docker sshell; pip3 install lxml ; exit
...

see https://travis-ci.org/KWARC/localmh/builds/103622714

How do you check for lxml? Do you require a specific version?

cmaeder commented 8 years ago

It turns out that I could make it work by disallowing password ssh access for the user git on gl.mathhub.info.

The lxml installation on travis worked with sudo -i pip3 install lxml. The -i switch for sudo was needed on travis to find the proper pip3 executable. The Ubuntu package python3-lxml also works if '/usr/bin' comes earlier in the PATH.

The only problem left is that lmh install -y group/repo returns a wrong exit of 1 (that made my test script fail before appending && true to the call).

cmaeder commented 8 years ago

I had to change /etc/ssh/sshd_config on maple again. Appending:

Match user git
PasswordAuthentication no
cmaeder commented 8 years ago

I restarted the ssh daemon by invoke-rc.d ssh restart.