memcache.MemcachedKeyCharacterError

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 ?



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-forum+un…@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.
Did you add any non standard characters in you db name?


On 23-Jun-2014, at 1:02 am, Roopak Jada <ja...@robotspace.in> wrote:

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 ?



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-forum+un…@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.



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/9AE95A26-510A-4757-A5BB-0A23B332C65D%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.
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 ?



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1db6b343-3bc5-4e72-88cc-b55bf9e2b1c7%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

On 24-Jun-2014, at 5:29 pm, Roopak Jada <ja...@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 ?

https://frappe.io/apps/frappe-framework/developers/guide




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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1db6b343-3bc5-4e72-88cc-b55bf9e2b1c7%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/69DE4F59-AE01-4C30-93CD-B5737288C358%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.