scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
833 stars 90 forks source link

Unable to run realms-wiki in production mode #58

Open magic890 opened 9 years ago

magic890 commented 9 years ago

I'm trying to run realms-wiki as root using realms-wiki run or realms-wiki start. I get this output:

Server started. Port: 5000
Using default configuration

or

Server started. Port: 5000
Using config: ./realms-wiki.json

Now If I try to go on http://localhost:5000 I get: ERR_CONNECTION_REFUSED.

If I run the same wiki using realms-wiki dev, this is the output:

Starting development server
Using config: ./realms-wiki.json
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
 * Restarting with stat
Starting development server
Using config: ./realms-wiki.json

and the wiki is working.

Another strange behaviour is that after started the server, if I check its status, the server is turned off:

root@MACHINE:/opt# realms-wiki start
Server started. Port: 5000
Using config: ./realms-wiki.json
root@MACHINE:/opt# realms-wiki status
Server is not running

Python 2.7.9 and pip 1.5.6.

What is going wrong here?

scragg0x commented 9 years ago

How did you install realms-wiki? pypi? source? Does which gunicorn return anything?

zeigerpuppy commented 8 years ago

i am having the same problem, install was by: debian: sudo apt-get install -y python-pip python-dev libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libyaml-dev libssl-dev

pip install realms-wiki

scragg0x commented 8 years ago

What does realms-wiki version return

zeigerpuppy commented 8 years ago

version 0.5.4

scragg0x commented 8 years ago

I'm having a hard time duplicating this. I will have to tryt with a fresh VM.

zeigerpuppy commented 8 years ago

is there a way to give you more complete logs? The behaviour I am seeing is identical to @magic890

nzuhdi commented 8 years ago

which version of Debian you're on? @zeigerpuppy @magic890.

zeigerpuppy commented 8 years ago

I'm running a Wheezy system with a few unstable packages too.

nzuhdi commented 8 years ago

It is working on my Wheezy system though. Here's the version that I've tested with.

root@echidna:~# uname -ar
Linux echidna 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u1 x86_64 GNU/Linux
root@echidna:~# python -V
Python 2.7.3
root@echidna:~# pip --version
pip 1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
root@echidna:~# node -v
v5.3.0
(.venv)root@echidna:~/realms-wiki# realms-wiki version
0.6.1
(.venv)root@echidna:~/realms-wiki# bower -v
1.7.1