Re: [erpnext-dev] error while reinstalling erpnext

Satish,

If you are also using Production Deployment steps, you don't need to use wnf --serve!

--serve is for development server. In production you use nginx + gunicorn. Just make sure you followed the production deployment steps. Don't use --server for production.

Thanks,
Anand.


On Thu, Dec 5, 2013 at 7:49 PM, Satish <sa...@gmail.com> wrote:
Hi once again,

I have now resolved the problem of two instances of python. I have removed the one in /usr/local/bin
I have now managed to reinstall the entire thing and import my old data into it.

erpnext is now working beautifully on localhost.
However, I still have the problem of it not working over the network.
This time when i use ./lib/wnf.py --serve it does not bind and give socket.error: [Errno 98] Address already in use

I used netstat -tulpn to list the addresses and see 'python' service running on this address.
When I try to kill it the ip address is again blocked by 'python' with different service id.

I have also installed gunicorn, supervisor and nginx server.
I have added the configuration files as suggested in "WSGI production deployment" and in both configuration files I have changed the /path/to/erpnext
Apart from that I haven't changed anything in the configuration files. Do I need to make any more changes in any of the files???

I am still unable to access it over the network.


Regards
Satish Gupta


On Thursday, 5 December 2013 17:30:48 UTC+5:30, Satish wrote:

Hi Maxwell and Pratik,

Erpnext was running before but only on localhost. I could not open it over network. As you said if ./lib/wnf.py --serve is binding to 0.0.0.0:8000, it should work over network. But I ran that command again and it again started giving the errors as earlier,

AttributeError: 'module' object has no attribute 'pydebug


So I thought of reinstalling the entire thing after making a backup of my data but then hit this problem.

I have not yet been able to solve problem of two installations of python. I still have another python2.7 in /usr/local/bin and it is the location it returns when i run

which python
or
which python2.7

Regards
Satish Gupta

On Wednesday, 4 December 2013 20:04:05 UTC+5:30, Pratik Vyas wrote:
Hi Satish,

Did you want to clear the database?

For clearing the data, you could have run `./lib/wnf.py --reinstall --force`

Also, if I remember correctly, you had another python2.7 in /usr/local/bin which caused issues, did you solve them? Because, as you had erpnext running before, werkzeug should be installed already.


Thanks,



On Wed, Dec 4, 2013 at 7:24 PM, Satish <sa…@gmail.com> wrote:


My erpnext installation was quite messed up so I decided to reinstall everything.
I deleted the erpnext folder under /home/erpnext and started reinstalling.


It asked me for the database name and I gave a name. I get the following error after this:

Traceback (most recent call last):
File "install_erpnext.py", line 321, in <module>
install(install_path=install_path)

File "install_erpnext.py", line 38, in install
install_erpnext(install_path)
File "install_erpnext.py", line 177, in install_erpnext
import wnf
File "lib/wnf.py", line 12, in <module>

import webnotes<br>  File &quot;lib/webnotes/__init__.py&quot;, line 10, in &lt;module&gt;<br>    from werkzeug.local import Local<br><br><br>How do I proceed?<br></div>



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.




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