ERPnext installation on Linode on Ubuntu 12.04

172 views
Skip to first unread message

Vivek

unread,
Jul 24, 2013, 8:44:51 AM7/24/13
to erpnext-dev...@googlegroups.com
Hi ,

     Am trying to setup erpnext on my linode instance. Here are the steps I followed

1. Created a new folder "erp"
2. downloaded install_erpnext.py into the folder
3. python install_erpnext.py


It shows the following

Operating System = Linux
Python Version = 2.7.3
Distribution =  ubuntu
--------------------------------------------------------------------------------
Installing Packages: (This may take some time)
python python-setuptools python-mysqldb apache2 git memcached ntp vim screen htop
--------------------------------------------------------------------------------
.
.
Installing Packages: mysql-server libmysqlclient-dev
.
Traceback (most recent call last):
  File "install_erpnext.py", line 333, in <module>
    install()
  File "install_erpnext.py", line 10, in install
    install_pre_requisites()
  File "install_erpnext.py", line 24, in install_pre_requisites
    install_using_apt()
  File "install_erpnext.py", line 119, in install_using_apt
    update_config_for_debian()
  File "install_erpnext.py", line 126, in update_config_for_debian
    with open("/etc/memcached.conf", "r") as original:
IOError: [Errno 2] No such file or directory: u'/etc/memcached.conf'



Any ideas?

Jorge Quiterio

unread,
Jul 24, 2013, 8:51:22 AM7/24/13
to erpnext-dev...@googlegroups.com
Vivek,

Try to install memcached first

apt-get install memcached

thanks


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



--
Jorge Quitério
IT Specialist

Vivek

unread,
Jul 24, 2013, 9:01:23 AM7/24/13
to erpnext-dev...@googlegroups.com

Hi ,

      thanks for the the quick response , upon following your instruction , the following error is generated

Installing ERPNext
--------------------------------------------------------------------------------
MySQL Root user's Password:
.
ERPNext Database Name: ********
Cloning erpnext
.
.
Cloning wnframework
.

.
Traceback (most recent call last):
  File "install_erpnext.py", line 333, in <module>
    install()
  File "install_erpnext.py", line 14, in install
    install_erpnext(install_path)
  File "install_erpnext.py", line 165, in install_erpnext
    setup_conf(install_path, db_name)
  File "install_erpnext.py", line 217, in setup_conf
    with open(os.path.join(install_path, "lib", "conf", "conf.py"), "r") as template:
IOError: [Errno 2] No such file or directory: u'/root/erp/lib/conf/conf.py'

Am not sure what is broken this time...

Thanking you ,

.............






Anand Doshi

unread,
Jul 24, 2013, 9:05:31 AM7/24/13
to erpnext-dev...@googlegroups.com
Hi Vivek,

Delete existing app and lib folders in /root/erp and try installing again.

Thanks,
Anand.

Vivek

unread,
Jul 24, 2013, 9:15:30 AM7/24/13
to erpnext-dev...@googlegroups.com

Hi Anand ,

                  I tried your advice of deleting all files , removing the folder and initiating reinstallation sadly the same result follows...

Installing ERPNext
--------------------------------------------------------------------------------
MySQL Root user's Password:
.
ERPNext Database Name: *******
Message has been deleted

Vivek

unread,
Jul 24, 2013, 9:21:01 AM7/24/13
to erpnext-dev...@googlegroups.com
 Hi ,

       Another thing I noticed is ,

       the erp directory structure is as follows

erp ->       1. logs - > empty

                2. public - >  1. backups   -> empty
                                   2. files ->    empty 

                3. install_erpnext.py


Is the above normal? After cloning aren't the app files supposed to be there?


thanking you ,

..............

Anand Doshi

unread,
Jul 24, 2013, 9:25:17 AM7/24/13
to erpnext-dev...@googlegroups.com
Hi Vivek,

logs, public/backups, public/files are supposed to be empty

For some reason, app and lib folders are not getting cloned from respective repositories.

Can you check if github is accessible by doing:

-Anand.

Vivek

unread,
Jul 24, 2013, 10:14:47 AM7/24/13
to erpnext-dev...@googlegroups.com
Hi ,

        I tried restarting the who process.

1. I installed memcached first as the above mentioned error was repeating.
2. Ran install_erpnext.py

The following error comes up

Cloning erpnext

.
.
Traceback (most recent call last):
  File "install_erpnext.py", line 337, in <module>

    install()
  File "install_erpnext.py", line 14, in install
    install_erpnext(install_path)
  File "install_erpnext.py", line 164, in install_erpnext
    setup_folders(install_path)
  File "install_erpnext.py", line 197, in setup_folders
    raise Exception, "Couldn't clone erpnext repository"
Exception: Couldn't clone erpnext repository
 

I tried pinging from the terminal to github. The connection is fine.

Is there any other possible way to trace the exact problem?

thanking you ,

.....................

Anand Doshi

unread,
Jul 24, 2013, 10:20:16 AM7/24/13
to erpnext-dev...@googlegroups.com
Go to /root/erp and run this command:


Let us know if it works.

Message has been deleted

Anand Doshi

unread,
Jul 24, 2013, 11:16:57 AM7/24/13
to erpnext-dev...@googlegroups.com
You can try installing Git again

apt-get install git

And try the clone command again. 

Sent from my phone

On 24-Jul-2013, at 8:28 PM, Vivek <v2g...@gmail.com> wrote:

Hi ,

      It seems to produce an error as follows ...


Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:

command-not-found version: 0.2.44


I am uncertain if the Linode's instance is faulty or am I doing something wrong , I have raised a ticket with linode anyway.

Anything else I should be looking into?

thanking you,

Vivek

unread,
Jul 24, 2013, 11:19:57 AM7/24/13
to erpnext-dev...@googlegroups.com

I just did that. It seem to by pass that error to be followed by another. I think I should document this.  I just cleaned the old linode instance and trying again . Will let you guys know what happens.

Vivek

unread,
Jul 24, 2013, 2:26:50 PM7/24/13
to erpnext-dev...@googlegroups.com
HI ,

      Everything is getting broken on Linode. I had manually installed erpnext successfully previously. Is manually installation procedure still available. I am trying to check steps via the python script install_erpnext.py . But would be easier if one is already there with better instructions  
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@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+unsub...@googlegroups.com.

Vivek

unread,
Jul 24, 2013, 3:37:26 PM7/24/13
to erpnext-dev...@googlegroups.com
Hi,

    Ok I got it installed .

 1. apt-get update - This was a key command . apache was failing to install without the command
2. mysql was manually installed . Dont know why the script couldn't get it done
3. pytz was also manually installed
4. memcached was manually installed

I hope these points would help to refine this script. Apart from these it was a breeze . thanks a lot.


Rushabh Mehta

unread,
Jul 25, 2013, 12:32:45 AM7/25/13
to erpnext-dev...@googlegroups.com
Can you fix it and send a PR?

Thanks!


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

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



--



Twitter: @rushabh_mehta

Ravi Bhushan

unread,
Jul 12, 2014, 10:47:30 PM7/12/14
to erpnext-dev...@googlegroups.com
Can you help me to install ERPnext and provide me your Skype Id, me:rbhushan90

Rushabh Mehta

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