I am getting the following error when i try to install erpnext on my system.
Pc:~/ERPNext$ sudo bash setup_frappe.sh
Installing for Ubuntu trusty amd64
In case you encounter an error, you can post on https://discuss.frappe.io
Adding ubuntu mariadb repo
Installing packages for Ubuntu. This might take time…
Reading package lists…
Building dependency tree…
Reading state information…
build-essential is already the newest version.
libxslt1.1 is already the newest version.
libxslt1.1 set to manually installed.
xfonts-base is already the newest version.
xfonts-base set to manually installed.
fontconfig is already the newest version.
fontconfig set to manually installed.
git is already the newest version.
libxext6 is already the newest version.
libxext6 set to manually installed.
libxrender1 is already the newest version.
libxrender1 set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libmariadbclient-dev : Depends: libmariadbclient18 (>= 10.0.24+maria-1~trusty) but it is not going to be installed
mariadb-server : Depends: mariadb-server-10.0 (= 10.0.24+maria-1~trusty) but it is not going to be installed
python-mysqldb : Depends: libmysqlclient18 (>= 5.5.13-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
When i try with production
Pc:~/ERPNext$ sudo bash setup_frappe.sh
Installing for Ubuntu trusty amd64
In case you encounter an error, you can post on https://discuss.frappe.io
Adding ubuntu mariadb repo
Installing packages for Ubuntu. This might take time…
Reading package lists…
Building dependency tree…
Reading state information…
build-essential is already the newest version.
libxslt1.1 is already the newest version.
libxslt1.1 set to manually installed.
xfonts-base is already the newest version.
xfonts-base set to manually installed.
fontconfig is already the newest version.
fontconfig set to manually installed.
git is already the newest version.
libxext6 is already the newest version.
libxext6 set to manually installed.
libxrender1 is already the newest version.
libxrender1 set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libmariadbclient-dev : Depends: libmariadbclient18 (>= 10.0.24+maria-1~trusty) but it is not going to be installed
mariadb-server : Depends: mariadb-server-10.0 (= 10.0.24+maria-1~trusty) but it is not going to be installed
python-mysqldb : Depends: libmysqlclient18 (>= 5.5.13-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
-Pc:~/frappe-bench$ bench start
18:40:39 system | worker_long.1 started (pid=7321)
18:40:39 system | socketio.1 started (pid=7339)
18:40:39 system | redis_cache.1 started (pid=7346)
18:40:39 system | watch.1 started (pid=7323)
18:40:39 system | web.1 started (pid=7343)
18:40:39 system | redis_queue.1 started (pid=7328)
18:40:39 redis_queue.1 | [7344] 14 May 18:40:39.962 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
18:40:39 redis_queue.1 | .
18:40:39 redis_queue.1 | .-__ ''-._ 18:40:39 redis_queue.1 | _.-. . ‘’-._ Redis 2.8.4 (00000000/0) 64 bit
18:40:39 redis_queue.1 | .- .-```. ```\/ _.,_ ''-._ 18:40:39 redis_queue.1 | ( ' , .-` | `, ) Running in stand alone mode 18:40:39 redis_queue.1 | |`-._`-...-` __...-.-.|'_.-'| Port: 11000 18:40:39 redis_queue.1 | | -.._ / _.-' | PID: 7344 18:40:39 redis_queue.1 | -._ -._ -./ .-’ .-’
18:40:39 redis_queue.1 | |-._-.-.__.-' _.-'_.-'| 18:40:39 redis_queue.1 | | -.-._ _.-'_.-' | http://redis.io 18:40:39 redis_queue.1 | -._ -._-..-'.-’ .-’
18:40:39 redis_queue.1 | |-._-.-.__.-' _.-'_.-'| 18:40:39 redis_queue.1 | | -.-._ _.-'_.-' | 18:40:39 redis_queue.1 | -._ -._-..-‘.-’ .-’
18:40:39 redis_queue.1 | -._ -..-’ _.-’
18:40:39 redis_queue.1 | -._ _.-' 18:40:39 redis_queue.1 | -..-’
18:40:39 redis_queue.1 |
18:40:39 redis_queue.1 | [7344] 14 May 18:40:39.963 # Server started, Redis version 2.8.4
18:40:39 redis_queue.1 | [7344] 14 May 18:40:39.963 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
18:40:39 redis_queue.1 | [7344] 14 May 18:40:39.963 * The server is now ready to accept connections on port 11000
18:40:39 redis_cache.1 | [7348] 14 May 18:40:39.962 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
18:40:39 redis_cache.1 | .
18:40:39 redis_cache.1 | .-__ ''-._ 18:40:39 redis_cache.1 | _.-. . ‘’-. Redis 2.8.4 (00000000/0) 64 bit
18:40:39 redis_cache.1 | .- .-```. ```\/ _.,_ ''-._ 18:40:39 redis_cache.1 | ( ' , .-` | `, ) Running in stand alone mode 18:40:39 redis_cache.1 | |`-._`-...-` __...-.-.|’_.-'| Port: 13000 18:40:39 redis_cache.1 | | -._ ._ / _.-' | PID: 7348 18:40:39 redis_cache.1 | -._ -._ -./ .-’ .-’
18:40:39 redis_cache.1 | |-._-.-.__.-' _.-'_.-'| 18:40:39 redis_cache.1 | | -.-._ _.-'_.-' | http://redis.io 18:40:39 redis_cache.1 | -._ -._-..-'.-’ .-’
18:40:39 redis_cache.1 | |-._-.-.__.-' _.-'_.-'| 18:40:39 redis_cache.1 | | -.-._ _.-'_.-' | 18:40:39 redis_cache.1 | -._ -._-..-‘.-’ .-’
18:40:39 redis_cache.1 | -._ -..-’ _.-’
18:40:39 redis_cache.1 | -._ _.-' 18:40:39 redis_cache.1 | -..-’
18:40:39 redis_cache.1 |
18:40:39 redis_cache.1 | [7348] 14 May 18:40:39.962 # Server started, Redis version 2.8.4
18:40:39 redis_cache.1 | [7348] 14 May 18:40:39.962 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
18:40:39 redis_cache.1 | [7348] 14 May 18:40:39.962 * The server is now ready to accept connections on port 13000
18:40:39 system | schedule.1 started (pid=7341)
18:40:39 system | redis_socketio.1 started (pid=7320)
18:40:39 redis_socketio.1 | [7326] 14 May 18:40:39.952 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
18:40:39 redis_socketio.1 | .
18:40:39 redis_socketio.1 | .-__ ''-._ 18:40:39 redis_socketio.1 | _.-. . ‘’-. Redis 2.8.4 (00000000/0) 64 bit
18:40:39 redis_socketio.1 | .- .-```. ```\/ _.,_ ''-._ 18:40:39 redis_socketio.1 | ( ' , .-` | `, ) Running in stand alone mode 18:40:39 redis_socketio.1 | |`-._`-...-` __...-.-.|’_.-'| Port: 12000 18:40:39 redis_socketio.1 | | -._ ._ / _.-' | PID: 7326 18:40:39 redis_socketio.1 | -._ -._ -./ .-’ .-’
18:40:39 redis_socketio.1 | |-._-.-.__.-' _.-'_.-'| 18:40:39 redis_socketio.1 | | -.-._ _.-'_.-' | http://redis.io 18:40:39 redis_socketio.1 | -._ -._-..-'.-’ .-’
18:40:39 redis_socketio.1 | |-._-.-.__.-' _.-'_.-'| 18:40:39 redis_socketio.1 | | -.-._ _.-'_.-' | 18:40:39 redis_socketio.1 | -._ -._-..-‘_.-’ _.-’
18:40:39 redis_socketio.1 | -._ -..-’ _.-’
18:40:39 redis_socketio.1 | -._ _.-' 18:40:39 redis_socketio.1 | -..-’
18:40:39 redis_socketio.1 |
18:40:39 redis_socketio.1 | [7326] 14 May 18:40:39.952 # Server started, Redis version 2.8.4
18:40:39 redis_socketio.1 | [7326] 14 May 18:40:39.952 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
18:40:39 redis_socketio.1 | [7326] 14 May 18:40:39.952 * The server is now ready to accept connections on port 12000
18:40:40 system | worker_default.1 started (pid=7330)
18:40:40 system | worker_short.1 started (pid=7359)
18:40:40 socketio.1 | module.js:338
18:40:40 socketio.1 | throw err;
18:40:40 socketio.1 | ^
18:40:40 socketio.1 | Error: Cannot find module ‘express’
18:40:40 socketio.1 | at Function.Module._resolveFilename (module.js:336:15)
18:40:40 socketio.1 | at Function.Module._load (module.js:278:25)
18:40:40 socketio.1 | at Module.require (module.js:365:17)
18:40:40 socketio.1 | at require (module.js:384:17)
18:40:40 socketio.1 | at Object. (/home/fsalman/frappe-bench/apps/frappe/socketio.js:1:73)
18:40:40 socketio.1 | at Module._compile (module.js:460:26)
18:40:40 socketio.1 | at Object.Module._extensions…js (module.js:478:10)
18:40:40 socketio.1 | at Module.load (module.js:355:32)
18:40:40 socketio.1 | at Function.Module._load (module.js:310:12)
18:40:40 socketio.1 | at Function.Module.runMain (module.js:501:10)
18:40:40 system | socketio.1 stopped (rc=1)
18:40:40 system | sending SIGTERM to redis_socketio.1 (pid 7320)
18:40:40 system | sending SIGTERM to worker_long.1 (pid 7321)
18:40:40 system | sending SIGTERM to watch.1 (pid 7323)
18:40:40 system | sending SIGTERM to redis_queue.1 (pid 7328)
18:40:40 system | sending SIGTERM to web.1 (pid 7343)
18:40:40 system | sending SIGTERM to schedule.1 (pid 7341)
18:40:40 system | sending SIGTERM to worker_default.1 (pid 7330)
18:40:40 system | sending SIGTERM to redis_cache.1 (pid 7346)
18:40:40 system | sending SIGTERM to worker_short.1 (pid 7359)
18:40:40 redis_socketio.1 | [7326 | signal handler] (1463240440) Received SIGTERM, scheduling shutdown…
18:40:40 redis_queue.1 | [7344 | signal handler] (1463240440) Received SIGTERM, scheduling shutdown…
18:40:40 redis_cache.1 | [7348 | signal handler] (1463240440) Received SIGTERM, scheduling shutdown…
18:40:40 system | worker_long.1 stopped (rc=-15)
18:40:40 system | worker_default.1 stopped (rc=-15)
18:40:40 system | schedule.1 stopped (rc=-15)
18:40:40 system | watch.1 stopped (rc=-15)
18:40:40 system | worker_short.1 stopped (rc=-15)
18:40:40 system | web.1 stopped (rc=-15)
18:40:40 redis_socketio.1 | [7326] 14 May 18:40:40.255 # User requested shutdown…
18:40:40 redis_socketio.1 | [7326] 14 May 18:40:40.255 # Redis is now ready to exit, bye bye…
18:40:40 system | redis_socketio.1 stopped (rc=-15)
18:40:40 redis_queue.1 | [7344] 14 May 18:40:40.263 # User requested shutdown…
18:40:40 redis_queue.1 | [7344] 14 May 18:40:40.263 # Redis is now ready to exit, bye bye…
18:40:40 system | redis_queue.1 stopped (rc=-15)
18:40:40 redis_cache.1 | [7348] 14 May 18:40:40.266 # User requested shutdown…
18:40:40 redis_cache.1 | [7348] 14 May 18:40:40.266 # Redis is now ready to exit, bye bye…
18:40:40 system | redis_cache.1 stopped (rc=-15)
Everything is install on my ubuntu pc but still not able to browse the erpnext login page.
localhost:8000 cant be reached where as localhost shows “welcome to nginx”
Can anyone help me with this ? Above is the log when i do ‘bench start’.
Please try this . You need to go to the bench-repo directory and do git checkout develop followed by gitpull. After that back in the frappe-bench folder you need to run bench setup procfile and then do bench update and then bench start and dont forget to restart your computer after doing this .
I had the same problem thanks to vjFaLk he solved my problem .
I am not sure but this could help you , bench-repo directory and do git checkout master followed by git pull. After that back in the frappe-bench folder you need to runbench setup procfileand then dobench updateand then bench start and dont forget to restart your computer after doing this .
First we tried to install developer setup , try to install master setup with the above code . This might help .
Hello All,
Instead of opening new thread. I am asking here.
I tried the new script on a fresh Ubuntu Server with gui. And i the installation asking for Mysql password and I tried searching for the frappe folder everywhere but cant find it anywhere even in root folder its not there.
Where does the new script install the frappe and frappe-bench folder?
Please reply asap.
thanks
This is where you should provide your choice of password and keep it safe as you will need this MySQL root password everything you do add, remove etc. using bench tool on CLI.
frappe if you have given as username during install.py then
on doing sudo su - frappe will give you frappe user prompt.
Standard path for frappe user and frappe-bench is as per bench version 4 (latest stable) follows:
Full Path: /home/frappe/frappe-bench/
apps
config
env
logs
node_modules
patches.txt
Procfile
sites
Bench (cli) Full path: /home/frappe/.bench/
Path to run bench: frappe@yoursystem:~/frappe-bench$ bench --help