odoo 13 500 error after updating to ubuntu 20 - odoo

I had a version 13 Odoo working on ubuntu 18.04 with no issues.
After updating to Ubuntu 20.04 it returns a 500 error. I attempted to check the logs but after the shutdown it has no new information. I attempted to downgrade the python version to 3.6, but even after this, I am still getting the error.
What else should I be checking?
UPDATE*
https://github.com/odoo/odoo/pull/59480
Looks like Ubuntu 20.4 is the culprit. It updated python and causes qr web to fail https://github.com/odoo/odoo/pull/59480
I downgraded to python 3.6.9 and restart the service but still getting the 500 error.

Related

Error in phpldapadmin on Ubuntu 18.04 "Fatal error: Cannot redeclare password_hash() in ...../lib/functions.php on line 2236"

Until writing this question, there is no entry for "Php LDAP Admin" on the Ubuntu 18.04 repositories. I had to install and deploy it manually as a php program. I did this, but unfortunately, I faced this error:
Fatal error: Cannot redeclare password_hash() in ..../phpldapadmin/lib/functions.php on line 2236
I checked the code either with phpv5.6 and phpv7.2; the error remains same as above.
Any idea?
It seems that, the best solution for the short-time is using the project under the Ubuntu 16.04. When you install the phpLDAPadmin from Ubuntu 16.04 repositories, it automatically checks for php7.0 and installs it if it does not exist.
On Ubuntu 18.04, there is no entry for phpLDAPadmin yet, but with some efforts may you could deploy the code with php7.0. Furthermore, it could be beneficial to check following link, to patch some major bugs and also update phpLDAPadmin from v1.2.2 to v1.2.3:
http://www.jouvinio.net/wiki/index.php/PhpLDAPAdmin_Update_Version_1.2.2_vers_1.2.3

bazel failing to install tensorflow with this error java installation could't find/access rt.jar in /usr/lib/jvm/java-9-oracle

While trying to install tensorflow with gpu on my ubuntu 16.04 box with python 3.5 and cuda 7.5 and cudann 5.1, on configuring I am getting below error. Can some one suggest how to fix this?
Error seen
By the way tried with lower version of bazel aswell 0.3.2 but still no help. Seems this has been reported by more people... Need google to resolve this issue with Bazel or tensorflow.

Installation of Wpasupplicant failed on ubuntu 16.04 server, problems with libnl-3-dev

I am trying to install the latest Wpa_Supplicant on Ubuntu 16.04 server from the official website. According to http://deployingradius.com/scripts/eapol_test/ I uncommented CONFIG_EAPOL_TEST=yes and run make eapol_test but I get failed:
/usr/bin/ld: cannot find -lnl
collect2: error: ld returned 1 exit status
Makefile:1613: recipe for target 'eapol_test' failed
make: *** [eapol_test] Error 1
However, when I did the same but using Ubuntu 14.04 server, everything is ok!
I realized that the package libnl-devresolves the problem of **/usr/bin/ld: cannot find -lnl** for ubuntu14.04. However, the Ubuntu 16.04 does not have libnl-dev in his repository, instead of It has libnl-3-dev, but wpa_supplicant failed when I run make eapol_test.
Could anyone help me install wpa_supplicant on ubuntu 16.04 plz?, I am trying run everything on ubuntu 16.04 and not on ubuntu 14.04.
Thank you in advance,
Javier
You might try the following:
install the package libnl-genl-3-dev
in the .config file uncomment the following (2nd) line:
# Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored)
CONFIG_LIBNL32=y
I could then link the target correctly, because it then used "-lnl-3" instead of "-lnl"

How do I reinstall Apache 2.2 on Ubuntu 13.10?

I have a VPS running Ubuntu 13.10 and Apache which I use to host Rails sites.
Yesterday I decided to do a release upgrade before applying a shellshock patch $do-release-upgrade. The upgrade failed with a broken pipe error (I should have made a note of the exact error but didn't — sorry). I logged back in and the Ubuntu version remains the same. I noticed that Apache didn't restart so tried to start it up myself $ sudo /etc/init.d/apache2 start but I'm getting an error:
* Starting web server apache2
apache2: Syntax error on line 16 of /etc/apache2/apache2.conf: Cannot load
/home/simon/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.19/buildout/apache2/mod_passenger.so
into server: /home/simon/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.19/buildout/apache2/mod_passenger.so:
undefined symbol: unixd_config
Action 'start' failed.
I've read that this type of error can happen when upgrading from Apache 2.2 - 2.4. I'm not 100% what version I was on before (or if it even upgraded yesterday — I'm assuming it did but feel free to tell me if I'm making stupid assumptions) but currently Server version: Apache/2.4.6 (Ubuntu) is installed.
Is there a way for me to re-install Apache 2.2? (Is this even likely to rectify my issue or is there a better solution that I should try out?)
The cause of your problem isn't Apache. It's Phusion Passenger. You installed Phusion Passenger against an older Apache version. Then you upgraded your OS, which upgraded Apache too, so that broke Phusion Passenger and now Apache refuses to start.
The solution: reinstall Phusion Passenger, so that it is recompiled against your current Apache version. Don't reinstall Apache; that doesn't help.

Missing gcc-4.0 error on pip install twisted in virtual env

I'm trying to use Scrapy inside a virtualenv, which requires installation of twisted as well. I did pip install Scrapy with no problems, but when I try pip install twisted, I'm getting the following error multiple times in the output:
unable to execute gcc-4.0: No such file or directory
error: command 'gcc-4.0' failed with exit status 1
I previously had a similar problem when trying to install python packages on my actual system, which is why I started using virtualenv in the first place. Is this an issue of the python version installed on my environment? This is what I currently have:
Django - 1.5 - active
Python - 2.7.3 - active development (/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload)
Scrapy - 0.16.4 - active
pip - 1.2.1 - active
setuptools - 0.6c11 - active
wsgiref - 0.1.2 - active development (/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7)
yolk - 0.4.3 - active
To check which version of gcc I have I typed gcc at the command line and got
i686-apple-darwin11-llvm-gcc-4.2: no input files
I tried export CC=gcc-4.2 before running pip install twisted, and I got:
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/s8/d0f65gc93nbchdk52g2cg5f80000gn/T//ccWQa7cJ.out
error: command 'gcc-4.2' failed with exit status 255
It sort of looks to me like it's looking for powerpc-apple-darwin11-llvm-gcc-4.2, and what I have above is i686-apple-darwin11-llvm-gcc-4.2--are these different and therefore causing the problem?
To give more background info, I installed Python 2.7 from a Python.org installer a long time ago before upgrading from Snow Leopard straight to Mountain Lion. If I simply type in python at the command line I get
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:32:06)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
So I'm guessing that means I'm using Apple's Python? And it's built with gcc-4.0.1? So if that's the case, shouldn't I not need to do the export CC=gcc-4.2? Or do I need to do that AND switch to the Python.org version of Python? (And if the latter, how do I do that?)
Update: I tried this solution for switching Python versions but it didn't work.
Update: I managed to switch Python versions (outside of my virtualenv) using the sudo port select --set python python27 command, but this didn't solve the problem even though I'm now showing:
Python 2.7.3 (default, Nov 17 2012, 19:54:34)
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
when I type python at the commmand line.
Update: I also found this solution to a question that seemed to have almost the exact same issues as I'm having, but I'm already upgraded to XCode 4.6 and definitely have the Command Line Tools installed as described in the aforementioned solution (Preferences>Downloads tab>Install Command Line Tools). I do also have XCode 3.2.6 installed, however--any chance that's causing my problems?
Have you tried CC="$(type -p clang)" pip install twisted? You don't necessarily need to use gcc to compile Twisted's extensions; selecting clang instead might clear up whatever weird problem seems to be infesting your gcc installation.
If that doesn't work, I would suggest un-installing any Python.org versions of Python and then possibly re-installing both the OS and Xcode, since it looks like something might have corrupted your system Python install. I have no idea how references to powerpc stuff have persisted into Mountain Lion, since Lion removed support for ppc.