Posts

Showing posts from 2020

centos control panel

 502 bad gateway Nginx In short,  CWP 502 Bad Gateway  error occurs when the PHP script handler PHP-FPM service is down. In today's writeup, we discussed how our Support Engineers fixed this error effectively for our customers.

sorry you are not allowed to access this page.

  sorry you are not allowed to access this page.  insert in wp-config.php after <?php define ( 'FORCE_SSL_ADMIN' , true ); if ( strpos ( $_SERVER [ 'HTTP_X_FORWARDED_PROTO' ], 'https' ) !== false ) $_SERVER [ 'HTTPS' ]= 'on' ;

InternalError: current transaction is aborted, commands ignored until end of transaction block

  File "/opt/odoo/odoo-10.0/odoo/sql_db.py", line 231, in execute     res = self._obj.execute(query, params) InternalError: current transaction is aborted, commands ignored until end of transaction block check postgresql logs /var/lib/pgsql/data/pg_log

Install Python setuptools on CentOS

Install Python setuptools on CentOS  7 Let's download the installation file using wget: wget --no-check-certificate  https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz Extract the files from the archive: tar -xvf setuptools-1.4.2.tar.gz Enter the extracted directory: cd setuptools-1.4.2 Install setuptools using the Python we've installed (2.7.6) python2.7 setup.py install module 'setuptools.dist' has no attribute 'check_specifier' Hello I solved this error. This might be helpful. pip install --upgrade pip hash -r pip pip3 install --upgrade pip hash -r pip3 cd (Mask RCNN root folder) sudo python3 setup.py install

Database restore error: Database already exists odoo

Select this database was moved

Change Google Compute/Cloud Server to SSD Persistent Disk

The process for changing the boot disk type of a Google Cloud VM is as follows: (Optional)  Flush disk buffers   sudo sync . Stop your instance Take a snapshot of existing disk Create a new persistent disk based on the snapshot . From the Type dropdown list, select "SSD persistent disk". Detach old boot disk & attach new SSD boot disk For more details, visit  docs Note : there is NO NEED to delete your VM

install odoo

odoo 10 works on python 2.7 python python --version https://nightly.odoo.com/10.0/nightly/rpm/ Creating a systemd service [root@webmail system]# cat /etc/systemd/system/odoo10.service [Unit]  Description=Odoo  After=postgresql.service    [Service]  Type=simple  User=odoo  Group=odoo  ExecStart=/opt/odoo/odoo-10.0/odoo-bin --addons=/opt/odoo/odoo-10.0/addons/,/opt/odoo/odoo-10.0/reponew,/opt/odoo/odoo-10.0/gst/ -c /etc/odoo/odoo.conf    [Install]  WantedBy=multi-user.target  Step 1:  Update apt source-lists: 1 sudo apt - get update Step 2:  Create the Odoo user that will own and run the application 1 sudo adduser -- system -- home = / opt / odoo -- group odoo Step 3:  Install and configure the database server, PostgreSQL 1 sudo apt - get install - y postgresql Once the PostgreSQL is installed, next we setup a new PostgreSQL user for our application. This user will be used for making all the database interaction form the Odoo. 1 2 3 4 5 6 7 sudo service postgresql start   sudo su -