memcache.MemcachedKeyCharacterError

29 views
Skip to first unread message

Roopak Jada

unread,
Jun 22, 2014, 3:32:36 PM6/22/14
to erpnext-dev...@googlegroups.com
Hello

I was trying to install erpnext and was sucessfully able to install it however when i open localhost:8000 I get the following error


Traceback (most recent call last):
  File "/home/erpnext/erpnext/lib/webnotes/middlewares.py", line 12, in __call__
    return super(StaticDataMiddleware, self).__call__(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 588, in __call__
    return self.app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/local.py", line 224, in application
    return ClosingIterator(app(environ, start_response), self.cleanup)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/wrappers.py", line 286, in application
    return f(*args[:-2] + (request,))(*args[-2:])
  File "/home/erpnext/erpnext/lib/webnotes/app.py", line 50, in application
    webnotes.http_request = webnotes.auth.HTTPRequest()
  File "/home/erpnext/erpnext/lib/webnotes/auth.py", line 38, in __init__
    webnotes.local.session_obj = Session()
  File "/home/erpnext/erpnext/lib/webnotes/sessions.py", line 95, in __init__
    self.load()
  File "/home/erpnext/erpnext/lib/webnotes/sessions.py", line 141, in load
    data = self.get_session_record()
  File "/home/erpnext/erpnext/lib/webnotes/sessions.py", line 153, in get_session_record
    r = self.get_session_data()
  File "/home/erpnext/erpnext/lib/webnotes/sessions.py", line 162, in get_session_data
    data = self.get_session_data_from_cache()
  File "/home/erpnext/erpnext/lib/webnotes/sessions.py", line 168, in get_session_data_from_cache
    data = webnotes._dict(webnotes.cache().get_value("session:" + self.sid) or {})
  File "/home/erpnext/erpnext/lib/webnotes/memc.py", line 20, in get_value
    val = self.get(self.n(key))
  File "/usr/local/lib/python2.7/dist-packages/memcache.py", line 898, in get
    return self._get('get', key)
  File "/usr/local/lib/python2.7/dist-packages/memcache.py", line 847, in _get
    self.check_key(key)
  File "/usr/local/lib/python2.7/dist-packages/memcache.py", line 1062, in check_key
    "Control characters not allowed")
MemcachedKeyCharacterError: Control characters not allowed


I'm a newbee and am clueless, can someone help me out ?

Rushabh Mehta

unread,
Jun 23, 2014, 6:36:58 AM6/23/14
to erpnext-dev...@googlegroups.com
Did you add any non standard characters in you db name?


--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/784a48ad-1705-410d-bff8-2055c7f157c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roopak Jada

unread,
Jun 24, 2014, 7:59:16 AM6/24/14
to erpnext-dev...@googlegroups.com
Nope, just named my db erpnext, i tried re installing it many times then changed the password and tried.  It worked ! my password had the following characters : # & ! i dont know if they are non standard characters :). BTW nice work with erpnext, is there any place with developer guide as to how do we develop our own modules for erpnext ?

Rushabh Mehta

unread,
Jun 24, 2014, 8:35:23 AM6/24/14
to erpnext-dev...@googlegroups.com
On 24-Jun-2014, at 5:29 pm, Roopak Jada <jada....@robotspace.in> wrote:

Nope, just named my db erpnext, i tried re installing it many times then changed the password and tried.  It worked ! my password had the following characters : # & ! i dont know if they are non standard characters :).

password should not matter - the dbname is used as a memcache key. check your site_config.json

BTW nice work with erpnext,

Thanks!

is there any place with developer guide as to how do we develop our own modules for erpnext ?


--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages