Restoring Backup

Hello,

I have current older version of erpnext hosted on erpnext server.

I have desired to restore backup on my local machine, and hence I have downloaded the virtual machine and have successfully imported latest erpnext ova file.

I have also executed restoring the backup using the following

  • cd ~/erpnext
  • wget https://link/to/backup --no-check-certificate #
  • downloads database dump from erpnext.com
  • gunzip path/to/backup # unzip the database dump
  • ./lib/wnf.py --restore path/to/backup --force
  • ./lib/wnf.py --update origin master --reload_gunicorn

Now I go to host browser and type

http://localhost:8000/

and I only see a fresh new install of ERPNEXT, ( and I do not see the restored version from backup )

even tried following in the VM shell..

db_name = "erpnext" in conf.py

which returned nothing.

Requesting to receive help in order to see a local version of my ERPNEXT with restored backup


Thanks in advance.
Regards,
Mahesh



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.

    For more options, visit https://groups.google.com/groups/opt_out.
Hi Mahesh,

Since your database name in conf.py is erpnext, you need to use:
./lib/wnf.py --restore erpnext path/to/backup --force

-Anand.


On Wed, Nov 27, 2013 at 3:08 PM, Mahesh <ma...@maheshengg.com> wrote:
Hello,

I have current older version of erpnext hosted on erpnext server.

I have desired to restore backup on my local machine, and hence I have downloaded the virtual machine and have successfully imported latest erpnext ova file.

I have also executed restoring the backup using the following

  • cd ~/erpnext
  • wget https://link/to/backup --no-check-certificate #
  • downloads database dump from erpnext.com

  • gunzip path/to/backup # unzip the database dump
  • ./lib/wnf.py --restore path/to/backup --force
  • ./lib/wnf.py --update origin master --reload_gunicorn

Now I go to host browser and type


and I only see a fresh new install of ERPNEXT, ( and I do not see the restored version from backup )

even tried following in the VM shell..

db_name = "erpnext" in conf.py

which returned nothing.

Requesting to receive help in order to see a local version of my ERPNEXT with restored backup



Thanks in advance.
Regards,
Mahesh



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.

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

    For more options, visit https://groups.google.com/groups/opt_out.
ran this
./lib/wnf.py --restore erpnext path/to/backup --force

and then ran

./lib/wnf.py --update origin master --reload_gunicorn

However, I keep getting

Internal Server Error

when i try to logon through http://localhost:8000/

The Shell screen shot is here. http://imgur.com/d3fhc3A


Please let me how to go about further to this.





Regards,
Mahesh





On Wed, Nov 27, 2013 at 11:13 PM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi Mahesh,

Since your database name in conf.py is erpnext, you need to use:
./lib/wnf.py --restore erpnext path/to/backup --force

-Anand.


On Wed, Nov 27, 2013 at 3:08 PM, Mahesh <ma...@maheshengg.com> wrote:
Hello,

I have current older version of erpnext hosted on erpnext server.

I have desired to restore backup on my local machine, and hence I have downloaded the virtual machine and have successfully imported latest erpnext ova file.

I have also executed restoring the backup using the following

  • cd ~/erpnext
  • wget https://link/to/backup --no-check-certificate #
  • downloads database dump from erpnext.com

  • gunzip path/to/backup # unzip the database dump
  • ./lib/wnf.py --restore path/to/backup --force
  • ./lib/wnf.py --update origin master --reload_gunicorn

Now I go to host browser and type


and I only see a fresh new install of ERPNEXT, ( and I do not see the restored version from backup )

even tried following in the VM shell..

db_name = "erpnext" in conf.py

which returned nothing.

Requesting to receive help in order to see a local version of my ERPNEXT with restored backup



Thanks in advance.
Regards,
Mahesh



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.

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

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

    For more options, visit https://groups.google.com/groups/opt_out.
Requesting help from the community and also developers to intervene.

Regards,
Mahesh


On Thu, Nov 28, 2013 at 4:57 PM, Mahesh <ma...@maheshengg.com> wrote:
ran this

./lib/wnf.py --restore erpnext path/to/backup --force

and then ran

./lib/wnf.py --update origin master --reload_gunicorn

However, I keep getting

Internal Server Error

when i try to logon through http://localhost:8000/


The Shell screen shot is here. http://imgur.com/d3fhc3A


Please let me how to go about further to this.





Regards,

Mahesh






On Wed, Nov 27, 2013 at 11:13 PM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi Mahesh,

Since your database name in conf.py is erpnext, you need to use:

./lib/wnf.py --restore erpnext path/to/backup --force


-Anand.


On Wed, Nov 27, 2013 at 3:08 PM, Mahesh <ma...@maheshengg.com> wrote:
Hello,

I have current older version of erpnext hosted on erpnext server.

I have desired to restore backup on my local machine, and hence I have downloaded the virtual machine and have successfully imported latest erpnext ova file.

I have also executed restoring the backup using the following

  • cd ~/erpnext
  • wget https://link/to/backup --no-check-certificate #
  • downloads database dump from erpnext.com

  • gunzip path/to/backup # unzip the database dump
  • ./lib/wnf.py --restore path/to/backup --force
  • ./lib/wnf.py --update origin master --reload_gunicorn

Now I go to host browser and type


and I only see a fresh new install of ERPNEXT, ( and I do not see the restored version from backup )

even tried following in the VM shell..

db_name = "erpnext" in conf.py

which returned nothing.

Requesting to receive help in order to see a local version of my ERPNEXT with restored backup



Thanks in advance.
Regards,
Mahesh



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.

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

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

    For more options, visit https://groups.google.com/groups/opt_out.
Mahesh,

That screenshot is not enough - still cant figure what is calling the function. Earlier screens of the trace is required.

The core issue is that your instance is very old and not patched for quite a while. Ideally you should get help from a sys admin or let us update it for you :)

best,
Rushabh

On Monday, December 2, 2013 1:44:10 PM UTC+5:30, Mahesh wrote:
Requesting help from the community and also developers to intervene.

Regards,
Mahesh


On Thu, Nov 28, 2013 at 4:57 PM, Mahesh <ma...@maheshengg.com> wrote:
ran this

./lib/wnf.py --restore erpnext path/to/backup --force

and then ran

./lib/wnf.py --update origin master --reload_gunicorn

However, I keep getting

Internal Server Error

when i try to logon through http://localhost:8000/


The Shell screen shot is here. http://imgur.com/d3fhc3A


Please let me how to go about further to this.





Regards,

Mahesh






On Wed, Nov 27, 2013 at 11:13 PM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi Mahesh,

Since your database name in conf.py is erpnext, you need to use:

./lib/wnf.py --restore erpnext path/to/backup --force


-Anand.


On Wed, Nov 27, 2013 at 3:08 PM, Mahesh <ma...@maheshengg.com> wrote:
Hello,

I have current older version of erpnext hosted on erpnext server.

I have desired to restore backup on my local machine, and hence I have downloaded the virtual machine and have successfully imported latest erpnext ova file.

I have also executed restoring the backup using the following

  • cd ~/erpnext
  •  wget https://link/to/backup --no-check-certificate #
  •  downloads database dump from erpnext.com

  •  gunzip path/to/backup # unzip the database dump
  •  ./lib/wnf.py --restore path/to/backup --force
  •  ./lib/wnf.py --update origin master --reload_gunicorn

Now I go to host browser and type


and I only see a fresh new install of ERPNEXT, ( and I do not see the restored version from backup )

even tried following in the VM shell..

db_name = "erpnext" in conf.py

which returned nothing.

Requesting to receive help in order to see a local version of my ERPNEXT with restored backup



Thanks in advance.
Regards,
Mahesh



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.

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

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

    For more options, visit https://groups.google.com/groups/opt_out.
Hi, Mesh!

In terminal, inside you repository puts


./lib/wnf.py --sync_all

./lib/wnf.py --latest


2013/12/2 Mahesh <ma...@maheshengg.com>
Requesting help from the community and also developers to intervene.

Regards,
Mahesh


On Thu, Nov 28, 2013 at 4:57 PM, Mahesh <ma...@maheshengg.com> wrote:
ran this

./lib/wnf.py --restore erpnext path/to/backup --force


and then ran


./lib/wnf.py --update origin master --reload_gunicorn

However, I keep getting

Internal Server Error

when i try to logon through http://localhost:8000/


The Shell screen shot is here. http://imgur.com/d3fhc3A


Please let me how to go about further to this.





Regards,

Mahesh






On Wed, Nov 27, 2013 at 11:13 PM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi Mahesh,

Since your database name in conf.py is erpnext, you need to use:

./lib/wnf.py --restore erpnext path/to/backup --force


-Anand.


On Wed, Nov 27, 2013 at 3:08 PM, Mahesh <ma...@maheshengg.com> wrote:
Hello,

I have current older version of erpnext hosted on erpnext server.

I have desired to restore backup on my local machine, and hence I have downloaded the virtual machine and have successfully imported latest erpnext ova file.

I have also executed restoring the backup using the following

  • cd ~/erpnext
  • wget https://link/to/backup --no-check-certificate #
  • downloads database dump from erpnext.com

  • gunzip path/to/backup # unzip the database dump
  • ./lib/wnf.py --restore path/to/backup --force
  • ./lib/wnf.py --update origin master --reload_gunicorn

Now I go to host browser and type


and I only see a fresh new install of ERPNEXT, ( and I do not see the restored version from backup )

even tried following in the VM shell..

db_name = "erpnext" in conf.py

which returned nothing.

Requesting to receive help in order to see a local version of my ERPNEXT with restored backup



Thanks in advance.
Regards,
Mahesh



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.

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

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

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




--

Maxwell Morais
Tecnologia da Informação
+55 11 3931-1412 Ramal 31

www.realizemodulados.com.br



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.

    For more options, visit https://groups.google.com/groups/opt_out.
Hi Maxwell,

heres what happened when I put
./lib/wnf.py --sync_all ..............................> http://i.imgur.com/QEJXOlz.png
./lib/wnf.py --latest ............................> http://i.imgur.com/wvSnJms.png

In the above commands, it returns following

"ImportError: No Module named semantic_version"


Dear Rushabh,
I am not able to get a complete dump of log that happens on the console after I run
./lib/wnf.py --update origin master --reload_gunicorn ( googled, but couldnt find the procedure, shall be grateful if the community helps achieve it )

Agreed, instance is very old and not patched for quite a while, I should perhaps fix it by allowing you to update it. I am approaching seperately to support regarding this.

Thanks & Regards,
Mahesh









On Mon, Dec 2, 2013 at 10:53 PM, Maxwell Morais <ma...@gmail.com> wrote:
Hi, Mesh!

In terminal, inside you repository puts


./lib/wnf.py --sync_all

./lib/wnf.py --latest


2013/12/2 Mahesh <ma...@maheshengg.com>
Requesting help from the community and also developers to intervene.

Regards,
Mahesh


On Thu, Nov 28, 2013 at 4:57 PM, Mahesh <ma...@maheshengg.com> wrote:
ran this

./lib/wnf.py --restore erpnext path/to/backup --force


and then ran


./lib/wnf.py --update origin master --reload_gunicorn

However, I keep getting

Internal Server Error

when i try to logon through http://localhost:8000/


The Shell screen shot is here. http://imgur.com/d3fhc3A


Please let me how to go about further to this.





Regards,

Mahesh






On Wed, Nov 27, 2013 at 11:13 PM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi Mahesh,

Since your database name in conf.py is erpnext, you need to use:

./lib/wnf.py --restore erpnext path/to/backup --force


-Anand.


On Wed, Nov 27, 2013 at 3:08 PM, Mahesh <ma...@maheshengg.com> wrote:
Hello,

I have current older version of erpnext hosted on erpnext server.

I have desired to restore backup on my local machine, and hence I have downloaded the virtual machine and have successfully imported latest erpnext ova file.

I have also executed restoring the backup using the following

  • cd ~/erpnext
  • wget https://link/to/backup --no-check-certificate #
  • downloads database dump from erpnext.com

  • gunzip path/to/backup # unzip the database dump
  • ./lib/wnf.py --restore path/to/backup --force
  • ./lib/wnf.py --update origin master --reload_gunicorn

Now I go to host browser and type


and I only see a fresh new install of ERPNEXT, ( and I do not see the restored version from backup )

even tried following in the VM shell..

db_name = "erpnext" in conf.py

which returned nothing.

Requesting to receive help in order to see a local version of my ERPNEXT with restored backup



Thanks in advance.
Regards,
Mahesh



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.

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

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

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




--

Maxwell Morais
Tecnologia da Informação
+55 11 3931-1412 Ramal 31

www.realizemodulados.com.br



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.

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

    For more options, visit https://groups.google.com/groups/opt_out.
installl semantic_version, with pip or easy_install


sudo easy_install semantic-version
or

sudo pip install semantic-version


2013/12/3 Mahesh <ma...@maheshengg.com>
Hi Maxwell,

heres what happened when I put

./lib/wnf.py --sync_all …> http://i.imgur.com/QEJXOlz.png

./lib/wnf.py --latest ............................> http://i.imgur.com/wvSnJms.png


In the above commands, it returns following

"ImportError: No Module named semantic_version"



Dear Rushabh,
I am not able to get a complete dump of log that happens on the console after I run

./lib/wnf.py --update origin master --reload_gunicorn ( googled, but couldnt find the procedure, shall be grateful if the community helps achieve it )


Agreed, instance is very old and not patched for quite a while, I should perhaps fix it by allowing you to update it. I am approaching seperately to support regarding this.


Thanks & Regards,
Mahesh









On Mon, Dec 2, 2013 at 10:53 PM, Maxwell Morais <ma...@gmail.com> wrote:
Hi, Mesh!


In terminal, inside you repository puts


./lib/wnf.py --sync_all

./lib/wnf.py --latest


2013/12/2 Mahesh <ma...@maheshengg.com>
Requesting help from the community and also developers to intervene.

Regards,
Mahesh


On Thu, Nov 28, 2013 at 4:57 PM, Mahesh <ma...@maheshengg.com> wrote:
ran this

./lib/wnf.py --restore erpnext path/to/backup --force


and then ran


./lib/wnf.py --update origin master --reload_gunicorn

However, I keep getting

Internal Server Error

when i try to logon through http://localhost:8000/


The Shell screen shot is here. http://imgur.com/d3fhc3A


Please let me how to go about further to this.





Regards,

Mahesh






On Wed, Nov 27, 2013 at 11:13 PM, Anand Doshi <an...@iwebnotes.com> wrote:
Hi Mahesh,

Since your database name in conf.py is erpnext, you need to use:

./lib/wnf.py --restore erpnext path/to/backup --force


-Anand.


On Wed, Nov 27, 2013 at 3:08 PM, Mahesh <ma...@maheshengg.com> wrote:
Hello,

I have current older version of erpnext hosted on erpnext server.

I have desired to restore backup on my local machine, and hence I have downloaded the virtual machine and have successfully imported latest erpnext ova file.

I have also executed restoring the backup using the following

  • cd ~/erpnext
  • wget https://link/to/backup --no-check-certificate #
  • downloads database dump from erpnext.com

  • gunzip path/to/backup # unzip the database dump
  • ./lib/wnf.py --restore path/to/backup --force
  • ./lib/wnf.py --update origin master --reload_gunicorn

Now I go to host browser and type


and I only see a fresh new install of ERPNEXT, ( and I do not see the restored version from backup )

even tried following in the VM shell..

db_name = "erpnext" in conf.py

which returned nothing.

Requesting to receive help in order to see a local version of my ERPNEXT with restored backup



Thanks in advance.
Regards,
Mahesh



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.

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

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

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




--

Maxwell Morais
Tecnologia da Informação



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.

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

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




--

Maxwell Morais
Tecnologia da Informação
+55 11 3931-1412 Ramal 31

www.realizemodulados.com.br



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.

    For more options, visit https://groups.google.com/groups/opt_out.
Hi Mahesh,

Can you run update again, latest version should be able to patch your instance without any exceptions.


--
Pratik
erpnext
hi, when I say

./lib/wnf.py --restore erpnext path/to/sqlfile --force

it is saying no such file.
where as I checked with dir , the file is very much there...

what am I missing.

Sorry for putting a very silly question here.....


Regards,
Mahesh




On Wed, Dec 11, 2013 at 12:02 PM, Pratik Vyas <pd...@gmail.com> wrote:
Hi Mahesh,

Can you run update again, latest version should be able to patch your instance without any exceptions.


--
Pratik
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.

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

    For more options, visit https://groups.google.com/groups/opt_out.
Hi,

I am trying to restore a backup on v4 but I guess the old method does not work.

Can someone please let me know the correct way to restore an old backup on v4.

I am using the wiki page here: https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup

On Thursday, December 12, 2013 10:54:07 AM UTC+5:30, Mahesh wrote:
hi, when I say

./lib/wnf.py --restore erpnext path/to/sqlfile --force

it is saying no such file.
where as I checked with dir , the file is very much there...

what am I missing.

Sorry for putting a very silly question here.....


Regards,
Mahesh




On Wed, Dec 11, 2013 at 12:02 PM, Pratik Vyas <pd...@gmail.com> wrote:
Hi Mahesh,

Can you run update again, latest version should be able to patch your instance without any exceptions.


--
Pratik
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.

For more options, visit https://groups.google.com/groups/opt_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/aeddb58c-a507-4d08-8673-cb069e31257b%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Thanks Aditya for pointing out. Fixed instructions:

https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup



On 16-Jun-2014, at 11:15 am, Aditya Duggal <ad...@gmail.com> wrote:

Hi,

I am trying to restore a backup on v4 but I guess the old method does not work.

Can someone please let me know the correct way to restore an old backup on v4.

I am using the wiki page here: https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup

On Thursday, December 12, 2013 10:54:07 AM UTC+5:30, Mahesh wrote:
hi, when I say

./lib/wnf.py --restore erpnext path/to/sqlfile --force

it is saying no such file.
where as I checked with dir , the file is very much there...

what am I missing.

Sorry for putting a very silly question here.....


Regards,
Mahesh




On Wed, Dec 11, 2013 at 12:02 PM, Pratik Vyas <pd...@gmail.com> wrote:
Hi Mahesh,

Can you run update again, latest version should be able to patch your instance without any exceptions.


--
Pratik
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.

For more options, visit https://groups.google.com/groups/opt_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/aeddb58c-a507-4d08-8673-cb069e31257b%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/07B4644F-6505-4EB7-B815-2A1228334443%40gmail.com.

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

I am getting a frappe command not found after I did the below things:

:~/frappe-bench/sites$ frappe --restore DBNAME SQLFILE
frappe: command not found

What am I missing?

On Monday, June 16, 2014 12:35:53 PM UTC+5:30, rushabh wrote:
Thanks Aditya for pointing out. Fixed instructions:

https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup



On 16-Jun-2014, at 11:15 am, Aditya Duggal <ad...@gmail.com> wrote:

Hi,

I am trying to restore a backup on v4 but I guess the old method does not work.

Can someone please let me know the correct way to restore an old backup on v4.

I am using the wiki page here: https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup

On Thursday, December 12, 2013 10:54:07 AM UTC+5:30, Mahesh wrote:
hi, when I say

./lib/wnf.py --restore erpnext path/to/sqlfile --force

it is saying no such file.
where as I checked with dir , the file is very much there...

what am I missing.

Sorry for putting a very silly question here.....


Regards,
Mahesh




On Wed, Dec 11, 2013 at 12:02 PM, Pratik Vyas <pd...@gmail.com> wrote:
Hi Mahesh,

Can you run update again, latest version should be able to patch your instance without any exceptions.


--
Pratik
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.

For more options, visit https://groups.google.com/groups/opt_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/aeddb58c-a507-4d08-8673-cb069e31257b%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/8f43f0a9-bdd5-45c2-96f5-65885a2d883a%40googlegroups.com.

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

You have to start the Python virtual env:

cd frappe-bench
. env/bin/activate


On 16-Jun-2014, at 5:01 pm, Aditya Duggal <ad...@gmail.com> wrote:

Hi,

I am getting a frappe command not found after I did the below things:

:~/frappe-bench/sites$ frappe --restore DBNAME SQLFILE
frappe: command not found

What am I missing?

On Monday, June 16, 2014 12:35:53 PM UTC+5:30, rushabh wrote:
Thanks Aditya for pointing out. Fixed instructions:

https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup



On 16-Jun-2014, at 11:15 am, Aditya Duggal <ad...@gmail.com> wrote:

Hi,

I am trying to restore a backup on v4 but I guess the old method does not work.

Can someone please let me know the correct way to restore an old backup on v4.

I am using the wiki page here: https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup

On Thursday, December 12, 2013 10:54:07 AM UTC+5:30, Mahesh wrote:
hi, when I say

./lib/wnf.py --restore erpnext path/to/sqlfile --force

it is saying no such file.
where as I checked with dir , the file is very much there...

what am I missing.

Sorry for putting a very silly question here.....


Regards,
Mahesh




On Wed, Dec 11, 2013 at 12:02 PM, Pratik Vyas <pd...@gmail.com> wrote:
Hi Mahesh,

Can you run update again, latest version should be able to patch your instance without any exceptions.


--
Pratik
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.

For more options, visit https://groups.google.com/groups/opt_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/aeddb58c-a507-4d08-8673-cb069e31257b%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/8f43f0a9-bdd5-45c2-96f5-65885a2d883a%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/E9BA9BAE-8114-4041-9533-968442CA6EC0%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.
I am getting this error:

Traceback (most recent call last):
  File "/home/addy/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
    return run(fn, parsed_args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
    out = globals().get(fn)(*args.get(fn), **args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 375, in restore
    _install(db_name, source_sql=source_sql, quiet=quiet, force=force)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 306, in _install
    admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
  File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 30, in install_db
    create_database_and_user(force, verbose)
  File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 47, in create_database_and_user
    raise Exception("Database %s already exists" % (db_name,))
Exception: Database rigpl already exists


No matter what name of the database I choose, I am getting the same error. Could you please let me know what is it that I am missing.

On Tuesday, June 17, 2014 12:46:21 PM UTC+5:30, rushabh wrote:
Aditya,

You have to start the Python virtual env:

cd frappe-bench
. env/bin/activate


On 16-Jun-2014, at 5:01 pm, Aditya Duggal <ad...@gmail.com> wrote:

Hi,

I am getting a frappe command not found after I did the below things:

:~/frappe-bench/sites$ frappe --restore DBNAME SQLFILE
frappe: command not found

What am I missing?

On Monday, June 16, 2014 12:35:53 PM UTC+5:30, rushabh wrote:
Thanks Aditya for pointing out. Fixed instructions:

https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup



On 16-Jun-2014, at 11:15 am, Aditya Duggal <ad...@gmail.com> wrote:

Hi,

I am trying to restore a backup on v4 but I guess the old method does not work.

Can someone please let me know the correct way to restore an old backup on v4.

I am using the wiki page here: https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup

On Thursday, December 12, 2013 10:54:07 AM UTC+5:30, Mahesh wrote:
hi, when I say

./lib/wnf.py --restore erpnext path/to/sqlfile --force

it is saying no such file.
where as I checked with dir , the file is very much there...

what am I missing.

Sorry for putting a very silly question here.....


Regards,
Mahesh




On Wed, Dec 11, 2013 at 12:02 PM, Pratik Vyas <pd...@gmail.com> wrote:
Hi Mahesh,

Can you run update again, latest version should be able to patch your instance without any exceptions.


--
Pratik
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.

For more options, visit https://groups.google.com/groups/opt_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/aeddb58c-a507-4d08-8673-cb069e31257b%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/8f43f0a9-bdd5-45c2-96f5-65885a2d883a%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/8c2d6ad2-ca18-418f-be23-384e7baa5ce8%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
If you are doing this in a VM or somewhere other than your production server, use --force at the end of the command and it should be safe. Also, once the database is restored, you should get a message "Scheduler is disabled". Make sure that this message appears, else email pulling will start on this test setup.


-Anand.


On Wed, Jul 2, 2014 at 4:49 PM, Aditya Duggal <ad…@gmail.com> wrote:

I am getting this error:

Traceback (most recent call last):
File "/home/addy/frappe-bench/env/bin/frappe", line 9, in <module>
load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
return run(fn, parsed_args)
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
out = globals().get(fn)(*args.get(fn), **args)
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
return fn(*args, **new_kwargs)
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 375, in restore
_install(db_name, source_sql=source_sql, quiet=quiet, force=force)
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 306, in _install
admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 30, in install_db
create_database_and_user(force, verbose)
File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 47, in create_database_and_user
raise Exception("Database %s already exists" % (db_name,))
Exception: Database rigpl already exists


No matter what name of the database I choose, I am getting the same error. Could you please let me know what is it that I am missing.

On Tuesday, June 17, 2014 12:46:21 PM UTC+5:30, rushabh wrote:
Aditya,

You have to start the Python virtual env:

cd frappe-bench
. env/bin/activate


On 16-Jun-2014, at 5:01 pm, Aditya Duggal <ad...@gmail.com> wrote:


Hi,

I am getting a frappe command not found after I did the below things:

:~/frappe-bench/sites$ frappe --restore DBNAME SQLFILE

frappe: command not found

What am I missing?

On Monday, June 16, 2014 12:35:53 PM UTC+5:30, rushabh wrote:
Thanks Aditya for pointing out. Fixed instructions:

https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup




On 16-Jun-2014, at 11:15 am, Aditya Duggal <ad…@gmail.com> wrote:

Hi,

I am trying to restore a backup on v4 but I guess the old method does not work.


Can someone please let me know the correct way to restore an old backup on v4.

I am using the wiki page here: https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup


On Thursday, December 12, 2013 10:54:07 AM UTC+5:30, Mahesh wrote:

hi, when I say

./lib/wnf.py --restore erpnext path/to/sqlfile --force

it is saying no such file.
where as I checked with dir , the file is very much there...

what am I missing.

Sorry for putting a very silly question here.....


Regards,
Mahesh




On Wed, Dec 11, 2013 at 12:02 PM, Pratik Vyas <pd...@gmail.com> wrote:
Hi Mahesh,

Can you run update again, latest version should be able to patch your instance without any exceptions.


--
Pratik
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.

For more options, visit https://groups.google.com/groups/opt_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/aeddb58c-a507-4d08-8673-cb069e31257b%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/8f43f0a9-bdd5-45c2-96f5-65885a2d883a%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/8c2d6ad2-ca18-418f-be23-384e7baa5ce8%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/CAAQzbF3DwphEe7aDhkhCMbBqFcMQp0ErLmSOtBs6Pdc%2BUQ7FwA%40mail.gmail.com.

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

Thanks for the tip. But now I guess I am stuck with another error as below:

(env)ad...@addy:~/frappe-bench/sites$ frappe --restore DB_NAME /home/Downloads/XXX_database.sql --force
MySQL root password: 
Created user DB_NAME
Created database DB_NAME
Granted privileges to user DB_NAME and database DB_NAME
Starting database import...
sh: 1: cannot open /home/Downloads/XXX_database.sql: No such file
Imported from database /home/Downloads/XXX_database.sql
Traceback (most recent call last):
  File "/home/addy/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
    return run(fn, parsed_args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
    out = globals().get(fn)(*args.get(fn), **args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 375, in restore
    _install(db_name, source_sql=source_sql, quiet=quiet, force=force)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 308, in _install
    install_app("frappe", verbose=verbose, set_as_patched=not source_sql)
  File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 87, in install_app
    frappe.clear_cache()
  File "/home/addy/frappe-bench/apps/frappe/frappe/__init__.py", line 284, in clear_cache
    frappe.sessions.clear_cache()
  File "/home/addy/frappe-bench/apps/frappe/frappe/sessions.py", line 55, in clear_cache
    for sess in frappe.db.sql("""select user, sid from tabSessions""", as_dict=1):
  File "/home/addy/frappe-bench/apps/frappe/frappe/database.py", line 118, in sql
    self._cursor.execute(query)
  File "/home/addy/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
    self.errorhandler(self, exc, value)
  File "/home/addy/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1146, "Table 'rigpl.tabSessions' doesn't exist")


On Wednesday, July 2, 2014 6:31:44 PM UTC+5:30, Anand Doshi wrote:
If you are doing this in a VM or somewhere other than your production server, use --force at the end of the command and it should be safe. Also, once the database is restored, you should get a message "Scheduler is disabled". Make sure that this message appears, else email pulling will start on this test setup.


-Anand.


On Wed, Jul 2, 2014 at 4:49 PM, Aditya Duggal <ad…@gmail.com> wrote:

I am getting this error:

Traceback (most recent call last):
  File "/home/addy/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
    return run(fn, parsed_args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
    out = globals().get(fn)(*args.get(fn), **args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 375, in restore
    _install(db_name, source_sql=source_sql, quiet=quiet, force=force)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 306, in _install
    admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
  File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 30, in install_db
    create_database_and_user(force, verbose)
  File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 47, in create_database_and_user
    raise Exception("Database %s already exists" % (db_name,))
Exception: Database rigpl already exists


No matter what name of the database I choose, I am getting the same error. Could you please let me know what is it that I am missing.

On Tuesday, June 17, 2014 12:46:21 PM UTC+5:30, rushabh wrote:
Aditya,

You have to start the Python virtual env:

cd frappe-bench
. env/bin/activate


On 16-Jun-2014, at 5:01 pm, Aditya Duggal <ad...@gmail.com> wrote:


Hi,

I am getting a frappe command not found after I did the below things:

:~/frappe-bench/sites$ frappe --restore DBNAME SQLFILE

frappe: command not found

What am I missing?

On Monday, June 16, 2014 12:35:53 PM UTC+5:30, rushabh wrote:
Thanks Aditya for pointing out. Fixed instructions:

https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup




On 16-Jun-2014, at 11:15 am, Aditya Duggal <ad…@gmail.com> wrote:

Hi,

I am trying to restore a backup on v4 but I guess the old method does not work.


Can someone please let me know the correct way to restore an old backup on v4.

I am using the wiki page here: https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup


On Thursday, December 12, 2013 10:54:07 AM UTC+5:30, Mahesh wrote:

hi, when I say

./lib/wnf.py --restore erpnext path/to/sqlfile --force

it is saying no such file.
where as I checked with dir , the file is very much there...

what am I missing.

Sorry for putting a very silly question here.....


Regards,
Mahesh




On Wed, Dec 11, 2013 at 12:02 PM, Pratik Vyas <pd...@gmail.com> wrote:
Hi Mahesh,

Can you run update again, latest version should be able to patch your instance without any exceptions.


--
Pratik
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+unsubscr…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_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+unsubscr…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/aeddb58c-a507-4d08-8673-cb069e31257b%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+unsubscr…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/8f43f0a9-bdd5-45c2-96f5-65885a2d883a%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/8c2d6ad2-ca18-418f-be23-384e7baa5ce8%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/5b5d70e4-4ec8-4180-a4ca-653d0033c703%40googlegroups.com.

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

Please disregard the previous post, it turns out that I was not using the correct path (new to Linux and its paths)
But after the import of database I guess I am stuck with the Apps and I am getting an error for the rigpl_erpnext apps hook.

The error console is here: http://pastebin.com/JFr24LVv

Let me know how could I resolve this error.

I guess this error would also answer one of my queries that how could I setup a system on Develop branch to do the testing and then push the commits to the production branch.

On Wednesday, July 2, 2014 6:48:00 PM UTC+5:30, Aditya Duggal wrote:
Hi Anand,

Thanks for the tip. But now I guess I am stuck with another error as below:

(env)ad...@addy:~/frappe-bench/sites$ frappe --restore DB_NAME /home/Downloads/XXX_database.sql --force
MySQL root password: 
Created user DB_NAME
Created database DB_NAME
Granted privileges to user DB_NAME and database DB_NAME
Starting database import...
sh: 1: cannot open /home/Downloads/XXX_database.sql: No such file
Imported from database /home/Downloads/XXX_database.sql
Traceback (most recent call last):
  File "/home/addy/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
    return run(fn, parsed_args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
    out = globals().get(fn)(*args.get(fn), **args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 375, in restore
    _install(db_name, source_sql=source_sql, quiet=quiet, force=force)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 308, in _install
    install_app("frappe", verbose=verbose, set_as_patched=not source_sql)
  File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 87, in install_app
    frappe.clear_cache()
  File "/home/addy/frappe-bench/apps/frappe/frappe/__init__.py", line 284, in clear_cache
    frappe.sessions.clear_cache()
  File "/home/addy/frappe-bench/apps/frappe/frappe/sessions.py", line 55, in clear_cache
    for sess in frappe.db.sql("""select user, sid from tabSessions""", as_dict=1):
  File "/home/addy/frappe-bench/apps/frappe/frappe/database.py", line 118, in sql
    self._cursor.execute(query)
  File "/home/addy/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
    self.errorhandler(self, exc, value)
  File "/home/addy/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1146, "Table 'rigpl.tabSessions' doesn't exist")


On Wednesday, July 2, 2014 6:31:44 PM UTC+5:30, Anand Doshi wrote:
If you are doing this in a VM or somewhere other than your production server, use --force at the end of the command and it should be safe. Also, once the database is restored, you should get a message "Scheduler is disabled". Make sure that this message appears, else email pulling will start on this test setup.


-Anand.


On Wed, Jul 2, 2014 at 4:49 PM, Aditya Duggal <ad…@gmail.com> wrote:

I am getting this error:

Traceback (most recent call last):
  File "/home/addy/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
    return run(fn, parsed_args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
    out = globals().get(fn)(*args.get(fn), **args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 375, in restore
    _install(db_name, source_sql=source_sql, quiet=quiet, force=force)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 306, in _install
    admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
  File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 30, in install_db
    create_database_and_user(force, verbose)
  File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 47, in create_database_and_user
    raise Exception("Database %s already exists" % (db_name,))
Exception: Database rigpl already exists


No matter what name of the database I choose, I am getting the same error. Could you please let me know what is it that I am missing.

On Tuesday, June 17, 2014 12:46:21 PM UTC+5:30, rushabh wrote:
Aditya,

You have to start the Python virtual env:

cd frappe-bench
. env/bin/activate


On 16-Jun-2014, at 5:01 pm, Aditya Duggal <ad...@gmail.com> wrote:


Hi,

I am getting a frappe command not found after I did the below things:

:~/frappe-bench/sites$ frappe --restore DBNAME SQLFILE

frappe: command not found

What am I missing?

On Monday, June 16, 2014 12:35:53 PM UTC+5:30, rushabh wrote:
Thanks Aditya for pointing out. Fixed instructions:

https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup




On 16-Jun-2014, at 11:15 am, Aditya Duggal <ad…@gmail.com> wrote:

Hi,

I am trying to restore a backup on v4 but I guess the old method does not work.


Can someone please let me know the correct way to restore an old backup on v4.

I am using the wiki page here: https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup


On Thursday, December 12, 2013 10:54:07 AM UTC+5:30, Mahesh wrote:

hi, when I say

./lib/wnf.py --restore erpnext path/to/sqlfile --force

it is saying no such file.
where as I checked with dir , the file is very much there...

what am I missing.

Sorry for putting a very silly question here.....


Regards,
Mahesh




On Wed, Dec 11, 2013 at 12:02 PM, Pratik Vyas <pd...@gmail.com> wrote:
Hi Mahesh,

Can you run update again, latest version should be able to patch your instance without any exceptions.


--
Pratik
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+unsubscr…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_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+unsubscr…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/aeddb58c-a507-4d08-8673-cb069e31257b%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+unsubscr…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/8f43f0a9-bdd5-45c2-96f5-65885a2d883a%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/8c2d6ad2-ca18-418f-be23-384e7baa5ce8%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/ab8fc319-499e-4edf-8c4f-60a6938d6163%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
You need to have your custom apps also installed on your setup.

I recommend that you clone a fresh bench, but before restore/install, copy the standard_apps.json file from your production setup. Then run the install command and later restore your database.


-Anand.


On Wed, Jul 2, 2014 at 7:02 PM, Aditya Duggal <ad…@gmail.com> wrote:

Hi Anand,

Please disregard the previous post, it turns out that I was not using the correct path (new to Linux and its paths)
But after the import of database I guess I am stuck with the Apps and I am getting an error for the rigpl_erpnext apps hook.

The error console is here: http://pastebin.com/JFr24LVv

Let me know how could I resolve this error.

I guess this error would also answer one of my queries that how could I setup a system on Develop branch to do the testing and then push the commits to the production branch.


On Wednesday, July 2, 2014 6:48:00 PM UTC+5:30, Aditya Duggal wrote:
Hi Anand,


Thanks for the tip. But now I guess I am stuck with another error as below:

(env)ad…@addy:~/frappe-bench/sites$ frappe --restore DB_NAME /home/Downloads/XXX_database.sql --force

MySQL root password:
Created user DB_NAME
Created database DB_NAME
Granted privileges to user DB_NAME and database DB_NAME
Starting database import...
sh: 1: cannot open /home/Downloads/XXX_database.sql: No such file
Imported from database /home/Downloads/XXX_database.sql
Traceback (most recent call last):
File "/home/addy/frappe-bench/env/bin/frappe", line 9, in <module>
load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
return run(fn, parsed_args)
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
out = globals().get(fn)(*args.get(fn), **args)
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
return fn(*args, **new_kwargs)
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 375, in restore
_install(db_name, source_sql=source_sql, quiet=quiet, force=force)
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 308, in _install
install_app("frappe", verbose=verbose, set_as_patched=not source_sql)
File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 87, in install_app
frappe.clear_cache()
File "/home/addy/frappe-bench/apps/frappe/frappe/__init__.py", line 284, in clear_cache
frappe.sessions.clear_cache()
File "/home/addy/frappe-bench/apps/frappe/frappe/sessions.py", line 55, in clear_cache
for sess in frappe.db.sql("""select user, sid from tabSessions""", as_dict=1):
File "/home/addy/frappe-bench/apps/frappe/frappe/database.py", line 118, in sql
self._cursor.execute(query)
File "/home/addy/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/home/addy/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1146, "Table 'rigpl.tabSessions' doesn't exist")


On Wednesday, July 2, 2014 6:31:44 PM UTC+5:30, Anand Doshi wrote:
If you are doing this in a VM or somewhere other than your production server, use --force at the end of the command and it should be safe. Also, once the database is restored, you should get a message "Scheduler is disabled". Make sure that this message appears, else email pulling will start on this test setup.


-Anand.


On Wed, Jul 2, 2014 at 4:49 PM, Aditya Duggal <ad…@gmail.com> wrote:

I am getting this error:

Traceback (most recent call last):
File "/home/addy/frappe-bench/env/bin/frappe", line 9, in <module>
load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
return run(fn, parsed_args)
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
out = globals().get(fn)(*args.get(fn), **args)
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
return fn(*args, **new_kwargs)
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 375, in restore
_install(db_name, source_sql=source_sql, quiet=quiet, force=force)
File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 306, in _install
admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 30, in install_db
create_database_and_user(force, verbose)
File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 47, in create_database_and_user
raise Exception("Database %s already exists" % (db_name,))
Exception: Database rigpl already exists


No matter what name of the database I choose, I am getting the same error. Could you please let me know what is it that I am missing.

On Tuesday, June 17, 2014 12:46:21 PM UTC+5:30, rushabh wrote:
Aditya,

You have to start the Python virtual env:

cd frappe-bench
. env/bin/activate


On 16-Jun-2014, at 5:01 pm, Aditya Duggal <ad...@gmail.com> wrote:


Hi,

I am getting a frappe command not found after I did the below things:

:~/frappe-bench/sites$ frappe --restore DBNAME SQLFILE

frappe: command not found

What am I missing?

On Monday, June 16, 2014 12:35:53 PM UTC+5:30, rushabh wrote:
Thanks Aditya for pointing out. Fixed instructions:

https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup




On 16-Jun-2014, at 11:15 am, Aditya Duggal <ad…@gmail.com> wrote:

Hi,

I am trying to restore a backup on v4 but I guess the old method does not work.


Can someone please let me know the correct way to restore an old backup on v4.

I am using the wiki page here: https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup


On Thursday, December 12, 2013 10:54:07 AM UTC+5:30, Mahesh wrote:

hi, when I say

./lib/wnf.py --restore erpnext path/to/sqlfile --force

it is saying no such file.
where as I checked with dir , the file is very much there...

what am I missing.

Sorry for putting a very silly question here.....


Regards,
Mahesh




On Wed, Dec 11, 2013 at 12:02 PM, Pratik Vyas <pd...@gmail.com> wrote:
Hi Mahesh,

Can you run update again, latest version should be able to patch your instance without any exceptions.


--
Pratik
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+unsubscr…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_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+unsubscr…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/aeddb58c-a507-4d08-8673-cb069e31257b%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+unsubscr…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/8f43f0a9-bdd5-45c2-96f5-65885a2d883a%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/8c2d6ad2-ca18-418f-be23-384e7baa5ce8%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/ab8fc319-499e-4edf-8c4f-60a6938d6163%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/CAAQzbF3sis6Fzya5gX2H5KN2m9Vuh-%2BJ%2B_pDWLkOj4ddqpECAw%40mail.gmail.com.

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

I lost you in your explanation. I have checked my production server and there indeed is a standard_apps.json file under frappe-bench folder but when I checked on the contents then there is no mention of the custom apps in this json file.

Can you please elaborate as to how I could accomplish this feat. 

On Wednesday, July 2, 2014 7:29:24 PM UTC+5:30, Anand Doshi wrote:
You need to have your custom apps also installed on your setup.

I recommend that you clone a fresh bench, but before restore/install, copy the standard_apps.json file from your production setup. Then run the install command and later restore your database.


-Anand.


On Wed, Jul 2, 2014 at 7:02 PM, Aditya Duggal <ad…@gmail.com> wrote:

Hi Anand,

Please disregard the previous post, it turns out that I was not using the correct path (new to Linux and its paths)
But after the import of database I guess I am stuck with the Apps and I am getting an error for the rigpl_erpnext apps hook.

The error console is here: http://pastebin.com/JFr24LVv

Let me know how could I resolve this error.

I guess this error would also answer one of my queries that how could I setup a system on Develop branch to do the testing and then push the commits to the production branch.


On Wednesday, July 2, 2014 6:48:00 PM UTC+5:30, Aditya Duggal wrote:
Hi Anand,


Thanks for the tip. But now I guess I am stuck with another error as below:

(env)ad…@addy:~/frappe-bench/sites$ frappe --restore DB_NAME /home/Downloads/XXX_database.sql --force

MySQL root password: 
Created user DB_NAME
Created database DB_NAME
Granted privileges to user DB_NAME and database DB_NAME
Starting database import...
sh: 1: cannot open /home/Downloads/XXX_database.sql: No such file
Imported from database /home/Downloads/XXX_database.sql
Traceback (most recent call last):
  File "/home/addy/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
    return run(fn, parsed_args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
    out = globals().get(fn)(*args.get(fn), **args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 375, in restore
    _install(db_name, source_sql=source_sql, quiet=quiet, force=force)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 308, in _install
    install_app("frappe", verbose=verbose, set_as_patched=not source_sql)
  File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 87, in install_app
    frappe.clear_cache()
  File "/home/addy/frappe-bench/apps/frappe/frappe/__init__.py", line 284, in clear_cache
    frappe.sessions.clear_cache()
  File "/home/addy/frappe-bench/apps/frappe/frappe/sessions.py", line 55, in clear_cache
    for sess in frappe.db.sql("""select user, sid from tabSessions""", as_dict=1):
  File "/home/addy/frappe-bench/apps/frappe/frappe/database.py", line 118, in sql
    self._cursor.execute(query)
  File "/home/addy/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
    self.errorhandler(self, exc, value)
  File "/home/addy/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1146, "Table 'rigpl.tabSessions' doesn't exist")


On Wednesday, July 2, 2014 6:31:44 PM UTC+5:30, Anand Doshi wrote:
If you are doing this in a VM or somewhere other than your production server, use --force at the end of the command and it should be safe. Also, once the database is restored, you should get a message "Scheduler is disabled". Make sure that this message appears, else email pulling will start on this test setup.


-Anand.


On Wed, Jul 2, 2014 at 4:49 PM, Aditya Duggal <ad…@gmail.com> wrote:

I am getting this error:

Traceback (most recent call last):
  File "/home/addy/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
    return run(fn, parsed_args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
    out = globals().get(fn)(*args.get(fn), **args)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 375, in restore
    _install(db_name, source_sql=source_sql, quiet=quiet, force=force)
  File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 306, in _install
    admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
  File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 30, in install_db
    create_database_and_user(force, verbose)
  File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 47, in create_database_and_user
    raise Exception("Database %s already exists" % (db_name,))
Exception: Database rigpl already exists


No matter what name of the database I choose, I am getting the same error. Could you please let me know what is it that I am missing.

On Tuesday, June 17, 2014 12:46:21 PM UTC+5:30, rushabh wrote:
Aditya,

You have to start the Python virtual env:

cd frappe-bench
. env/bin/activate


On 16-Jun-2014, at 5:01 pm, Aditya Duggal <ad...@gmail.com> wrote:


Hi,

I am getting a frappe command not found after I did the below things:

:~/frappe-bench/sites$ frappe --restore DBNAME SQLFILE

frappe: command not found

What am I missing?

On Monday, June 16, 2014 12:35:53 PM UTC+5:30, rushabh wrote:
Thanks Aditya for pointing out. Fixed instructions:

https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup




On 16-Jun-2014, at 11:15 am, Aditya Duggal <ad…@gmail.com> wrote:

Hi,

I am trying to restore a backup on v4 but I guess the old method does not work.


Can someone please let me know the correct way to restore an old backup on v4.

I am using the wiki page here: https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup


On Thursday, December 12, 2013 10:54:07 AM UTC+5:30, Mahesh wrote:

hi, when I say

./lib/wnf.py --restore erpnext path/to/sqlfile --force

it is saying no such file.
where as I checked with dir , the file is very much there...

what am I missing.

Sorry for putting a very silly question here.....


Regards,
Mahesh




On Wed, Dec 11, 2013 at 12:02 PM, Pratik Vyas <pd...@gmail.com> wrote:
Hi Mahesh,

Can you run update again, latest version should be able to patch your instance without any exceptions.


--
Pratik
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+unsubscr…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_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+unsubscr…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/aeddb58c-a507-4d08-8673-cb069e31257b%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+unsubscr…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/8f43f0a9-bdd5-45c2-96f5-65885a2d883a%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+unsubscr…@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/8c2d6ad2-ca18-418f-be23-384e7baa5ce8%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/ab8fc319-499e-4edf-8c4f-60a6938d6163%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/77b95933-5af7-4bfd-bd30-9fd2574d2ace%40googlegroups.com.

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