Categories
General

How to fix BCC architect ERROR 80004005 and error 8004044b

How to fix ?

2023-06-26 15:35:15  [00000730:00001b78]  FATAL: exception.cpp:268:  COMResult: SaveReport failed to save the file “09225EC8” for report 364. (error 80004005).
2023-06-26 15:35:15  [00000730:00001b78]  FATAL: exception.cpp:270:  SaveReport: SaveReport failed to save the file “09225EC8” for report 364. (error 80004005).
2023-06-26 15:35:15  [00000730:00001b78]  FATAL: exception.cpp:268:  COMResult: Unable to receive data from the socket. (error 8004044b).
2023-06-26 15:35:15  [00000730:00001b78]  FATAL: exception.cpp:270:  ProcessRequest: Unable to receive data from the socket. (error 8004044b).

MAKE SURE ALL FIELDS are filled out

Categories
General

How to create an alias of Python on a MAC ?

For those seeking to create an alias of Python on a MAC operating system, the creation of such an alias may be achieved through the execution of a designated command line. The command line in question may be articulated as:

alias python=/usr/bin/python3

Categories
General

How to git remove uncommitted filed ? git reset ?

  1. SOLUTION (n review files to be deleted)
    1. git clean -fdxn

  1. This will remove all local untracked files, so only git tracked files remain:git clean -fdx
  2. WARNING: -x will also remove all ignored files, including ones specified by .gitignore! You may want to use -n for preview of files to be deleted.
Categories
General

How to SSH into Docker container ?

davidr in ~/Desktop/prelude_JULY (dev) > docker ps
CONTAINER ID   IMAGE               COMMAND                  CREATED         STATUS         PORTS                                      NAMES
491f92fcd11e   nginx               "/docker-entrypoint.…"   5 minutes ago   Up 5 minutes   0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   prelude-web
aa1b1a237eb7   prelude_july-php    "docker-php-entrypoi…"   5 minutes ago   Up 5 minutes   9000/tcp                                   prelude-php
153464b88f23   edoburu/pgbouncer   "/entrypoint.sh /usr…"   5 minutes ago   Up 5 minutes   5432/tcp                                   prelude-db


davidr in ~/Desktop/prelude_JULY (dev) > 
docker exec -it aa1b1a237eb7 /bin/sh                                                       

/var/www/html # 
Categories
General

WARN[0000] The “PHP_VERSION” variable is not set. Defaulting to a blank string.

SOLUTION

CREATE FILE / GO TO ==> .env

add

PHP_VERSION=7.2

Problem when trying to run DOCKER

Categories
General

How to see files that have been resolved with GIT ?

Here is the command

git log -p -c or git log -p --cc

Categories
General

on a MAC with Valet : How to fix *18 upstream timed out (60: Operation timed out) ?

2022/07/31 01:38:52 [error] 4425#0: *18 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 127.0.0.1, server: , request: “GET /v1/facilitycountdown HTTP/1.1”, upstream: “fastcgi://unix:/Users/davidr/.config/valet/valet.sock”, host: “web.test”

SOLUTION

System permision issues and fasCgi fix in nginx conf file

start valet with SUDO

sudo valet start

Start your unit test with SUDO

sudo vendor/bin/phpunit

NGINX FIX

vim /usr/local/etc/nginx/valet/valet.conf
location ~ [^/]\.php(/|$) {
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param SCRIPT_NAME $fastcgi_script_name;
            fastcgi_read_timeout 600;
            fastcgi_send_timeout 600;
            fastcgi_connect_timeout 600;
            fastcgi_buffers 8 32k;
            fastcgi_buffer_size 32k;
            include fastcgi_params;

.........
Categories
General

How to restart/start pgbouncer on a mac?

brew services restart pgbouncer

Categories
General

How to fix : PHP Fatal error: Call to undefined function yaml_parse_file() ?

remove the double quote ” in php.ini

REPLACE

extension=”yaml.so”

WITH

extension=yaml.so

Categories
General

How to install ext-yaml on Mac?

How to solve following problem ?

Problem 2
– Root composer.json requires PHP extension ext-yaml * but it is missing from your system. Install or enable PHP’s yaml extension.
Problem 3
– Root composer.json requires fourover/sdk 0.1.3 -> satisfiable by fourover/sdk[v0.1.3].
– fourover/sdk v0.1.3 requires ext-yaml * -> it is missing from your system. Install or enable PHP’s yaml extension.

Execute 2 commands below

brew install libyaml
pecl install libyam
l

Result of the execution of the commands above

Build process completed successfully
Installing '/usr/local/Cellar/[email protected]/8.0.21/pecl/20200930/yaml.so'
install ok: channel://pecl.php.net/yaml-2.2.2
Extension yaml enabled in php.ini