charlesthomas / magpie

Git-backed Evernote replacement
MIT License
645 stars 50 forks source link

500: Internal Server Error #35

Closed lorenzo95 closed 10 years ago

lorenzo95 commented 10 years ago

Hi there.

I install magpie without any issues. I can launch it the first time. As soon as I configure the git location (local) it gives me error 500 on some pages. I can still manually access the config page but can not use the tool. Here is the uncaught exception.

Ubuntu 14.04 LTS

[E 140702 18:07:28 web:1305] Uncaught exception GET / (127.0.0.1) HTTPRequest(protocol='http', host='localhost:8080', method='GET', uri='/', version='HTTP/1.1', remoteip='127.0.0.1', headers={'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Host': 'localhost:8080', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,/_;q=0.8', 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0', 'Connection': 'keep-alive', 'Referer': 'http://localhost:8080/config', 'Cookie': 'session=t1h20jzh9pkiZQqng1qZIsQ5f7kr5ZRQJqcDUK0BvZYXetXCX2oqp2EtRXr902h7'}) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1218, in _when_complete callback() File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1239, in _execute_method self._when_complete(method(_self.path_args, _self.path_kwargs), File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 2395, in wrapper return method(self, _args, _kwargs) File "/usr/local/lib/python2.7/dist-packages/magpie/handler/index.py", line 23, in get self.application.git.status() File "/usr/local/lib/python2.7/dist-packages/sh.py", line 769, in call return RunningCommand(cmd, call_args, stdin, stdout, stderr) File "/usr/local/lib/python2.7/dist-packages/sh.py", line 330, in init self.wait() File "/usr/local/lib/python2.7/dist-packages/sh.py", line 334, in wait self._handle_exit_code(self.process.wait()) File "/usr/local/lib/python2.7/dist-packages/sh.py", line 348, in _handle_exit_code self.process.stderr ErrorReturnCode_128:

  RAN: '/usr/bin/git status'

  STDOUT:

  STDERR:
fatal: This operation must be run in a work tree

manually running git status in the git repo dir returns git status On branch master Initial commit nothing to commit (create/copy files and use "git add" to track)

lorenzo95 commented 10 years ago

My Fault.

Erwyn commented 10 years ago

Just for the record, what was it coming from?

lorenzo95 commented 10 years ago

It was something with the git. I had to delete it, make a new folder, re-initialized it and it started working.

On Fri, Jul 4, 2014 at 1:33 AM, Martin Goyot notifications@github.com wrote:

Just for the record, what was it coming from?

— Reply to this email directly or view it on GitHub https://github.com/charlesthomas/magpie/issues/35#issuecomment-48016098.

Erwyn commented 10 years ago

Okay, thank you!