Skip to main content

Posts

Showing posts from September, 2023

When running yum, an error occurs: “[Errno 14] HTTP Error 404 - Not Found”

  Image by  Alexander Fox | PlaNet Fox  from  Pixabay I am sharing my experience with the error "[Errno 14] HTTP Error 404 - Not Found" when running yum to install mysql on a cloud server. The exact error is "http://mirror.g.ucloudbiz.com/centos/7.6.1810/centosplus/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found". Most problems can be solved with yum clean all and yum update. If it doesn't work, try changing yum's mirroring path settings as follows: First, check the yum installation path. You can find out by saying whereis yum in the terminal. whereis yum For reference, in centos7, the configuration file related to yum is located under /etc. And just set the mirroring-related path in /etc/yum.repos.d. Add the following to /etc/yum.repos.d/CentOS-Base.repo: (If it does not exist, create a new one.) [base] name=CentOS-$releasever - Base #mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl= htt...

Connect to AWS (ubuntu) SSH from MacBook

  Image by  Krzysztof Niewolny  from  Pixabay This is how to connect to AWS from a MacBook using SSH. The command is as follows: ssh -i ${pem file name} ${id}@${ip} Here id is ubuntu. Check the IP in the following way. Log in to AWS. Then click Instance in the left menu (≡). Click the instance ID. Public IPv4 is an IP that can be accessed from the outside. If your pem name is abc.pem and your ip is 1.2.3.4, you can log in to AWS with "ssh -i abc.pem ubuntu@1.2.3.4". If you cannot log in with the message “WARNING: UNPROTECTED PRIVATE KEY FILE!” as shown below, you need to change the permissions of the pem file. Changing file permissions on a MacBook is done with chmod. chmod permission ${filename} When the pem file name is abc.pem, change it to "chmod 600 abc.pem". Then log in again with “ssh -i abc.pem ubuntu@1.2.3.4”.

Authentication plugin 'caching_sha2_password' cannot be loaded

 Image by  alandsmann  from   Pixabay This is how to handle the error "Authentication plugin 'caching_sha2_password' cannot be loaded" when linking to MySQL on MacBook. The cause is that the password processing method has changed since MySQL 8.x and later, but SQLAlchemy is looking at the old method. If MySQL Community is installed, click “System Settings” and then click MySQL. Click “Initialize Database”. Enter a password of appropriate length, select “Use Legacy Password Encryption” and click “OK”. Click “Start MySQL Server”. After the MySQL server is running, you can reconnect. If you do not have MySQL Community, you can change the root password to mysql_native_password. mysql> alter user  'root'@'localhost' identified with mysql_native_password by ‘new password';  

DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead

  Image by  the1willy  from  Pixabay Starting from September 12th, in order to upload an app to the Apple Store, you must build it in xcode15RC.  https://developer.apple.com/news/?id=khzvxn8a When I downloaded the Xcode15 RC version and built it, “DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead” and build failed. This problem is said to be solved in CocoaPod lib version 1.13.0, but the current latest version is 1.12.1. https://github.com/CocoaPods/CocoaPods/releases/tag/1.12.1 So, as a temporary solution, change DT_TOOLCHAIN_DIR in the file with the extension .xcconfig to TOOLCHAIN_DIR. Here are the detailed instructions: First, go to the Pods folder. Then go to the “Target Support Files” folder. From here, go to the folder where the error occurred. I got an error in "KakaoSDK" so I moved to the KakaoSDK folder. There are two files in the folder: debug and release. Go into both files and change DT_TOOLCHAIN_DIR to TOO...

remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-started/getting-started-with-git /about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.

Image by Jan Meyes from Pixabay When pushing or cloning to github, "remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-started/getting-started-with-git /about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication." and is a solution to the problem of authentication failing. Solution Access github( https://github.com ) and log in. Click the image icon at the top right.   Click Settings.   Click “Developer settings” at the bottom left.   Click “Personal access tokens” in the left menu.   Click Tokens (classic) and click “Generate new token” on the right screen.   Click “Generate new token (classic)”.     Enter the information required to issue a token and click “Generate token”.   * note: Description of token usage * Expiration: Token validity period * Select scopes: Access rights to use as token   For referenc...

Cannot start load of Task ~~ since it does not conform to ATS policy

Image by  Faysal Khan  from  Pixabay This is a solution to the runtime error “Cannot start load of Task <~~>.<1> since it does not conform to ATS policy” when communicating via http in Swiftui. The cause is that http was used when communicating on iOS. https://developer.apple.com/documentation/bundleresources/information_property_list/nsapptransportsecurity In other words, this problem would not have occurred if https was used. However, there are times when you need to use http for various reasons. If you need to use http for testing, etc., you can change the settings in info.plist. Add App Transport Security Settings. Then select Allow Arbitrary Loads and set the value to YES. This will allow iOS to use http when communicating. One thing to note at this time is that you must click “>” to change it to “﹀”. Then it can be set as a sub-property of App Transport Security Settings. If you only want to allow http access to specific sites (including subdomains), ...