My development team is working on React and Nodejs combination, after deployment the links are working but when we do a refresh on the working page getting "404 not found error"
Error when cloning git after adding SSH key. Below is the error
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Fix :
First make sure you have added SSH key correctly. On right hand side of top corner under profile, you can see settings. In setting click on SSH and GPG keys and add your key as authentication keys.
Then login to the server or desktop from where you generated the key or have its private key,
# eval `ssh-agent -s`
# ssh-add ~/.ssh/id_rsa
Wait for some time and try git clone, it will work.
In OCI, one of the authentication mechanism is using "Instance Principals". Here we don't need to use a key to execute OCI CLI commands, instead of key we are allowing OCI Compute instance the permission to execute CLI commands.
In this video you can see the steps.
1. Get the OCID of the compute instance
2. Create a Dynamic group
3. Create a Policy
4. Validate the setup
5. Execute your CLI commands {oci os object put --bucket-name backup-bucket --file sc_laundry_db-202412181734507003.sql --auth instance_principal}
Errors during downloading metadata for repository 'appstream': - Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
How to fix?
1. Login to the server
2. cd /etc/yum.repos.d/
3. sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
4. sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
After installing Letsencrypt, i am getting this error "SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty" when trying to execute certbot --apache
How to fix :
systemctl restart httpd
After this, you can successfully execute the command certbot --apache and the issue if solved.
I am trying to mount OCI Object Storage bucket as a file system in one of my application server. It will helps me a lot to take backups and in automation I can point this OCI bucket as the destination of scripts output. As OCI object storage is S3 compatible, I am here using S3fs-fuse utility to mount the bucket.
OS : Oracle Linux 9
As a pre-request, please make sure that the compartment you are trying to mount the object storage is S3 compatible.
Go to "Governance & Administration --> Tenancy Details --> Edit object storage settings"
Now follow the below steps.
Step 1 : SSH to your application server
Step 2 : dnf update -y
Step 3 : vi /etc/yum.repos.d/oracle-epel-ol9.repo
Step 4 : Update "enabled=0" to "enabled=1" and save the file
Step 5 : yum install s3fs-fuse -y
Step 6 : Login to OCI console and generate your "Access key" and "Secret key" (keep it safe with you)
Step 7 : SSH to application server
Step 8 : vi /home/opc/.passwd-s3fs
Step 9 : Input your Access key id : Secret key id (Both in one line with a colon separated)
Step 10 : chmod 600 /home/opc/.passwd-s3fs
Step 11 : Create bucket in your OCI account (My bucket name is skynet-upload-bucket)
Step 12 : Identify your OCI region identifier (https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm)
Environment is Centos8 with MySQL 8.0 and its a MySQL master slave replication. When I checked the "SHOW SLAVE STATUS\G" I am seeing status no for "Slave_SQL_Running".
As you know in AWS S3 we have different tier of storage. Based on our requirement we need to use the correct one to save cost and to meet the purpose. One of such requirement is to move the old backup files from S3 to amazon Glacier.
In this video you will learn how to archiving amazon s3 data to amazon glacier.
In Amazon linux 2023, EPEL is not available. All the documentations avaialble in internet is about EPEL and then install certbot. But here we need to use a different approach.
Error : Access denied for user 'user'@'hostname' (using password: YES) in mysql8
Mysql version is Mysql8
OS is Ubuntu 22
I am sure that i can connect from my both apps servers to the DB from the command shell.
The issue is the mysql user password. In my password, i had some special characters. When we input this password in command prompt, in bash shell it will work. But its not working from nodejs code (.env file)
Solution :
I change the password without a special character and the issue got fixed.