Odoo12: err on setting remote database to be at amazon RDS












0















I have odoo installed on my machine. I want the database to be connected to amazon RDS. I created the postgreSQL database on RDS and edited the conf file as follows:



; This is the password that allows database operations:
admin_passwd = MYADMINPASSWD
db_host = DATABASE-NAME.cAbC7aXWw6aE.us-east-2.rds.amazonaws.com
db_port = 5432
db_user = ODOO12
db_password = ODOO12PASSWORD
addons_path = /opt/odoo12/odoo/addons,/opt/odoo12/odoo-custom-addonsenter


The above does not work, and I get the following err:




Internal Server Error The server encountered an internal error and was
unable to complete your request. Either the server is overloaded or
there is an error in the application.




Edit:
When I go to RDS AWS log err file it shows the following message at the moment odoo attempts to connect to database:



ERROR: relation "ir_module_module" does not exist at character 28
2019-02-17 23:33:47 UTC:XXXXX.virtua.com.br(XXXX):odoo12@odoo12:[20563]:STATEMENT: SELECT latest_version FROM ir_module_module WHERE name='base'









share|improve this question





























    0















    I have odoo installed on my machine. I want the database to be connected to amazon RDS. I created the postgreSQL database on RDS and edited the conf file as follows:



    ; This is the password that allows database operations:
    admin_passwd = MYADMINPASSWD
    db_host = DATABASE-NAME.cAbC7aXWw6aE.us-east-2.rds.amazonaws.com
    db_port = 5432
    db_user = ODOO12
    db_password = ODOO12PASSWORD
    addons_path = /opt/odoo12/odoo/addons,/opt/odoo12/odoo-custom-addonsenter


    The above does not work, and I get the following err:




    Internal Server Error The server encountered an internal error and was
    unable to complete your request. Either the server is overloaded or
    there is an error in the application.




    Edit:
    When I go to RDS AWS log err file it shows the following message at the moment odoo attempts to connect to database:



    ERROR: relation "ir_module_module" does not exist at character 28
    2019-02-17 23:33:47 UTC:XXXXX.virtua.com.br(XXXX):odoo12@odoo12:[20563]:STATEMENT: SELECT latest_version FROM ir_module_module WHERE name='base'









    share|improve this question



























      0












      0








      0








      I have odoo installed on my machine. I want the database to be connected to amazon RDS. I created the postgreSQL database on RDS and edited the conf file as follows:



      ; This is the password that allows database operations:
      admin_passwd = MYADMINPASSWD
      db_host = DATABASE-NAME.cAbC7aXWw6aE.us-east-2.rds.amazonaws.com
      db_port = 5432
      db_user = ODOO12
      db_password = ODOO12PASSWORD
      addons_path = /opt/odoo12/odoo/addons,/opt/odoo12/odoo-custom-addonsenter


      The above does not work, and I get the following err:




      Internal Server Error The server encountered an internal error and was
      unable to complete your request. Either the server is overloaded or
      there is an error in the application.




      Edit:
      When I go to RDS AWS log err file it shows the following message at the moment odoo attempts to connect to database:



      ERROR: relation "ir_module_module" does not exist at character 28
      2019-02-17 23:33:47 UTC:XXXXX.virtua.com.br(XXXX):odoo12@odoo12:[20563]:STATEMENT: SELECT latest_version FROM ir_module_module WHERE name='base'









      share|improve this question
















      I have odoo installed on my machine. I want the database to be connected to amazon RDS. I created the postgreSQL database on RDS and edited the conf file as follows:



      ; This is the password that allows database operations:
      admin_passwd = MYADMINPASSWD
      db_host = DATABASE-NAME.cAbC7aXWw6aE.us-east-2.rds.amazonaws.com
      db_port = 5432
      db_user = ODOO12
      db_password = ODOO12PASSWORD
      addons_path = /opt/odoo12/odoo/addons,/opt/odoo12/odoo-custom-addonsenter


      The above does not work, and I get the following err:




      Internal Server Error The server encountered an internal error and was
      unable to complete your request. Either the server is overloaded or
      there is an error in the application.




      Edit:
      When I go to RDS AWS log err file it shows the following message at the moment odoo attempts to connect to database:



      ERROR: relation "ir_module_module" does not exist at character 28
      2019-02-17 23:33:47 UTC:XXXXX.virtua.com.br(XXXX):odoo12@odoo12:[20563]:STATEMENT: SELECT latest_version FROM ir_module_module WHERE name='base'






      database rds odoo






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 19 at 15:21







      Alan Alves

















      asked Feb 12 at 21:09









      Alan AlvesAlan Alves

      11




      11






















          1 Answer
          1






          active

          oldest

          votes


















          0














          The problem appear to be at creation of database. While I did not solve the problem I find a work around, by first creating the database locally, backing it up, use the back up to create database directly on RDS. Those are the step I've taken:




          1. Set back the config file to point the database to local server

          2. Start odoo and create the dabase locally

          3. Backup the database generating a zip file

          4. Extract and keep the 'dump.sql'

          5. Execute the 'dump.sql' into RDS using the follwoing code:


          psql --host=your_database_instase.XXXXX.us-east-2.rds.amazonaws.com --port=5432 --username=your_user_name --password -f /home/my_user/Downloads/odoobackup/dump.sql




          1. Set the config file to point the amazon RDS again.

          2. Restart the server and everything should be fine!






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1405011%2fodoo12-err-on-setting-remote-database-to-be-at-amazon-rds%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            The problem appear to be at creation of database. While I did not solve the problem I find a work around, by first creating the database locally, backing it up, use the back up to create database directly on RDS. Those are the step I've taken:




            1. Set back the config file to point the database to local server

            2. Start odoo and create the dabase locally

            3. Backup the database generating a zip file

            4. Extract and keep the 'dump.sql'

            5. Execute the 'dump.sql' into RDS using the follwoing code:


            psql --host=your_database_instase.XXXXX.us-east-2.rds.amazonaws.com --port=5432 --username=your_user_name --password -f /home/my_user/Downloads/odoobackup/dump.sql




            1. Set the config file to point the amazon RDS again.

            2. Restart the server and everything should be fine!






            share|improve this answer




























              0














              The problem appear to be at creation of database. While I did not solve the problem I find a work around, by first creating the database locally, backing it up, use the back up to create database directly on RDS. Those are the step I've taken:




              1. Set back the config file to point the database to local server

              2. Start odoo and create the dabase locally

              3. Backup the database generating a zip file

              4. Extract and keep the 'dump.sql'

              5. Execute the 'dump.sql' into RDS using the follwoing code:


              psql --host=your_database_instase.XXXXX.us-east-2.rds.amazonaws.com --port=5432 --username=your_user_name --password -f /home/my_user/Downloads/odoobackup/dump.sql




              1. Set the config file to point the amazon RDS again.

              2. Restart the server and everything should be fine!






              share|improve this answer


























                0












                0








                0







                The problem appear to be at creation of database. While I did not solve the problem I find a work around, by first creating the database locally, backing it up, use the back up to create database directly on RDS. Those are the step I've taken:




                1. Set back the config file to point the database to local server

                2. Start odoo and create the dabase locally

                3. Backup the database generating a zip file

                4. Extract and keep the 'dump.sql'

                5. Execute the 'dump.sql' into RDS using the follwoing code:


                psql --host=your_database_instase.XXXXX.us-east-2.rds.amazonaws.com --port=5432 --username=your_user_name --password -f /home/my_user/Downloads/odoobackup/dump.sql




                1. Set the config file to point the amazon RDS again.

                2. Restart the server and everything should be fine!






                share|improve this answer













                The problem appear to be at creation of database. While I did not solve the problem I find a work around, by first creating the database locally, backing it up, use the back up to create database directly on RDS. Those are the step I've taken:




                1. Set back the config file to point the database to local server

                2. Start odoo and create the dabase locally

                3. Backup the database generating a zip file

                4. Extract and keep the 'dump.sql'

                5. Execute the 'dump.sql' into RDS using the follwoing code:


                psql --host=your_database_instase.XXXXX.us-east-2.rds.amazonaws.com --port=5432 --username=your_user_name --password -f /home/my_user/Downloads/odoobackup/dump.sql




                1. Set the config file to point the amazon RDS again.

                2. Restart the server and everything should be fine!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 19 at 15:31









                Alan AlvesAlan Alves

                11




                11






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1405011%2fodoo12-err-on-setting-remote-database-to-be-at-amazon-rds%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕