ERPNext Ubuntu Linux install on Azure VM

Hi All

Really need help in understanding why I cannot access ERPNext through MAC via http://localhost:8000

Installed via Manual Setup using the MAC Terminal command. VM is running in Azure?

Can anybody help me debug this install?

Many Thanks

Paul

@PaulTheTrouble I assume, you have created a ubuntu VM on Azure. However, creating and configuring a VM on Azure is bit tricky, let me outline few:

Step 1: Let’s say, you are creating a standard ubuntu VM (Not classic) and following deployment model as “Resource Manager”. Default option should work well.

Step 2: Configuring a “Network Security Group” while creating a VM is another steps where need to configure the “Inbound” & “Outbound” security rules manually. You may refer inbound security rules here. Ignore 8069 port, its optional.

Step 3: Complete the final steps. And SSH the machine through SSH Key or Password as you selected in Authentication Type(Step 1). It should goes like this - ssh username@ip address from MAC Terminal.

Step 4: Once you are in, follow the installation steps outlined on ERPNext github page.

Steps 5: :slight_smile:

–
Sunil
Nescode // Partner for ERPNext

1 Like

@vjFaLk part of documentations? / how to’s?

@sunilsrikumar thanks for the detailed response…

I shall try these steps out now, your assumptions above were correct.

Many Thanks

Paul

1 Like

@ramielian Thanks for pinging me :slight_smile:

@sunilsrikumar Can you add this to the Bench Wiki?

Hi @sunilsrikumar having a bit of a problem with step 3…

Step 3: Complete the final steps. And SSH the machine through SSH Key or Password as you selected in Authentication Type(Step 1). It should goes like this - ssh username@ip address from MAC Terminal.

for some strange reason in MAC terminal I am getting Permission denied, please try again…

command

ssh username@ipaddress

any ideas?

Thanks

Paul

@PaulTheTrouble “Permission denied” issue usually comes while connecting in any VMs when:

  • You are not connecting with right username. In case of Azure, give the username which you entered while making VM. (not root)

  • OR It could be wrong password/ssh key.

Sunil
Nescode // Partner for ERPNext

I am also thinking the IP was incorrect…

we have a a public IP and a Private IP…

I have now changed to Private IP and am receiving the below:

ssh: connect to host 10.0.0.4 port 22: Connection refused

Is this to do with the Inbound/Outbound Security groups?

Thanks for your help @sunilsrikumar

Paul

@PaulTheTrouble Pls use Public IP address to connect to VM. SSH with Port 22 used to be open by default in Azure.

Sunil
Nescode // Partner for ERPNext

Hi @sunilsrikumar

Ok Progress…

have now completed steps 1-4 as requested.

When I now connect to http://publicipaddress:80 I am now receiving the welcome to Nginix page not the Next ERP Page, I think there was a similar issue raised recently and @vjFaLk may have resolved?

Any ideas?

I have attempted to run

bench setup nginx (no luck)

and

sudo service nginx reload (no luck)

Thanks all.

Paul

@PaulTheTrouble If you are using Azure, then no need to restart/reload nginx. ERPNext easy install(One of the best installer ever I have come across) does everything automatically. For more info, you may refer ERPNext documentation.

Sunil
Nescode // Partner for ERPNext

what script did you use for installation ?

@sunilsrikumar yes agreed… and @ramielian it was the easy install that I’ve used.

Struggling to understand why I’m getting the nginx welcome page rather than ERPNext page?

I’m thinking we have errors on the easy production install script?

No the script is working good as much as we know as we do almost daily installs in our side…

Do you Use vm?
Do you use ubuntu desktop ?

@ramielian @sunilsrikumar

Had to complete a fresh Ubuntu 14.0.04 VM in azure and ran the easy install scripts via MAC Terminal SSH again…

It worked… Thanks for your guidance @sunilsrikumar seems as though the missing steps was the security group setup.

working fine on http://publicipaddress:80

cheers

Paul