Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.0] Empty page after login #65

Closed
devent opened this issue Jul 27, 2016 · 13 comments
Closed

[9.0] Empty page after login #65

devent opened this issue Jul 27, 2016 · 13 comments

Comments

@devent
Copy link

devent commented Jul 27, 2016

Hello, I tried the official Odoo 9 docker image with Postgresql database. After creating the database and login, I only see the Odoo logo on the left, a black menu bar, and an empty page. No menu, no apps, nothing. No errors in the logs, and the database is created (tested with pgadmin).

If I open the source of the Odoo page, I can see menu elements.

What is going on?

Here are the logs after login.

2016-07-27 06:08:56,566 1 INFO odoo9_test4 openerp.service.common: successful login from 'admin@muellerpublic.de.local' using database 'odoo9_test4'
2016-07-27 06:08:56,567 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/webclient/translations HTTP/1.1" 200 -
2016-07-27 06:08:56,571 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/session/get_session_info HTTP/1.1" 200 -
2016-07-27 06:08:56,621 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/proxy/load HTTP/1.1" 200 -
2016-07-27 06:08:56,654 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/session/modules HTTP/1.1" 200 -
2016-07-27 06:08:56,694 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/dataset/search_read HTTP/1.1" 200 -
2016-07-27 06:08:56,699 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/webclient/jslist HTTP/1.1" 200 -
2016-07-27 06:08:56,700 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/webclient/csslist HTTP/1.1" 200 -
2016-07-27 06:08:56,703 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/webclient/translations HTTP/1.1" 200 -
2016-07-27 06:08:56,730 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/proxy/load HTTP/1.1" 200 -

Here is part of the loaded Odoo page as source.

<!DOCTYPE html>
            <html style="height: 100%">
                <head>
                    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
                    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
                    <title>Odoo</title>
                    <link rel="shortcut icon" href="/web/static/src/img/favicon.ico" type="image/x-icon"/>
                    <link rel="stylesheet" href="/web/static/src/css/full.css"/>


            <link href="/web/content/341-1add395/web.assets_common.0.css" rel="stylesheet"/>
            <script type="text/javascript" src="/web/content/342-1add395/web.assets_common.js"></script>
                    <script type="text/javascript">
                        odoo.define('web.csrf', function (require) {
                            var token = "8897eee791ee30bbde7119f107fb9a4ce9827689o";
                            require('web.core').csrf_token = token;
                            require('qweb').default_dict.csrf_token = token;
                        });
                        odoo.db_info = {"server_version_info": [9, 0, 0, "final", 0, "c"], "server_version": "9.0c-20160609"};
                    </script>

            <link href="/web/content/343-91ab199/web.assets_backend.0.css" rel="stylesheet"/>
            <link href="/web/content/344-91ab199/web.assets_backend.1.css" rel="stylesheet"/>
            <script type="text/javascript" src="/web/content/345-91ab199/web.assets_backend.js"></script>
                    <!--[if lte IE 9]> <link rel="stylesheet" href="/web/static/src/css/ie.css"/> <![endif]-->
                    <script type="text/javascript">
                        $(function() {


                                odoo.define('web.web_client', function (require) {
                                    var WebClient = require('web.WebClient');
                                    var web_client = new WebClient();
                                    web_client.setElement($(document.body));
                                    web_client.start();
                                    return web_client;
                                });

                        });
                    </script>

                </head>
                <body>



                <nav id="oe_main_menu_navbar" class="navbar navbar-inverse" role="navigation" groups="base.group_user,base.group_portal">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                    </div>
                    <div class="navbar-collapse collapse" id="oe_main_menu_placeholder">

            <ul class="nav navbar-nav navbar-left oe_application_menu_placeholder" style="display: none;">
                <li>


            <a href="/web#menu_id=5&amp;action=" class="oe_menu_toggler" data-menu="5">
                <span class="oe_menu_text">
                    Apps
                </span>
            </a>
@b3rew
Copy link

b3rew commented Aug 1, 2016

same here
@devent did u solve it ?

@devent
Copy link
Author

devent commented Aug 2, 2016

No. I switched to Odoo 8.0.
Maybe I try the other Docker Image
https://hub.docker.com/r/hibou/odoo/

@jaredkipe
Copy link

Feel free to try my image out, but I couldn't reproduce this on #60 either.

@jupiterkenji
Copy link

same here

@b3rew
Copy link

b3rew commented Aug 26, 2016

@stewiegaribaldi check if it is a LESS problem and less compiler is installed

@jaredkipe
Copy link

@b3rew that was my initial thought, but like I said, I couldn't reproduce it and everyone doing a docker pull on this repo is going to get the same version of LESS.

@jupiterkenji
Copy link

I agree with @jaredkipe, isn't LESS already installed in the docker image? I have local install in my computer install and it works; it didn't work when I do it on remote server using NGINX, I suspect it is NGINX issue?

@jaredkipe
Copy link

Well I didn't try to reproduce it with a proxy. I connected directly to the exposed port of 8069

@jupiterkenji
Copy link

I got it working by:

changed the postgres container name back to 'db' instead of my own name
use the default u/n and p/w for postgres
Not using /mnt/extra-addons/volumes for odoo container

Nothing to do with NGINX

@tiangolo
Copy link
Contributor

tiangolo commented Oct 5, 2016

I was able to replicate the error and do a workaround (using default username and password), it's detailed in this comment: odoo/odoo#10377 (comment)

@devent
Copy link
Author

devent commented Oct 31, 2016

I tried the latest 9.0 release from your official docker image, and it works now. I guess you can close the issue. For reference, I have created a project that installs Odoo 9 and all necessary dependencies.
https://github.com/devent/odoo_setup

@devent devent closed this as completed Oct 31, 2016
@cfq20
Copy link

cfq20 commented Dec 16, 2016

I found this thread because I have just had this problem, but in my case it cannot have been caused by not properly set environment variables, as discussed above, because I am using a container from the most current Odoo 9.0 Docker Hub image as of this writing, which is release 20161123.

I couldn't figure out why the problem appeared in the first place, but after creating new containers I could log in and load the full page (the one with the list of available Apps to install) ONLY AFTER clearing the browser cache!

@baschelik
Copy link

try: blank screen after login means you go to ir_attachments table of your odoo database, find all the entry with value 'web/content' in column name and delete them, odoo will regenerate them and voila, you got your odoo back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants