Succesfull install, but website does not open

Hi,

I finally managed to install erpnext production on ubuntu 14.04.

TASK [Restart the bench] *******************************************************

PLAY RECAP *********************************************************************
localhost                  : ok=53   changed=14   unreachable=0    failed=0

Frappe/ERPNext has been successfully installed!
frappe@PAVILION:~$ 

but starting the webpage http://127.0.0.1:8000 gives me this in google:

The 127.0.0.1 page isn’t working

127.0.0.1 didn’t send any data.
ERR_EMPTY_RESPONSE

bench start, does not work:

frappe@PAVILION:~$ bench start
2017-02-15 16:25:43 [8565] [ERROR] Procfile does not exist or is not a file

ps aux gives:

frappe@PAVILION:~$ ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0      0     0 ?        Ss    2433   0:00 /init
me           2  0.0  0.0      0     0 ?        Ss    2433   0:00 /bin/bash
root        14  0.0  0.0      0     0 ?        S     2433   0:00 sudo su - frappe
root        15  0.0  0.0      0     0 ?        S     2433   0:00 su - frappe
frappe      16  0.0  0.0      0     0 ?        S     2433   0:00 -su
root      1903  0.0  0.0      0     0 ?        Ss    2433   0:01 /usr/bin/python /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
me        2065  0.0  0.0      0     0 ?        Ss    2433   0:00 /bin/bash
root      2077  0.0  0.0      0     0 ?        S     2433   0:00 sudo su - frappe
root      2078  0.0  0.0      0     0 ?        S     2433   0:00 su - frappe
frappe    2079  0.0  0.0      0     0 ?        S     2433   0:00 -su
root      7177  0.0  0.0      0     0 ?        S     2433   0:00 /bin/bash /usr/bin/mysqld_safe
mysql     7416  0.0  0.0      0     0 ?        Sl    2433   0:01 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --skip-log-error --pid-file
root      7417  0.0  0.0      0     0 ?        S     2433   0:00 logger -t mysqld -p daemon.error
root      8075  0.0  0.0      0     0 ?        Ss    2433   0:00 nginx: master pr
frappe    8353  0.0  0.0      0     0 ?        Sl    2433   0:00 /usr/bin/redis-server 127.0.0.1:11000
frappe    8354  0.0  0.0      0     0 ?        Sl    2433   0:00 /usr/bin/redis-server 127.0.0.1:13000
frappe    8355  0.0  0.0      0     0 ?        Sl    2433   0:00 /usr/bin/redis-server 127.0.0.1:12000
frappe    8495  0.0  0.0      0     0 ?        S     2433   0:01 /home/frappe/frappe-bench/env/bin/python -m frappe.utils.bench_helper frappe schedule
frappe    8496  0.0  0.0      0     0 ?        S     2433   0:01 /home/frappe/frappe-bench/env/bin/python -m frappe.utils.bench_helper frappe worker --queue default
frappe    8513  0.0  0.0      0     0 ?        S     2433   0:01 /home/frappe/frappe-bench/env/bin/python -m frappe.utils.bench_helper frappe worker --queue long
frappe    8520  0.0  0.0      0     0 ?        S     2433   0:01 /home/frappe/frappe-bench/env/bin/python -m frappe.utils.bench_helper frappe worker --queue short
frappe    8539  0.0  0.0      0     0 ?        S     2433   0:01 /home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 4 -t 120 frappe.app:applica
frappe    8546  0.0  0.0      0     0 ?        Sl    2433   0:00 /usr/bin/node /home/frappe/frappe-bench/apps/frappe/socketio.js
frappe    8547  0.0  0.0      0     0 ?        S     2433   0:00 /home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 4 -t 120 frappe.app:applica
frappe    8553  0.0  0.0      0     0 ?        S     2433   0:00 /home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 4 -t 120 frappe.app:applica
frappe    8554  0.0  0.0      0     0 ?        S     2433   0:00 /home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 4 -t 120 frappe.app:applica
frappe    8555  0.0  0.0      0     0 ?        S     2433   0:00 /home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 4 -t 120 frappe.app:applica
frappe    8570  0.0  0.0      0     0 ?        R     2433   0:00 ps aux
frappe@PAVILION:~$

what is going wrong?
Thanks!

If you are doing production mode, the process is managed by supervisord you don’t need bench start.

thanks @rmehta indeed, but because i could not reach http://127.0.0.1:8000 after succesfull install, I tried bench start.
how can i restart supervisord?

You’ve got the wrong localhost ip. 127.0.0.1

@iadr3805 that was a typo, I meant 127.0.0.1, I corrected it above. Thanks for pointing out.

okay, I managed to start the production server with : service supervisor start
following programs are started

root@PAVILION:~#  service supervisor start
Starting supervisor: supervisord.
root@PAVILION:~#
root@PAVILION:~#
root@PAVILION:~# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0      0     0 ?        Ss    2433   0:00 /init
me           2  0.0  0.0      0     0 ?        Ss    2433   0:00 /bin/bash
root        20  0.0  0.0      0     0 ?        S     2433   0:00 sudo su -
root        21  0.0  0.0      0     0 ?        S     2433   0:00 su -
root        22  0.0  0.0      0     0 ?        S     2433   0:00 -su
root        50  0.0  0.0      0     0 ?        Ss    2433   0:00 /usr/bin/python /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
frappe      52  0.0  0.0      0     0 ?        S     2433   0:02 /home/frappe/frappe-bench/env/bin/python -m frappe.utils.bench_helper frappe worker --queue default
frappe      53  0.0  0.0      0     0 ?        S     2433   0:02 /home/frappe/frappe-bench/env/bin/python -m frappe.utils.bench_helper frappe schedule
frappe      55  0.0  0.0      0     0 ?        S     2433   0:02 /home/frappe/frappe-bench/env/bin/python -m frappe.utils.bench_helper frappe worker --queue long
frappe      60  0.0  0.0      0     0 ?        S     2433   0:02 /home/frappe/frappe-bench/env/bin/python -m frappe.utils.bench_helper frappe worker --queue short
frappe      61  0.0  0.0      0     0 ?        S     2433   0:01 /home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 4
frappe      62  0.0  0.0      0     0 ?        Sl    2433   0:00 /usr/bin/node /home/frappe/frappe-bench/apps/frappe/socketio.js
frappe      63  0.0  0.0      0     0 ?        Sl    2433   0:00 /usr/bin/redis-server 127.0.0.1:11000
frappe      64  0.0  0.0      0     0 ?        Sl    2433   0:00 /usr/bin/redis-server 127.0.0.1:13000
frappe      65  0.0  0.0      0     0 ?        Sl    2433   0:00 /usr/bin/redis-server 127.0.0.1:12000
frappe     127  0.0  0.0      0     0 ?        S     2433   0:00 /home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 4
frappe     128  0.0  0.0      0     0 ?        S     2433   0:00 /home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 4
frappe     129  0.0  0.0      0     0 ?        S     2433   0:00 /home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 4
frappe     130  0.0  0.0      0     0 ?        S     2433   0:00 /home/frappe/frappe-bench/env/bin/python /home/frappe/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 4
root       131  0.0  0.0      0     0 ?        R     2433   0:00 ps aux
root@PAVILION:~#

but browsing localhost:8000 still gives:

localhost didn’t send any data. ERR_EMPTY_RESPONSE

checking netstat : no ports???

root@PAVILION:~# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node   Path
root@PAVILION:~#

have you tried without the port number. just localhost
All my prod installation have been on default port 80

@iadr3805, of course I did :slight_smile: