Tuesday, June 18, 2019

Odoo 9 screen is blank

Issue: 



Solution:

I have found discussion on https://github.com/odoo/odoo/issues/19627 , seems that this issue was known. I tried the workaround to delete the assets information belong in /web/content

DELETE FROM ir_attachment WHERE url LIKE '/web/content/%';

but the first try wasn't successful, so i tried restart the service and refresh my browser.

Still not okay the second, third ... etc. I can't remember how many times i tried but at last it worked.



It's weird but I'm happy as for now. Eureka!

Tuesday, May 14, 2019

Failed to start Docker Application Container Engine





https://github.com/moby/moby/issues/16137



Solution:

It seems the problem is in the cyclane protection
need to ask the IT infra team to whitelist the docker container.shim and runc as part of docker installation.


Monday, April 29, 2019

Caddy sounds like candy

I already configure my domain skyguyver.com with Caddy but I need to review again as I can't remember how I did it.

The Caddyfile was placed in /etc/caddy

skyguyver.com {
    tls lynardsalingujay@gmail.com
    internal /.git
    git https://github.com/skyguyver/caddy.git {
        hook /github_hook d937c9d4-7c48-431e-8e60-bf916186f613
    }
    gzip
    redir 301 {
        if {scheme} is http
        /  https://{host}{uri}
    }
}


Wednesday, April 24, 2019

File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_attachment.py"








Conclusion:

Was able to fix this problem with a workaround: manually going into the database and removing the entries pointing to the missing files from filestoreDELETE FROM ir_attachment WHERE store_fname LIKE '%<the ending hash>%'


reference:
https://www.odoo.com/es_ES/forum/ayuda-1/question/solved-how-to-recover-deleted-attachment-files-from-filestore-folder-local-share-odoo-filestore-128453

Friday, April 19, 2019

Running Odoo and Postgres in separate container




Odoo:

version: '2'

services:
  app:
    image: skyguyver/odoo9_latest
    container_name: develop
    ports:
      - "3033:8069"
    volumes:
      - develop-data:/var/lib/odoo
      - ./addons:/mnt/extra-addons
    environment:
      - PYTHONUNBUFFERED=1
      - HOST=172.18.0.1
      - PORT=3032
      - USER=odoo
      - PASSWORD=odoo
    #command: openerp-server -d develop -u all

volumes:
  develop-data:


Postgres:

version: '2'

services:
  db:
    image: postgres:9.6
    ports:
      - "3032:5432"
    environment:
      - POSTGRES_USER=odoo
      - POSTGRES_PASSWORD=odoo
      - PGDATA=/var/lib/postgresql/data/pgdata
    volumes:
      - dbdata:/var/lib/postgresql/data/pgdata

volumes:
  dbdata:

free online comma separating tool

https://delim.co/#