Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

How to install OPENERP's DB in RDS (Amazon) and link to EC2 (Amazon)?

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
amazonclouddbec2rds
4 Besvarelser
23083 Visninger
Avatar
Hector Danilo Vasquez Gutierrez

I have installed OPENERP into the cloud in EC2, which it was a success. Now I am trying to have my DB in RDS (AMAZON), which it accepts postgres as DB. I have tried modify the config file,

[options]

; This is the password that allows database operations:

; admin_passwd = admin

db_host = 'postgresql.c8be59frvnrc.us-east-1.rds.amazonaws.com'

db_port = 5432

db_user = openerp

db_password = openerp

db_name = openerp

logfile = /var/log/openerp/openerp-server.log

but when i load the openerp-server, it stills shows "database hostname: localhost" and it doesn't even try to connect to the RDS.

0
Avatar
Kassér
Avatar
Andre de Kock
Bedste svar

I don't think that the db_host parameter should be in quotes.

Also note: I have had problems with Amazon's PostgreSQL RDS versions 9.3.2 to 9.3.5. Make sure the version you are using is 9.3.1 or 9.3.6.

2
Avatar
Kassér
Avatar
BISSTECH SRL
Bedste svar

I've configured Odoo/OpenERP to work properly with Amazon RDS.
The steps are:
1. Create your Amazon RDS database. In that process, you will provide a Postgres user name + pass and at the end you will be given: an endpoint (server name + port number, default port is 5432)

2. In the Odoo/OpenERP configuration file, write down the parameters below:

db_host = your_endpoint_name_without_port_number_and_without_any_quotes
db_password = your_postgres_passwd

db_port = 5432
db_user =your_postgres_user_name

3. Restart Odoo to enable these changes.

4. If your Odoo/OpenERP server is an AWS EC2 server, you should note that AWS resolves your db server endpoint with the private IP. Make sure that you add a security rule to your security group that allows the AWS EC2 server to access the RDS server (your db server on Amazon).

That's all! Please upvote this answer if it works for you too. Thanks!

1
Avatar
Kassér
Avatar
José Elcorrobarrutia - Oxe360
Bedste svar

The configuration is very similar to the one when everything in the same server (the EC2). You should point to the RDS dns name (instead IPs) and use the very same user and password you set when you created the RDS instance. In EC2 you can install also the PSQL client to access via command line to your RDS. It's importan to consider the version of the Postgres you installed in the EC2, because RDS it's always updated and it doesn't work if you try to connect with a different version of PSQL client.

I had a problem when backing up the database from the browser (odoo8.0), because previously in EC2 I had PSQL 9.3, while RDS was 9.5, so I had to install postgres 9.5 in the EC2, and also reset the link for pg_dump

 pg_dump -> /usr/lib/postgresql/9.5/bin/pg_dump

This is part of the odoo-USER1-server.conf.

[options]; This is the password that allows database operations:
admin_passwd = ADMINPASS_FOR_ODOO
db_host = EXAMPLERDSDNSNAME.ccebtp93ib46.us-west-2.rds.amazonaws.com
db_port = 5432
db_user = USER1
db_password = PASSUSER1
logfile = /var/log/USER1/odoo-USER1-server.log
addons_path=/opt/MOREADDONS/addons1addons_path=/opt/odoo/addons,/opt/MOREADDONS/addons1,/opt/MOREADDONS/addons2,/opt/MOREADDONS/addons3

You can have also have more than one Odoo instance within the same EC2 and the same RDS by setting different configuration files, like odoo1-server.conf, odoo2-server.conf, odooN-server.conf and using different RDS users in each file. The effect is that each odoo enviroment will only see the databases created with that specific user.

0
Avatar
Kassér
Avatar
August Doo
Bedste svar

Does anyone work out how to get it sorted? It should be an interesting topic to explore. From the idea of backup in S3, I think there should be some configuration to connect EC2 with DB. For back up in S3, s3cmd is installed. visit here:http://s3tools.org/s3cmd

I searched online and found this: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToPostgreSQLInstance.html

I will try that later.

0
Avatar
Kassér
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
Odoo+Postgres - Amazon servers or internal VMs?
amazon vm ec2 rds
Avatar
0
mar. 16
6102
link odoo with amazon rds database
amazon ec2 rds odoo odoo11.0
Avatar
Avatar
Avatar
Avatar
3
jun. 21
14958
Which is the best instance type to use on AWS to deploy ODOO in production?
aws ec2 rds
Avatar
Avatar
Avatar
2
nov. 24
5961
Amazon EC2 login after install
amazon instance ec2
Avatar
Avatar
Avatar
2
mar. 15
9267
How to set DNS for odoo instance in Amazon EC2 server? Løst
amazon ec2 odoo10 DNS
Avatar
Avatar
1
apr. 17
7466
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now