Internal Server Error while Running Odoo 8.0 Openerp - postgresql

First i installed Odoo 9.0-20160923 openerp on my windows it installs PostgreSql and Odoo files along with it successfully and it was perfectly working too, for some reason i didn't want this version so i just uninstalled Odoo 9.0-20160923
successfully from Program and Features and didn't uninstall the PostgreSql and then hard delete Odoo 9.0-20160923 directory from C:\Program Files (x86)\Odoo 9.0-20160923 too, Afterwards I successfully installed the Odoo 8.0 which only installs the Odoo files not the PostgreSql files now When i run the Openerp from browser it shows me the Internal Server Error as you may see in the attached image what is the actual problem Kindly suggest appropriate solution to this so i can manage to run this perfectly thankyou.

I resolved this issue by getting the PostgreSQL setup and runs the uninstall process which removes all the files then i un-install the Odoo 8.0 too then i made the fresh installation of Odoo 8.0 which then ask me to install the PostgreSQL database along with it now every thing is working fine. Actually issue was originated due to the missing PostgreSQL database as i didn't un-install it properly instead i hard deleted the entire Odoo 9.0-20160923 directory in which PostgreSQL database was located which cause it to damage.

Related

Restore Moodle Backup issues: error reading from database

I am trying to restore a backup of Moodle version 2.7 with PHP 5.5 and MySQL 5.5 from one server to another server with Moodle 3.9 and PHP 7.4 and MySQL 8.0. But I am getting the following error:
I even tried the to change ##default_storage_engine to ##storage_engine in /lib/dml/mysqli_native_moodle_database.php but still not working. I also verified the disk space. There is enough space on the disk.
You need to follow an upgrade path from Moodle 2.7
https://docs.moodle.org/311/en/Upgrading_FAQ#How_do_I_upgrade_from_1.9.x_to_3.11.3F
First install Moodle 2.7.20 on the new server and restore the database.
Then upgrade to Moodle 3.2.9
Then you can upgrade to Moodle 3.9.x
Note that you will need to upgrade any additional plugins that were installed too. I'd recommend doing this at each upgrade stage for each version.
If you haven't already, you will also need to back up the site data folder at the same time as the database backup. The site data folder contains uploaded files, these are not stored in the database. As well as custom languages.
https://docs.moodle.org/39/en/Upgrading

Offline slony installation on enterprise database 13.1

I have been using Windows 10 operating system. I want to use slony master-slave setup with postgresql. For this, I have downloaded enterprise database 13.1 version. After installation I select slony download from stackbuilder plus. Then I copied these 2 files to offline windows 10 machine. I install both of them. After that, i try to run a simple slonik script to setup master. while executing "init cluster" command i get file not found error, c:servershare/slony1_base.2.8.sql. Do you have an idea for the solution?
After setting SLONY_SHARE_DIR to the location that the slony1 .sql files are in, everything works fine.

Install PostgreSQL when data folder already exists

A few days ago my hard drive stop working but I was able to retrieve most of the information. I had PostgreSQL 10 installed with several databases.
I have installed PostgreSQL in my new hard drive (Windows 10) and I have the data folder from my previous hard drive in an external drive.
In the installation I selected the old data folder as the current data folder, but keeping it in the external drive. When I start pgadmin 4 I can see all the databases I had just fine.
When I try to retrieve information from a table pgadmin 4 shows the following message: > ERROR: could no access file «$libdir/postgis-2.4»: No such file or directory
SQL state: 58P01
I can't find the bundle for postgis version 2.4, and I've installed postgis 3 but it doesn't work.
Can anyone tell me where to find the postgis 2.4 bundle for windows or if there is a way to import postgis from my old installation in the other hard drive?
Thanks!
I installed the bundle for version 2.4.4 and it worked fine. The problem was that I had installed postgis 3.0 before.

Why is PostgreSQL remembering my previous instalations?

Recently I installed PostgreSQL 10.4, but it was losing connection all the time. I uninstalled it, removed the data folder and installed version 9.6, which didn't help, so I uninstalled it as well and removed the data folder. I installed 10.4 again hoping that it will work well this time.
When I opened pgAdmin it showed as if version 9.6 was still installed apart form the 10.4 (which should be there). I tried creating a user in it (to see if it really works) and it created it successfully, but after further investigation I realized that it created the same user in the 10.4 installation. It must have been the same installation, but pgAdmin saw it as two separate ones. I deleted both installations form pgAdmin and reinstalled version 10.4.
Everything works fine now, but I still wanted to ask what might have caused this issue? Can it cause problems for my existing db in the future?
It's not "PostgreSQL" that remembered the installation. It's pgAdmin where you simply didn't delete the configured connection. Connection information is something specific to the SQL client, not the database server.
The existing connection definition uses the same hostname, port and apparently password that was valid for a running 9.6 server or the new Postgres 10 server. The name of that "server" is something that is specified in pgAdmin and has nothing to do with the actual Postgres installation. You could have named the "9.6 Server" connection "Connect to some nice DBMS" instead.
That information is not stored together with the PostgreSQL installation, but in your user profile.

Unable to install PostgreSQL on dev machine

I'm trying to install PGSQL 8.3 (and 8.4 and 9.0) on my work laptop. At the end of the installation, the installer complains it can't init the cluster. Investigating more, I noticed that the service is not even installed. I did use the "OneClick Installer", not the pgAdmin stand alone install. I tried installing as Administrator and as a regular user. In all the cases, the pgsql system account is created and the files copied, but the service is not.
I successfully installed PGSQL many times on my home PC. Both the laptop and desktop use Windows 7 64 bits (former is Professional, later is Ultimate). The only differences I can think of are that the laptop is part of an Active Directory and uses McAfee, while the desktop is only on a workgroup and uses Windows Security Essentials.
Are you sure the postgres user is allowed to create files in the data directory? The installer defaults to putting the data directory where the binaries are installed (e.g. c:\Program Files) which is usually not writeable by a regular user (and I never understood why the installer contains such an idiotic default).
McAffee could be an issue though. I have heard several stories about virus scanners infering with the Postgres (or other DBMS). Can you turn McAffee off - at least for the data directory?
Another problem could be that the installer is not able to create the postgres windows user (that is used to run the service).
If you are a local administrator on that machine, try to create the user before the installer does it. The installer will then not try to create the user account.
As a last ressort, you could install PostgreSQL without the installer (this is what I usually do).
Download the ZIP file from http://www.enterprisedb.com/products-services-training/pgbindownload
Unzip it into a convenient location
Run initdb (make sure you do that using the postgres user account - the one that is used to run the service later!)
run pg_ctlr register to create the Windows service
If any of those steps fails you'll see a proper error message which is not always the case with the installer.
Anti-virus is a well known issue:
http://wiki.postgresql.org/wiki/Running_&_Installing_PostgreSQL_On_Native_Windows#Antivirus_software
PostgreSQL connection problems
(answer is from one the core developers)
Postgresql 8.4 and BitDefender 11
With earlier versions of PostgreSQL, I found I had to delete the user "postgres" before reinstalling would work. Not sure what versions had that problem, though.