OS → CentOS 6.5
upgrade python2.7 and all prerequisites
download of bench-repo and installation is successful.
Getting Error while running this CLI
server# bench init frappe-bench
Traceback (most recent call last):
File “/usr/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/jivant/bench-repo/bench/cli.py”, line 29, in cli
return bench()
File “/usr/lib64/python2.6/site-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/lib64/python2.6/site-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/lib64/python2.6/site-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib64/python2.6/site-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib64/python2.6/site-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/jivant/bench-repo/bench/cli.py”, line 68, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch)
File “/home/jivant/bench-repo/bench/utils.py”, line 31, in init
print ‘Directory {} already exists!’.format(path)
ValueError: zero length field name in format
Hi pdvyas
M sorry for a little mistake. Actually error start with this CLI.
bench init frappe-bench
Traceback (most recent call last):
File “/usr/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/jivant/bench-repo/bench/cli.py”, line 29, in cli
return bench()
File “/usr/lib64/python2.6/site-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/lib64/python2.6/site-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/lib64/python2.6/site-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib64/python2.6/site-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib64/python2.6/site-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/jivant/bench-repo/bench/cli.py”, line 68, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch)
File “/home/jivant/bench-repo/bench/utils.py”, line 40, in init
setup_env(bench=path)
File “/home/jivant/bench-repo/bench/utils.py”, line 65, in setup_env
exec_cmd(‘virtualenv -q {} -p {}’.format(‘env’, sys.executable), cwd=bench)
ValueError: zero length field name in format
Actually was not installing all software, so i need to install it manually.
Error Downloading Packages:
MariaDB-client-5.5.40-1.el6.x86_64: failure: rpms/MariaDB-5.5.40-centos6-x86_64-client.rpm from mariadb: [Errno 256] No more mirrors to try.
MariaDB-server-5.5.40-1.el6.x86_64: failure: rpms/MariaDB-5.5.40-centos6-x86_64-server.rpm from mariadb: [Errno 256] No more mirrors to try.
MariaDB-compat-5.5.40-1.el6.x86_64: failure: rpms/MariaDB-5.5.40-centos6-x86_64-compat.rpm from mariadb: [Errno 256] No more mirrors to try.
Hi Tried to install again by commenting initial packages and it installed completely and completed all Steps using this link
But Still i am facing these 2 issues
Whenever i am tried to reload and restart nginx server i am getting this error.
server# /etc/init.d/nginx reload
nginx: [alert] could not open error log file: open() “/var/log/nginx/error.log” failed (13: Permission denied)
2014/10/15 18:39:38 [warn] 1220#0: the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:5
2014/10/15 18:39:38 [emerg] 1220#0: open() “/var/run/nginx.pid” failed (13: Permission denied)
nginx: configuration file /etc/nginx/nginx.conf test failed
I even tried to change the ownership and permission of the log files and nginx folder to 755 and owner nginx. But still i am getting this Error.
I am not able to access Site. I tried using “curl localhost” then i am getting this Error
Hi pdvyas
I am able to resolve above issue. So now i have only one issue :-
I have installed erpnext on my virtual machine so i want to access it from my local machine, i tried to access through ip and domain as well. But i am not able to access it.
"curl localhost" and "curl ip" is working fine.
And i am getting this Error in worker.error.log file
self._register(*ident)
File “/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/kombu/transport/redis.py”, line 265, in _register
client.connection.connect()
File “/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/redis/connection.py”, line 436, in connect
raise ConnectionError(self._error_message(e))
ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
[2014-10-15 19:23:54,609: ERROR/MainProcess] consumer: Cannot connect to redis://localhost:6379//: Error 111 connecting to localhost:6379. Connection refused…
Trying again in 2.00 seconds…
Hi Pdvyas
No actually i have installed VM on my system and trying to install deployment process. Can you give me some reference that how to use NAT on machine.
Hi Pdvyas
Is it possible to install ErpNext on my hosting machine where mysql and apache is already running. As mysql is using 3309 port and http is using 80 port. As for apache it is fine, i can run nginx on any other port. But mysql is it ok to not install mysql. Because there is difference in between mysql and MariaDB.
Hi pdvyas
Actually i moved Mysql and http to some other port so that it will not create any conflicts with erpnext. But now i am getting MariaDB installation failure Error.
See full logs in following link
Please suggest me what next i can take to keep both together on server.
Hopefully i will hear from you soon.
Hi pdvyas
Actually i moved Mysql and http to some other port so that it will not create any conflicts with erpnext. But now i am getting MariaDB installation failure Error.
See full logs in following link
http://pastebin.com/j5j9fmhV1
Please suggest me what next i can take to keep both together on server.
Hopefully i will hear from you soon.
Thanks allot pdvyas
Actually i tried to find on internet and i read some forums. And i got same solutions and its working now. I am getting Error for configuration of outgoing email server as below
outgoing_email_settings/outgoing_email_settings.py", line 29, in validate
sess = smtpserver.sess
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/email_lib/smtp.py”, line 82, in sess
cint(self.port) or None)
File “/usr/lib64/python2.7/smtplib.py”, line 251, in init
(code, msg) = self.connect(host, port)
File “/usr/lib64/python2.7/smtplib.py”, line 311, in connect
self.sock = self._get_socket(host, port, self.timeout)
File “/usr/lib64/python2.7/smtplib.py”, line 286, in _get_socket
return socket.create_connection((host, port), timeout)
File “/usr/lib64/python2.7/socket.py”, line 571, in create_connection
raise err
error: [Errno 110] Connection timed out