Unable to launch the ERPNext

344 views
Skip to first unread message

Prasad Bandale

unread,
Nov 28, 2012, 12:07:48 AM11/28/12
to erpnext-dev...@googlegroups.com
Hello
As per below given link. I have done all the settings. Installation is completed successfully.

But still I m not able to run the ERPNext. following error occurred. 

Forbidden

You don't have permission to access /web.py on this server.


Apache/2.2.15 (CentOS) Server at 172.100.1.31 Port 8080

Please help me.

Warm Regards,
Prasad Bandale

Rushabh Mehta

unread,
Nov 28, 2012, 12:12:33 AM11/28/12
to erpnext-dev...@googlegroups.com
Prasad,

You need to give read + write  + execute permissions on the public folder.

Please make sure you have added all the apache http settings correctly

- Rushabh


W: https://erpnext.com
T: @rushabh_mehta

--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/vX3nCsfwJeMJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Prasad Bandale

unread,
Nov 28, 2012, 12:28:51 AM11/28/12
to erpnext-dev...@googlegroups.com
After giving read + write  + execute permissions on the public folder, it is showing same error.




On Wednesday, November 28, 2012 10:42:33 AM UTC+5:30, rushabh wrote:
Prasad,

You need to give read + write  + execute permissions on the public folder.

Please make sure you have added all the apache http settings correctly

- Rushabh


W: https://erpnext.com
T: @rushabh_mehta

On 28-Nov-2012, at 10:37 AM, Prasad Bandale <prasad....@gmail.com> wrote:

Hello
As per below given link. I have done all the settings. Installation is completed successfully.

But still I m not able to run the ERPNext. following error occurred. 

Forbidden

You don't have permission to access /web.py on this server.


Apache/2.2.15 (CentOS) Server at 172.100.1.31 Port 8080

Please help me.

Warm Regards,
Prasad Bandale


--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+unsub...@googlegroups.com.

Rushabh Mehta

unread,
Nov 28, 2012, 8:53:23 PM11/28/12
to erpnext-dev...@googlegroups.com
You will have to debug your apache settings. Really hard to tell without more details.

Sent from mobile
To unsubscribe from this group, send email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/ZhWXLbJ7PoAJ.

Madhan kumar

unread,
Nov 30, 2012, 12:09:29 AM11/30/12
to erpnext-dev...@googlegroups.com
Prasad,

check the permission of web.py using ls -l public when you are in erpnext folder

if its permission is not set to rwxrwxrwx set permission of web.py using chmod 777 web.py 

also check the permission of erpnext folder is rwxr-xr-x.


Prasad Bandale

unread,
Nov 30, 2012, 2:14:27 AM11/30/12
to erpnext-dev...@googlegroups.com
Dear Madhan kumar
web.py (~/erpnext/public/) link has a 777 permission & orginal location (~/erpnext/lib/public/html) has a 755 permission.
when I typed http://localhost:8080, it shows content of the file.

Rushabh Mehta

unread,
Nov 30, 2012, 3:47:56 AM11/30/12
to erpnext-dev...@googlegroups.com
Prasad,

You have not setup the cgi handlers in Apache. Please check the apache settings in the Install page.

best,
Rushabh


W: https://erpnext.com
T: @rushabh_mehta

--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer...@googlegroups.com.

Prasad Bandale

unread,
Dec 22, 2012, 2:18:18 AM12/22/12
to erpnext-dev...@googlegroups.com
url :// localhost:8080
getting following error,
--> --> -->
 
 
<type 'exceptions.ImportError'>
Python 2.6.6: /usr/bin/python
Sat Dec 22 12:41:50 2012

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/www/html/erpnext/public/web.py in ()
   44         return website.utils.render(webnotes.form_dict.get('page'))
   45 
   46 if __name__=="__main__":
   47         init()
   48         respond()
respond = <function respond>
 /var/www/html/erpnext/public/web.py in respond()
   42         import webnotes
   43         import website.utils
   44         return website.utils.render(webnotes.form_dict.get('page'))
   45 
   46 if __name__=="__main__":
website = <module 'website' from '../app/website/__init__.pyc'>, website.utils = <module 'website.utils' from '../app/website/utils.pyc'>, website.utils.render = <function render>, webnotes = <module 'webnotes' from '../lib/webnotes/__init__.pyc'>, webnotes.form_dict = {}, webnotes.form_dict.get = <built-in method get of _dict object>
 /var/www/html/erpnext/app/website/utils.py in render(page_name=None)
   49                         html = get_html('index')
   50         except Exception, e:
   51                 html = get_html('error')
   52 
   53         from webnotes.handler import eprint, print_zip
html undefined, global get_html = <function get_html>
 /var/www/html/erpnext/app/website/utils.py in get_html(page_name=u'error')
   67 
   68         if not html:
   69                 html = load_into_cache(page_name)
   70                 from_cache = False
   71         
html = None, global load_into_cache = <function load_into_cache>, page_name = u'error'
 /var/www/html/erpnext/app/website/utils.py in load_into_cache(page_name=u'error')
  114         if not args:
  115                 return ""
  116         html = build_html(args)
  117         webnotes.cache().set_value("page:" + page_name, html)
  118         return html
html undefined, global build_html = <function build_html>, args = {u'brand': u'ERPNext', u'copyright': None, u'favicon': None, u'footer_items': [], u'int': <type 'int'>, u'name': u'error', u'template': u'pages/error.html', u'top_bar_items': []}
 /var/www/html/erpnext/app/website/utils.py in build_html(args={u'brand': u'ERPNext', u'copyright': None, u'favicon': None, u'footer_items': [], u'int': <type 'int'>, u'name': u'error', u'template': u'pages/error.html', u'top_bar_items': []})
  119 
  120 def build_html(args):
  121         from jinja2 import Environment, FileSystemLoader
  122 
  123         templates_path = os.path.join(os.path.dirname(conf.__file__), 
jinja2 undefined, Environment undefined, FileSystemLoader undefined

<type 'exceptions.ImportError'>: No module named jinja2
      args = ('No module named jinja2',)
      message = 'No module named jinja2'

---------------------------------------------------------------------------------------------------------------------------------------------------------------

httpd.conf file settings as follows

<VirtualHost *:8080>
DocumentRoot "/var/www/html/erpnext/public"
ServerName localhost
AddHandler cgi-script .cgi .xml .py
        <Directory "/var/www/html/erpnext/public">
                # directory specific options
                Options -Indexes +FollowSymLinks +ExecCGI

                # directory's index file
                DirectoryIndex web.py

                # rewrite rule
                RewriteEngine on

                # condition 1:
                # ignore login-page.html, app.html, blank.html, unsupported.html
                RewriteCond %{REQUEST_URI} ^((?!app\.html|blank\.html|unsupported\.html).)*$

                # condition 2: if there are no slashes
                # and file is .html or does not containt a .
                RewriteCond %{REQUEST_URI} ^(?!.+/)((.+\.html)|([^.]+))$

                # rewrite if both of the above conditions are true
                RewriteRule ^(.+)$ web.py?page=$1 [NC,L]

                AllowOverride all
                Order Allow,Deny
                Allow from all
        </Directory>
</VirtualHost>





--
Prasad
http://prasadbandale.blogspot.com/

Rushabh Mehta

unread,
Dec 22, 2012, 2:27:51 AM12/22/12
to erpnext-dev...@googlegroups.com
You will have to install the python library jinja2. Please see install instructions.

sudo easy_install jinja2

Should fix it

Sent from mobile

Prasad Bandale

unread,
Dec 22, 2012, 6:47:08 AM12/22/12
to erpnext-dev...@googlegroups.com
Thanks. now it is working. but I m getting 2 errors

1. while login it is giving error " memcached is not working / stopped. Please start memcached for best results."

2. while setting up Email and Notifications it is giving error "Invalid Outgoing Mail Server or Port. Please rectify and try again."
Inline image 1
Inline image 2
--
Prasad
http://prasadbandale.blogspot.com/
smtp error.png
memcached error.png

Rushabh Mehta

unread,
Dec 22, 2012, 6:53:48 AM12/22/12
to erpnext-dev...@googlegroups.com
Both messages are self explanatory!

Sent from mobile

On 22-Dec-2012, at 5:17 PM, Prasad Bandale <prasad....@gmail.com> wrote:

Thanks. now it is working. but I m getting 2 errors

1. while login it is giving error " memcached is not working / stopped. Please start memcached for best results."

2. while setting up Email and Notifications it is giving error "Invalid Outgoing Mail Server or Port. Please rectify and try again."
<memcached error.png>
<smtp error.png>

Prasad Bandale

unread,
Dec 23, 2012, 10:48:58 AM12/23/12
to erpnext-dev...@googlegroups.com
memcached & SMTP server both are running, Still erpnext is showing below error.

Rushabh Mehta

unread,
Dec 23, 2012, 12:26:15 PM12/23/12
to erpnext-dev...@googlegroups.com
Then there must be something in the setting. Its working okay for me.



W: https://erpnext.com
T: @rushabh_mehta

Anand Doshi

unread,
Dec 23, 2012, 12:30:52 PM12/23/12
to ERPNext Developer's Forum

To check if memcache daemon is working,
Try running from terminal
ps aux | grep memcached

Also, go to setup / email settings and save them. If it doesn't throw error, then the email settings are correct otherwise not.

Thanks
Anand.

Reply all
Reply to author
Forward
0 new messages