Setup iDempiere on AWS Lightsail

208 views
Skip to first unread message

Wiston Kee

unread,
Jun 22, 2018, 11:24:45 AM6/22/18
to iDempiere
Hi, I followed the instruction here to setup iDempiere on my AWS lightsail instances.

First I created a new Ubuntu 16.04 instances, then I run the script provided, the installation is successful.
My problem is that I do not know how to access the server through my public IP.

Normally I would place website folder in /var/www/html, enable apache permission in apache2.conf then I would be able to access the website through the public IP.
Now that the server is installed in /opt/idempiere-server, how should I access it through the public IP? Is there any specific settings that I should set up to allow this?
When I browse to my server public IP, it says 'the server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.'

I tried to place this in 000-default.conf file but it won't work too.

SetEnv force-proxy-request-1.0 1

ProxyPass /opt/idempiere-server http://127.0.0.1:80/
ProxyPassReverse /opt/idempiere-server http://127.0.0.1:80/

Wiston Kee

unread,
Jun 24, 2018, 1:39:19 AM6/24/18
to iDempiere
Can anyone help me on this please? I just need the information to setup apache so that I can access to my idempiere server from external devices through public IP

Flemming Birch

unread,
Jun 24, 2018, 6:15:08 AM6/24/18
to idem...@googlegroups.com
Hi

this is from my configuration:

ProxyPass / http://0.0.0.0:8080/

ProxyPassReverse / http://0.0.0.0:8080/


/Flemming

Den søn. 24. jun. 2018 kl. 07.39 skrev Wiston Kee <wisto...@gmail.com>:
Can anyone help me on this please? I just need the information to setup apache so that I can access to my idempiere server from external devices through public IP

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/ee64b9d9-d3cd-45a9-825d-57d54717361b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Wiston Kee

unread,
Jun 24, 2018, 8:59:28 AM6/24/18
to iDempiere
The script installs iDempiere on port 80. I tried with:

  ProxyPass / http://0.0.0.0:80/

  ProxyPassReverse / http://0.0.0.0:80/


But have no luck with it too. I am guessing that it should be having a permission issue somewhere in the server. Do I need to set the directory root at apache2.conf? OR allow override from all for certain directory in the server?

My apache2 error.log is returning
  
  [proxy:error] (111) Connection refused: HTTP: attempt to connect to 0.0.0.0:8080 (0.0.0.0) failed
  [proxy:error] ap_proxy_connect_backend disabling worker for (0.0.0.0) for 60s
  HTTP: failed to make connection to backend: 0.0.0.0, referer: [public IP]

Does anyone has any clue please?

Chuck Boecking

unread,
Jun 24, 2018, 10:56:55 AM6/24/18
to iDempiere
Hi Wiston,

Here are my thoughts:
  • I have not tried to install on lightsail before.
  • If the script executed correctly, you should not need to change anything inside the server.
  • in AWS=>EC2, the default Security Group setting is to only allows ssh traffic. I would assume lightsail is the same way. This means you would not be able to get access to the server via port 80 until you open the port through lightsail's configuration manager.
Let me know if this helps.
Chuck

Chuck Boecking

unread,
Jun 24, 2018, 10:58:43 AM6/24/18
to iDempiere
Just out of curiosity, why are you using lightsail instead of ec2?

Wiston Kee

unread,
Jun 24, 2018, 11:05:21 AM6/24/18
to iDempiere
The default port is switched on for HTTP port 80 and SSH port 22. So I don't think this is what causing the problem here.

Wiston Kee

unread,
Jun 24, 2018, 11:10:03 AM6/24/18
to iDempiere
Not sure about ec2 but lightsail offers USD5/month per instances which is what I always use to setup my client website.
I am setting this ERP system for my own use, it's my first time setting such a server so I am pretty clueless.

Chuck Boecking

unread,
Jun 24, 2018, 11:43:23 AM6/24/18
to idem...@googlegroups.com
Hi Wiston,

Make sure the server has at least 1.5GB of RAM. iDempiere will run out of memory on a 1GB or less server. Since you are probably using the 512MB server, iDempiere is failing to start. This means you will need to use the $20/mo (2GB) server. This will be good for 2 to 3 concurrent users. Each additional user consumes about 300MB of memory. This should help you size your server accordingly.

Does this help?


Regards,


Chuck Boecking
512.850.6068 (office and cell)
ch...@chuboe.com
ChuckBoecking.com
chuck.boecking (skype)

--
You received this message because you are subscribed to a topic in the Google Groups "iDempiere" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/idempiere/HEZ17sbIbFE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/3b33a32d-7712-4a21-af24-2ac21b03c5a3%40googlegroups.com.

Wiston Kee

unread,
Jun 24, 2018, 12:05:33 PM6/24/18
to iDempiere
Thanks! That helps. The culprit is indeed due to the low memory capacity. Hope this thread would help others like me in the future.


On Sunday, June 24, 2018 at 11:43:23 PM UTC+8, Chuck Boecking wrote:
Hi Wiston,

Make sure the server has at least 1.5GB of RAM. iDempiere will run out of memory on a 1GB or less server. Since you are probably using the 512MB server, iDempiere is failing to start. This means you will need to use the $20/mo (2GB) server. This will be good for 2 to 3 concurrent users. Each additional user consumes about 300MB of memory. This should help you size your server accordingly.

Does this help?


Regards,


Chuck Boecking
512.850.6068 (office and cell)
ch...@chuboe.com
ChuckBoecking.com
chuck.boecking (skype)

On Sun, Jun 24, 2018 at 10:10 AM, Wiston Kee <wisto...@gmail.com> wrote:
Not sure about ec2 but lightsail offers USD5/month per instances which is what I always use to setup my client website.
I am setting this ERP system for my own use, it's my first time setting such a server so I am pretty clueless.

On Sunday, June 24, 2018 at 10:58:43 PM UTC+8, Chuck Boecking wrote:
Just out of curiosity, why are you using lightsail instead of ec2?

--
You received this message because you are subscribed to a topic in the Google Groups "iDempiere" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/idempiere/HEZ17sbIbFE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to idempiere+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages