Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Theme Uninstall Internal Server Error 500

Subscribe

Get notified when there's activity on this post

This question has been flagged
uninstallcrasherrors500theme
3 Replies
6316 Views
Avatar
Scott Hart

I bought the theme Laze and was never a fan but left it because we never used the e-commerce side. NOW, I purchased another that suites us perfect but can't get it installed... When I uninstall Laze I get;


Odoo Server Error

Traceback (most recent call last):

  File "/odoo/odoo-server/odoo/http.py", line 640, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/odoo/odoo-server/odoo/http.py", line 677, in dispatch

    result = self._call_function(**self.params)

  File "/odoo/odoo-server/odoo/http.py", line 333, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/odoo/odoo-server/odoo/service/model.py", line 101, in wrapper

    return f(dbname, *args, **kwargs)

  File "/odoo/odoo-server/odoo/http.py", line 326, in checked_call

    result = self.endpoint(*a, **kw)

  File "/odoo/odoo-server/odoo/http.py", line 935, in __call__

    return self.method(*args, **kw)

  File "/odoo/odoo-server/odoo/http.py", line 506, in response_wrap

    response = f(*args, **kw)

  File "/odoo/odoo-server/addons/web/controllers/main.py", line 889, in call_button

    action = self._call_kw(model, method, args, {})

  File "/odoo/odoo-server/addons/web/controllers/main.py", line 877, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/odoo/odoo-server/odoo/api.py", line 689, in call_kw

    return call_kw_multi(method, model, args, kwargs)

  File "/odoo/odoo-server/odoo/api.py", line 680, in call_kw_multi

    result = method(recs, *args, **kwargs)

  File "/odoo/odoo-server/odoo/addons/base/module/wizard/base_module_upgrade.py", line 76, in upgrade_module

    odoo.modules.registry.Registry.new(self._cr.dbname, update_module=True)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 89, in new

    del cls.registries[db_name]

  File "/odoo/odoo-server/odoo/tools/func.py", line 68, in wrapper

    return func(self, *args, **kwargs)

  File "/odoo/odoo-server/odoo/tools/lru.py", line 72, in __delitem__

    nobj = self.d[obj]

KeyError: u'production'

0
Avatar
Discard
Avatar
MUHAMMAD Imran
Best Answer

upgrade web module through the terminal

sudo su postgres
./odoo-bin -d db_name -u module_name[web] -r role/db_user -w password
3
Avatar
Discard
Scott Hart
Author

Ok here's what I get

2020-03-25 13:51:00,910 14857 INFO ? odoo: Odoo version 10.0

2020-03-25 13:51:00,910 14857 INFO ? odoo: addons paths: ['/var/lib/postgresql/.local/share/Odoo/addons/10.0', u'/odoo/odoo-server/odoo/addons', u'/odoo/odoo-server/addons']

2020-03-25 13:51:00,910 14857 INFO ? odoo: database: odoo.config@default:default

2020-03-25 13:51:00,912 14857 INFO ? odoo.sql_db: Connection to the database failed

Traceback (most recent call last):

File "./odoo-bin", line 9, in <module>

odoo.cli.main()

File "/odoo/odoo-server/odoo/cli/command.py", line 64, in main

o.run(args)

File "/odoo/odoo-server/odoo/cli/server.py", line 175, in run

main(args)

File "/odoo/odoo-server/odoo/cli/server.py", line 140, in main

odoo.service.db._create_empty_database(db_name)

File "/odoo/odoo-server/odoo/service/db.py", line 79, in _create_empty_database

with closing(db.cursor()) as cr:

File "/odoo/odoo-server/odoo/sql_db.py", line 635, in cursor

return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)

File "/odoo/odoo-server/odoo/sql_db.py", line 177, in __init__

self._cnx = pool.borrow(dsn)

File "/odoo/odoo-server/odoo/sql_db.py", line 518, in _locked

return fun(self, *args, **kwargs)

File "/odoo/odoo-server/odoo/sql_db.py", line 586, in borrow

**connection_info)

File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 164, in connect

conn = _connect(dsn, connection_factory=connection_factory, async=async)

psycopg2.OperationalError: FATAL: Peer authentication failed for user "odoo.config"

MUHAMMAD Imran

1. We open the terminal and kill the process of odoo

ps aux | grep odoo

2. We identify the odoo process number and stop it.

sudo kill -9 #process

3. Go to the / etc / postgresql address and edit the file pg_hba.conf, add: local all odoo12 <- user that gives us problems and trust

local all odoo12 trust

* I have a user for each version, therefore I will put odoo12 because it is the one that is giving me problems.

4. We save, close and restart postgres

sudo service postgresql restart.

Avatar
Scott Hart
Author Best Answer

I saw your last comment you deleted... I was able to get the command line to actually work but the argument was I didn't need -r or -w. I went to the directory /odoo-server and ran it without, but then once updated I got this;

2020-03-25 14:13:19,703 1762 ERROR production odoo.modules.registry: Failed to load registry

Traceback (most recent call last):

  File "/odoo/odoo-server/odoo/modules/registry.py", line 83, in new

    odoo.modules.load_modules(registry._db, force_demo, status, update_module)

  File "/odoo/odoo-server/odoo/modules/loading.py", line 341, in load_modules

    registry.setup_models(cr)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 292, in setup_models

    model._setup_base(partial)

  File "/odoo/odoo-server/odoo/models.py", line 2817, in _setup_base

    self._add_manual_fields(partial)

  File "/odoo/odoo-server/odoo/models.py", line 654, in _add_manual_fields

    field = IrModelFields._instanciate(field_data, partial)

  File "/odoo/odoo-server/odoo/addons/base/ir/ir_model.py", line 683, in _instanciate

    rel, col1, col2 = self._custom_many2many_names(field_data['model'], field_data['relation'])

  File "/odoo/odoo-server/odoo/addons/base/ir/ir_model.py", line 385, in _custom_many2many_names

    rel2 = self.env[comodel_name]._table

  File "/odoo/odoo-server/odoo/api.py", line 760, in __getitem__

    return self.registry[model_name]._browse((), self)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 178, in __getitem__

    return self.models[model_name]

KeyError: u'product.brand'

2020-03-25 14:13:19,704 1762 CRITICAL production odoo.service.server: Failed to initialize database `production`.

Traceback (most recent call last):

  File "/odoo/odoo-server/odoo/service/server.py", line 911, in preload_registries

    registry = Registry.new(dbname, update_module=update_module)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 83, in new

    odoo.modules.load_modules(registry._db, force_demo, status, update_module)

  File "/odoo/odoo-server/odoo/modules/loading.py", line 341, in load_modules

    registry.setup_models(cr)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 292, in setup_models

    model._setup_base(partial)

  File "/odoo/odoo-server/odoo/models.py", line 2817, in _setup_base

    self._add_manual_fields(partial)

  File "/odoo/odoo-server/odoo/models.py", line 654, in _add_manual_fields

    field = IrModelFields._instanciate(field_data, partial)

  File "/odoo/odoo-server/odoo/addons/base/ir/ir_model.py", line 683, in _instanciate

    rel, col1, col2 = self._custom_many2many_names(field_data['model'], field_data['relation'])

  File "/odoo/odoo-server/odoo/addons/base/ir/ir_model.py", line 385, in _custom_many2many_names

    rel2 = self.env[comodel_name]._table

  File "/odoo/odoo-server/odoo/api.py", line 760, in __getitem__

    return self.registry[model_name]._browse((), self)

  File "/odoo/odoo-server/odoo/modules/registry.py", line 178, in __getitem__

    return self.models[model_name]

KeyError: u'product.brand'


0
Avatar
Discard
MUHAMMAD Imran

Please once again follow my last comment and let me know in deleted comment i missed one thing.Which i have added right now. I hope now it will fixed. After testing please let me know.

Thanks

Scott Hart
Author

Edit pg_hba.conf but still getting error. Can you confirm this is correct?

# Database administrative login by Unix domain socket

local all postgres peer

# TYPE DATABASE USER ADDRESS METHOD

# "local" is for Unix domain socket connections only

local all all peer

# IPv4 local connections:

host all all 127.0.0.1/32 md5

# IPv6 local connections:

host all all ::1/128 md5

# Allow replication connections from localhost, by a user with the

# replication privilege.

#local replication postgres peer

#host replication postgres 127.0.0.1/32 md5

#host replication postgres ::1/128 md5

local all odoo12 trust

MUHAMMAD Imran

Change this line

local all postgres peer

to

local all postgres trust

after checking please let me know

Scott Hart
Author

The developer of the "new" theme I was installing figured out it a specific module, but also updated my database. Theme works but now all of my purchased or custom modules won't... What a nightmare.

Enjoying the discussion? Don't just read, join in!

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

Sign up
Related Posts Replies Views Activity
theme vista backend - error 500
error 500 theme
Avatar
Avatar
2
Mar 22
4472
No such external ID currently defined in the system: resource.timesheet_group1 ?
uninstall errors moduels
Avatar
Avatar
2
Mar 15
5816
Internal Server Error after uninstalling theme Solved
error uninstall theme odoo11community
Avatar
Avatar
2
Sep 18
5247
Getting 500 Internal Server Error after copy my odoo 17 proyect Solved
error bug crash 500 v17
Avatar
1
Jul 25
4688
Many Database errors after Server Migration Odoo8.0
server migration crash errors odoo8.0
Avatar
Avatar
1
May 17
3914
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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