Unexpected reset: dev_state = ENABLED

Hi Everybody,

I got one problem after setting up another server for development.

when i tried to log on. A server Error: message displayed, and i got the unexpected reset: dev_state = ENABLED in the syslog file.
I don't know what to do now. How to solve the problem.

Thanks
Khalid



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. 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.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. 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/389f6c32-5159-4b83-af5a-6d28fc102360%40googlegroups.com.

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

On Fri, Sep 19, 2014 at 6:08 PM, Khalid Abdu Said kh...@gmail.com wrote:

Hi Everybody,

I got one problem after setting up another server for development.

when i tried to log on. A server Error: message displayed, and i got the
unexpected reset: dev_state = ENABLED in the syslog file.
I don’t know what to do now. How to solve the problem.

Thanks
Khalid


Note:

If you are posting an issue,

  1. ERPNext is a free and open source software and support is given on this
    forum by a team (https://frappe.io/webnotes). So please consider donating if
    you find this forum useful (https://frappe.io/buy). Even a small amount
    would be helpful.
  2. 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.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send
    only the URL via email
  4. 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/389f6c32-5159-4b83-af5a-6d28fc102360%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Khalid,

Frappe doesn’t log to syslog.

Also, this seems to be related to your machine,

Thanks,

Pratik
erpnext

Pratik,

Actually what i  wanted was after setting up ERPnext in another server. i restore a database from existing system to the new one and check if it can work smoothly(exact replica of the existing system), as a measure for disaster recovery!
so i got the following error on login

Traceback (innermost last):
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/website/render.py", line 22, in render
    data = render_page(path)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/website/render.py", line 101, in render_page
    return build(path)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/website/render.py", line 110, in build
    return build_method(path)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/website/render.py", line 123, in build_page
    context = get_context(path)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/website/context.py", line 36, in get_context
    context = build_context(context)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/website/context.py", line 66, in build_context
    context.update(module.get_context(context) or {})
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/templates/pages/login.py", line 20, in get_context
    if get_oauth_keys(provider):
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/templates/pages/login.py", line 89, in get_oauth_keys
    social = frappe.get_doc("Social Login Keys", "Social Login Keys")
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/__init__.py", line 350, in get_doc
    return frappe.model.document.get_doc(arg1, arg2)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/model/document.py", line 24, in get_doc
    controller = get_controller(doctype)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/model/document.py", line 34, in get_controller
    module = load_doctype_module(doctype)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 58, in load_doctype_module
    doctype_python_modules[key] = frappe.get_module(get_module_name(doctype, module, prefix))
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/__init__.py", line 377, in get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
 ImportError: No module named social_login_keys.social_login_keys

can i have a solution for that
Thanks

On Friday, September 19, 2014 3:38:07 PM UTC+3, Khalid Abdu Said wrote:
Hi Everybody,

I got one problem after setting up another server for development.

when i tried to log on. A server Error: message displayed, and i got the unexpected reset: dev_state = ENABLED in the syslog file.
I don't know what to do now. How to solve the problem.

Thanks
Khalid


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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/f1666016-c22d-4705-b570-77d3e37f2530%40googlegroups.com.

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

bench frappe --latest

on your site?


On 22-Sep-2014, at 7:23 pm, Khalid Abdu Said <kh...@gmail.com> wrote:

Pratik,

Actually what i  wanted was after setting up ERPnext in another server. i restore a database from existing system to the new one and check if it can work smoothly(exact replica of the existing system), as a measure for disaster recovery!
so i got the following error on login

Traceback (innermost last):
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/website/render.py", line 22, in render
    data = render_page(path)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/website/render.py", line 101, in render_page
    return build(path)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/website/render.py", line 110, in build
    return build_method(path)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/website/render.py", line 123, in build_page
    context = get_context(path)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/website/context.py", line 36, in get_context
    context = build_context(context)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/website/context.py", line 66, in build_context
    context.update(module.get_context(context) or {})
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/templates/pages/login.py", line 20, in get_context
    if get_oauth_keys(provider):
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/templates/pages/login.py", line 89, in get_oauth_keys
    social = frappe.get_doc("Social Login Keys", "Social Login Keys")
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/__init__.py", line 350, in get_doc
    return frappe.model.document.get_doc(arg1, arg2)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/model/document.py", line 24, in get_doc
    controller = get_controller(doctype)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/model/document.py", line 34, in get_controller
    module = load_doctype_module(doctype)
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 58, in load_doctype_module
    doctype_python_modules[key] = frappe.get_module(get_module_name(doctype, module, prefix))
  File "/home/ubuntuuser2/frappe-bench/apps/frappe/frappe/__init__.py", line 377, in get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
 ImportError: No module named social_login_keys.social_login_keys

can i have a solution for that
Thanks

On Friday, September 19, 2014 3:38:07 PM UTC+3, Khalid Abdu Said wrote:
Hi Everybody,

I got one problem after setting up another server for development.

when i tried to log on. A server Error: message displayed, and i got the unexpected reset: dev_state = ENABLED in the syslog file.
I don't know what to do now. How to solve the problem.

Thanks
Khalid


  1. Please be kind and don’t send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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/f1666016-c22d-4705-b570-77d3e37f2530%40googlegroups.com.

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


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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/225DA9D8-D802-4764-99CB-2D8774E56BBF%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.
Thanks Rushab,
That is great! It is working after running bench frappe --latest. But i wonder if i should follow the following steps when ever i want to run erpnext site on this server

1. stop the supervisor and nginx services
2. cd frappe-bench
3. bench start

Thanks
Khlid

On Friday, September 19, 2014 3:38:07 PM UTC+3, Khalid Abdu Said wrote:
Hi Everybody,

I got one problem after setting up another server for development.

when i tried to log on. A server Error: message displayed, and i got the unexpected reset: dev_state = ENABLED in the syslog file.
I don't know what to do now. How to solve the problem.

Thanks
Khalid


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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/b5a93f37-1bbc-40c6-9007-97409da2a0b9%40googlegroups.com.

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

On 23-Sep-2014, at 1:06 pm, Khalid Abdu Said <kh...@gmail.com> wrote:

Thanks Rushab,
That is great! It is working after running bench frappe --latest. But i wonder if i should follow the following steps when ever i want to run erpnext site on this server

1. stop the supervisor and nginx services
2. cd frappe-bench
3. bench start

I think "bench update" does all of that.


Thanks
Khlid

On Friday, September 19, 2014 3:38:07 PM UTC+3, Khalid Abdu Said wrote:
Hi Everybody,

I got one problem after setting up another server for development.

when i tried to log on. A server Error: message displayed, and i got the unexpected reset: dev_state = ENABLED in the syslog file.
I don't know what to do now. How to solve the problem.

Thanks
Khalid


  1. Please be kind and don’t send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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/b5a93f37-1bbc-40c6-9007-97409da2a0b9%40googlegroups.com.

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


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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/998D75AD-8237-417B-AAC8-816237FED611%40gmail.com.

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

Hi Rushab,

I tried bench update. But still i am forced to follow the three steps discussd up before. Any other solution please.

Thank you

Do you mean that you use bench start? Have you done production deployment?