error Archives - David Yin's Blog https://www.yinfor.com/tag/error Tech geek. Life geek. Sun, 17 Nov 2024 07:55:07 +0000 en-US hourly 1 https://wordpress.org/?v=6.7 https://www.yinfor.com/wp-content/uploads/2016/09/cropped-icon-120x120.png error Archives - David Yin's Blog https://www.yinfor.com/tag/error 32 32 Transmission Daemon failed with timeout error https://www.yinfor.com/2024/11/transmission-daemon-failed-with-timeout-error.html https://www.yinfor.com/2024/11/transmission-daemon-failed-with-timeout-error.html#respond Sun, 17 Nov 2024 07:55:04 +0000 https://www.yinfor.com/?p=10080 Here I just upgraded my NAS from Ubuntu 22.04 to 24.04. I check the services running on the NAS. I found Transmission Daemon is not active. I reboot the Ubuntu server. Transmission Web UI is live for a while, then...

The post Transmission Daemon failed with timeout error appeared first on David Yin's Blog.

]]>
Here I just upgraded my NAS from Ubuntu 22.04 to 24.04. I check the services running on the NAS. I found Transmission Daemon is not active.

I reboot the Ubuntu server. Transmission Web UI is live for a while, then lost the connection. I went to the SSH window. Check the status of the service.

The service has failed.

After I checked Google, I found a workaround. It is not a solution, but works.

Edit /etc/systemd/system/transmission-daemon.service

Change the Type=simple

Then the file looks like below:

Done.

 

Reference:
transmission-daemon times out when launched by systemd

transmission-daemon fails to notify systemd of correct start

The post Transmission Daemon failed with timeout error appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/11/transmission-daemon-failed-with-timeout-error.html/feed/ 0
Fix some APT problems and upgrade the Gitlab CE on the VM https://www.yinfor.com/2024/04/fix-some-apt-problems-and-upgrade-the-gitlab-ce-on-the-vm.html https://www.yinfor.com/2024/04/fix-some-apt-problems-and-upgrade-the-gitlab-ce-on-the-vm.html#respond Mon, 22 Apr 2024 01:07:36 +0000 https://www.yinfor.com/?p=9626 I have an installation of the Gitlab CE version on the virtual machine. It is running on the Host Proxmox VE.  Normally I do the update/upgrade through the Webmin interface. I knew that Gitlab has very active development. They may...

The post Fix some APT problems and upgrade the Gitlab CE on the VM appeared first on David Yin's Blog.

]]>
I have an installation of the Gitlab CE version on the virtual machine. It is running on the Host Proxmox VE.  Normally I do the update/upgrade through the Webmin interface. I knew that Gitlab has very active development. They may publish a new release every week. But, recently, I did not see the Gitlab CE updates when I upgraded the packages of my VM, which is Ubuntu 22.04.

So I SSH to the VM. Run the command sudo apt update

I got the following error message

An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu focal InRelease: The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab B.V. (package repository signing key) <packages@gitlab.com>

The error is invalid signatures: EXPKEYSIG 3F01618A51312F3F

My first idea is to delete this invalid signature.

sudo apt-key del 3F01618A51312F3F

Then I run the update again. Of course, another problem came.

davidyin@gitlab:/etc/apt/sources.list.d$ sudo apt update
Ign:1 https://download.webmin.com/download/newkey/repository stable InRelease
Hit:3 https://download.webmin.com/download/newkey/repository stable Release
Hit:4 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:6 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:7 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:9 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:8 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu jammy InRelease
Get:2 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu focal InRelease [23.3 kB]
Err:2 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu focal InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3F01618A51312F3F
Fetched 23.3 kB in 2s (13.8 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3F01618A51312F3F
W: Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/focal/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3F01618A51312F3F
W: Some index files failed to download. They have been ignored, or old ones used instead.

This time the error is public key is not available: NO_PUBKEY 3F01618A51312F3F

What is my next move? Add the public key for it.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3F01618A51312F3F
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.StjvcTDgCs/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 3F01618A51312F3F
gpg: key 3F01618A51312F3F: public key "GitLab B.V. (package repository signing key) <packages@gitlab.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1

Run the update, another problem is shown.

davidyin@gitlab:/etc/apt/sources.list.d$ sudo apt update
Ign:1 https://download.webmin.com/download/newkey/repository stable InRelease
Hit:2 https://download.webmin.com/download/newkey/repository stable Release
Hit:5 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:8 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:9 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu focal InRelease
Hit:7 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Oh, it is not an error, it is a warning. I can ignore it. But I don’t like it. I have to clean these.

So I save this key into a file located in /etc/apt/tursted.gpg.d/ folder. Then run the update again.

davidyin@gitlab:/etc/apt/sources.list.d$ sudo apt-key export  51312F3F | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/gitlab-david.gpg
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
davidyin@gitlab:/etc/apt/sources.list.d$ sudo apt update
Ign:2 https://download.webmin.com/download/newkey/repository stable InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:4 https://download.webmin.com/download/newkey/repository stable Release
Hit:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:8 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:1 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu focal InRelease
Hit:6 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

It looks OK. But I found one line, Hit:1 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu focal InRelease

Ubuntu Facal is Ubuntu 20.04. It is the old one. I don’t need it. So I go to /etc/apt/sources.list.d/, edit gitlab.list file. Commented the line with Facal.

Now I am satisfied.

OK. One another thing about the updated Gitlab. At the beginning, the Gitlab CE is version 16.91

I run the following to add/update the sources.

curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

Then, I run the sudo apt update and sudo apt upgrade to upgrade the Gitlab CE to the latest version 16.11.0.

PS.

Gitlab Ce Installation Instructions: https://packages.gitlab.com/gitlab/gitlab-ce/install

Gitlab Release lists: https://about.gitlab.com/releases/categories/releases/

Apt-key command manual: https://manpages.ubuntu.com/manpages/noble/en/man8/apt-key.8.html

 

The post Fix some APT problems and upgrade the Gitlab CE on the VM appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/04/fix-some-apt-problems-and-upgrade-the-gitlab-ce-on-the-vm.html/feed/ 0
Solve the problem: A start Job is running for dev-nas2-middleone.device https://www.yinfor.com/2022/04/solve-the-problem-a-start-job-is-running-for-dev-nas2-middleone-device.html https://www.yinfor.com/2022/04/solve-the-problem-a-start-job-is-running-for-dev-nas2-middleone-device.html#respond Fri, 22 Apr 2022 07:01:15 +0000 https://www.yinfor.com/?p=8099 I have a NAS, which is running for many years without a monitor,  keyboard and mouse.  Today, I connected them and check the hardware and flash the BIOS from 1.30 to 1.50. The motherboard is AsRock J3160-ITX. Suddenly I noticed...

The post Solve the problem: A start Job is running for dev-nas2-middleone.device appeared first on David Yin's Blog.

]]>
I have a NAS, which is running for many years without a monitor,  keyboard and mouse.  Today, I connected them and check the hardware and flash the BIOS from 1.30 to 1.50. The motherboard is AsRock J3160-ITX.

Suddenly I noticed an error during the POST, and booting.

The error is reading:

A Start Job is running for dev-nas2-middleone.device.

I remembered that I have removed the second HDD from the NAS. It is named as “middleone”.

So I solve this problem in the terminal screen.

nano /etc/fstab

It solved the problem.

 

The post Solve the problem: A start Job is running for dev-nas2-middleone.device appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2022/04/solve-the-problem-a-start-job-is-running-for-dev-nas2-middleone-device.html/feed/ 0
Solve the login problem of Webmin in Centos https://www.yinfor.com/2020/05/solve-the-login-problem-of-webmin-in-centos.html https://www.yinfor.com/2020/05/solve-the-login-problem-of-webmin-in-centos.html#respond Sat, 16 May 2020 10:27:23 +0000 https://www.yinfor.com/?p=7220 The problem is I can not sign in the Webmin panel.  I did a lot of searches and finally got the solution. Here is the situation: Oracle VM Free Tier.  I selected the Image: CentOS-7-2020.04.21-0. For CentOS, SSH public key connection. ...

The post Solve the login problem of Webmin in Centos appeared first on David Yin's Blog.

]]>
The problem is I can not sign in the Webmin panel.  I did a lot of searches and finally got the solution.

Here is the situation:

  • Oracle VM Free Tier.  I selected the Image: CentOS-7-2020.04.21-0.
  • For CentOS, SSH public key connection.  The user is OPC  when I try to ssh to it.
  • Then I add a new user and add it to the group wheel.  the username is admin.
  • Based on the How To Create a Sudo User on CentOS on DigitalOcean.
  • I followed the installation guide on the Webmin support page. The ports 10000 to 10010 are opened.
  • In the browser, I can see the login page.  But can not log in with the new user, admin.
  • Check the error log of webmin at /var/webmin/miniserv.error
    The error message is missing  Perl module Authen::PAM 
  • Then I install Authen::PAM in the ssh window.
  • Try to login again. Still can not log in.
  • I restart the server, and still can not log in.

The real solution is below:

/usr/libexec/webmin/changepass.pl /etc/webmin username password

Replace username by root, and with my own password.

After this command, I can log in the Webmin as root.

See the basic information of this VM.

Features:

  • AMD EPYC 7551 32-Core Processor, 2 Cores
  • 1GB RAM memory
  • 40GB Storage
  • CentOS 7.8
  • Webmin 1.941

 

The post Solve the login problem of Webmin in Centos appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2020/05/solve-the-login-problem-of-webmin-in-centos.html/feed/ 0
Failed to Read the contents of XML Resource: IDD_SSH_KEY_CHANGE_DIALOG https://www.yinfor.com/2019/09/failed-to-read-the-contents-of-xml-resource-idd_ssh_key_change_dialog.html https://www.yinfor.com/2019/09/failed-to-read-the-contents-of-xml-resource-idd_ssh_key_change_dialog.html#respond Thu, 19 Sep 2019 09:33:29 +0000 https://www.yinfor.com/?p=7011 Dreamweaver 2019 does not connect to SFTP server and you see the “Failed to Read the contents of XML Resource: IDD_SSH_KEY_CHANGE_DIALOG” error. 1) Close the Dreamweaver application. 2) Go to the following location: Windows: C:\Users\[user name]\AppData\Roaming\Adobe\Dreamweaver CC xxxx\en_US\Configuration macOS: ~/Library/Application...

The post Failed to Read the contents of XML Resource: IDD_SSH_KEY_CHANGE_DIALOG appeared first on David Yin's Blog.

]]>
Dreamweaver 2019 does not connect to SFTP server and you see the “Failed to Read the contents of XML Resource: IDD_SSH_KEY_CHANGE_DIALOG” error.

1) Close the Dreamweaver application.

2) Go to the following location:

Windows: C:\Users\[user name]\AppData\Roaming\Adobe\Dreamweaver CC xxxx\en_US\Configuration
macOS: ~/Library/Application Support/Adobe/Dreamweaver CC xxxx/en_US/Configuration

Here, xxxx is the version of Dreamweaver. For example, if you are using Dreamweaver 2017 running on Windows, then your folder location reads:

C:\Users\[user name]\AppData\Roaming\Adobe\Dreamweaver CC 2017\en_US\Configuration

3) Right-click the ssh_hosts file, and rename this file. For example, ssh_hosts_old.

4) Relaunch Dreamweaver and connect to your SFTP server.

The post Failed to Read the contents of XML Resource: IDD_SSH_KEY_CHANGE_DIALOG appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2019/09/failed-to-read-the-contents-of-xml-resource-idd_ssh_key_change_dialog.html/feed/ 0
Nginx : Unit nginx.service is masked https://www.yinfor.com/2019/05/nginx-unit-nginx-service-is-masked.html https://www.yinfor.com/2019/05/nginx-unit-nginx-service-is-masked.html#respond Tue, 21 May 2019 17:24:52 +0000 https://www.yinfor.com/?p=6896 Complied a Nginx server to the latest version and also add Brotli support, but get the following error message: $ sudo service nginx status * nginx.service Loaded: masked (/dev/null; bad) Active: inactive (dead) $ sudo service nginx restart Failed to...

The post Nginx : Unit nginx.service is masked appeared first on David Yin's Blog.

]]>
Complied a Nginx server to the latest version and also add Brotli support, but get the following error message:

$ sudo service nginx status
* nginx.service
   Loaded: masked (/dev/null; bad)
   Active: inactive (dead)

$ sudo service nginx restart
Failed to restart nginx.service: Unit nginx.service is masked.

Solution

To fix the problem, or error, just unmask with the command:

$ sudo systemctl unmask nginx.service

 

The post Nginx : Unit nginx.service is masked appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2019/05/nginx-unit-nginx-service-is-masked.html/feed/ 0
How to setup Gmail in phpBB 3.2.x in 2019? https://www.yinfor.com/2019/04/how-to-setup-gmail-in-phpbb-3-2-x-in-2019.html https://www.yinfor.com/2019/04/how-to-setup-gmail-in-phpbb-3-2-x-in-2019.html#respond Thu, 11 Apr 2019 05:56:41 +0000 https://www.yinfor.com/?p=6853 I wrote a post long time ago about how to use Gmail with phpBB 3. Now it is 2019. It may get error with the same settings. It is not because my guide is wrong. Actually Google add more security...

The post How to setup Gmail in phpBB 3.2.x in 2019? appeared first on David Yin's Blog.

]]>
I wrote a post long time ago about how to use Gmail with phpBB 3. Now it is 2019. It may get error with the same settings. It is not because my guide is wrong. Actually Google add more security protection on its Gmail facility.

Let me review the settings.

1) Make sure your Gmail account (Google Apps account) is working properly.

Sample below:

Gmail account: myname@gmail.com

Gmail password: 123456

You can sign in your Gmail from the browser, Chrome or Firefox, etc.

2) Enable POP

Forwarding and POP / IMAP. Under POP Download, click either Enable POP for all Mail, or Enable POP for Mail that Arrives Now (which ever suits your purpose). Configure anything else that appeals to you too. Exit from the Gmail Settings Window after saving your selections (this is important).

3) Settings in phpBB 3.2.x

Login the phpBB administrator panel.
Goto General Admin > Configuration > Email Settings
SMTP Server Address:tls://smtp.gmail.com
SMTP Ports: 465
Authentication method for SMTP: PLAIN
SMTP Username: myname@gmail.com
SMTP Password: 123456

After the above three steps, try to send email by forget password or register a new user.

Check the error log on the phpBB Admin panel.

There are may be erro 535 or error 534. The error looks like below:

Error 535

Email 错误
» EMAIL/SMTP
/forum/ucp.php

Ran into problems sending email at Line 1662. Response: 535 5.7.8 https://support.google.com/mail/?p=BadCredentials q128sm62190489pga.60 - gsmtp
.
Backtrace

Connecting to tls://smtp.gmail.com:465
LINE: 1205 <- 220 smtp.gmail.com ESMTP q128sm62190489pga.60 - gsmtp

# EHLO freesat.cn
LINE: 1552 <- 250-smtp.gmail.com at your service, [165.227.55.7]

LINE: 1552 <- 250-SIZE 35882577

LINE: 1552 <- 250-8BITMIME

LINE: 1552 <- 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH

LINE: 1552 <- 250-ENHANCEDSTATUSCODES

LINE: 1552 <- 250-PIPELINING

LINE: 1552 <- 250-CHUNKING

LINE: 1552 <- 250 SMTPUTF8

# AUTH PLAIN
LINE: 1655 <- 334

# Omitting sensitive information
LINE: 1662 <- 535-5.7.8 Username and Password not accepted. Learn more at

LINE: 1662 <- 535 5.7.8 https://support.google.com/mail/?p=BadCredentials q128sm62190489pga.60 - gsmtp 

Error 534

Email 错误
» EMAIL/SMTP
/forum/ucp.php

Ran into problems sending email at Line 1662. Response: 534 5.7.14 https://support.google.com/mail/answer/78754 c3sm70133058pfg.88 - gsmtp
.
Backtrace

Connecting to tls://smtp.gmail.com:465
LINE: 1205 <- 220 smtp.gmail.com ESMTP c3sm70133058pfg.88 - gsmtp

# EHLO freesat.cn
LINE: 1552 <- 250-smtp.gmail.com at your service, [165.227.55.7]

LINE: 1552 <- 250-SIZE 35882577

LINE: 1552 <- 250-8BITMIME

LINE: 1552 <- 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH

LINE: 1552 <- 250-ENHANCEDSTATUSCODES

LINE: 1552 <- 250-PIPELINING

LINE: 1552 <- 250-CHUNKING

LINE: 1552 <- 250 SMTPUTF8

# AUTH PLAIN
LINE: 1655 <- 334

# Omitting sensitive information
LINE: 1662 <- 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvN

LINE: 1662 <- 534-5.7.14 oQL0Oh8c3yyrQ3pFWK8OSPe0ZeGUxF2IhoMTilIFwIhrm23Gh3AzeyJieBixBumfmLEUcK

LINE: 1662 <- 534-5.7.14 8uGA3j9f8ivM_fTF4QTY7IjShfbixidMFTu6snmNH9dGueiZpHaWPcVtrUFLGIQqhSVSl7

LINE: 1662 <- 534-5.7.14 wxVGeVOzTzQnsRZbpMRXhyL1L6dmZbpzwZhRrQPbmg_MzYMtjzW7UwBT> Please log

LINE: 1662 <- 534-5.7.14 in via your web browser and then try again.

LINE: 1662 <- 534-5.7.14 Learn more at

LINE: 1662 <- 534 5.7.14 https://support.google.com/mail/answer/78754 c3sm70133058pfg.88 - gsmtp

At this point, you should go to change the settings of your Gmail or Google account.

4) Settings at Google

Enable less secure apps to access account

Sign in to your Google account

Click Security

On the bottom of the page, in the Less secure app access panel, click Turn on access.

 

Unlock Captcha

Sign in to your Google account

Open https://accounts.google.com/DisplayUnlockCaptcha link and click button to unlock Captcha

Now, the Gmail can handle the mailing from phpBB without errors.

 

The post How to setup Gmail in phpBB 3.2.x in 2019? appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2019/04/how-to-setup-gmail-in-phpbb-3-2-x-in-2019.html/feed/ 0
Hot to fix the problem on the new installation MariaDB https://www.yinfor.com/2019/03/hot-to-fix-the-problem-on-the-new-installation-mariadb.html https://www.yinfor.com/2019/03/hot-to-fix-the-problem-on-the-new-installation-mariadb.html#comments Fri, 29 Mar 2019 21:05:49 +0000 https://www.yinfor.com/?p=6802 After the installation of MySQL server or MariaDB on Ubuntu, I would like to use phpMyAdmin or Adminer to access the MySQL server. But the first time the error comes like below. Access denied for user ‘root’@’localhost’ mysqli_real_connect(): (HY000/1698): Access...

The post Hot to fix the problem on the new installation MariaDB appeared first on David Yin's Blog.

]]>
After the installation of MySQL server or MariaDB on Ubuntu, I would like to use phpMyAdmin or Adminer to access the MySQL server. But the first time the error comes like below.

Access denied for user ‘root’@’localhost’

mysqli_real_connect(): (HY000/1698): Access denied for user ‘root’@’localhost’

MySQL connect error on phpMyAdmin

 

MySQL connect error on Adminer

Here is the solution to make the root connect to a server without error.

First SSH to the terminal window of the Ubuntu 18.04.

Run the following command to check the MySQL root user’s information.

davidyin@example:~$ sudo mysql -uroot -p
[sudo] password for davidyin:
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 169
Server version: 10.1.38-MariaDB-0ubuntu0.18.04.1 Ubuntu 18.04

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

MariaDB [(none)]> SELECT User, Host, plugin FROM mysql.user;
+——+———–+————-+
| User | Host | plugin |
+——+———–+————-+
| root | localhost | unix_socket |
+——+———–+————-+
1 row in set (0.00 sec)

MySQL root user plugin

I saw the root user is using unix_socket. I will change it to mysql native password.

MariaDB [(none)]> UPDATE mysql.user SET plugin=’mysql_native_password’ WHERE User=’root’;
Query OK, 1 row affected (0.11 sec)
Rows matched: 1 Changed: 1 Warnings: 0

MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.08 sec)

MariaDB [(none)]> exit;
Bye

Update MySQL root user auth method

 

Now, at this step, I can access Adminer and phpMyAdmin without any problems.

Another workaround I found by Google. Someone creates a new MySQL user and give the superuser permission to it.  Then use this superuser to access MySQL server.

The post Hot to fix the problem on the new installation MariaDB appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2019/03/hot-to-fix-the-problem-on-the-new-installation-mariadb.html/feed/ 1
Error when doing update on Proxmox VE https://www.yinfor.com/2019/03/error-when-doing-update-on-proxmox-ve.html https://www.yinfor.com/2019/03/error-when-doing-update-on-proxmox-ve.html#respond Mon, 25 Mar 2019 08:24:55 +0000 https://www.yinfor.com/?p=6772 I got these errors when trying to run an update on my Proxmox VE 5.3-8 root@pve:/etc/apt# apt update Hit:1 http://security.debian.org stretch/updates InRelease Ign:2 http://ftp.ca.debian.org/debian stretch InRelease Get:3 http://download.proxmox.com/debian jessie InRelease [2,413 B] Hit:4 http://ftp.ca.debian.org/debian stretch-updates InRelease Err:3 http://download.proxmox.com/debian jessie InRelease...

The post Error when doing update on Proxmox VE appeared first on David Yin's Blog.

]]>
I got these errors when trying to run an update on my Proxmox VE 5.3-8

root@pve:/etc/apt# apt update Hit:1 http://security.debian.org stretch/updates InRelease Ign:2 http://ftp.ca.debian.org/debian stretch InRelease Get:3 http://download.proxmox.com/debian jessie InRelease [2,413 B] Hit:4 http://ftp.ca.debian.org/debian stretch-updates InRelease Err:3 http://download.proxmox.com/debian jessie InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C23AC7F49887F95A Hit:5 http://ftp.ca.debian.org/debian stretch Release Ign:7 https://enterprise.proxmox.com/debian/pve stretch InRelease Err:8 https://enterprise.proxmox.com/debian/pve stretch Release 401 Unauthorized Reading package lists... Done W: GPG error: http://download.proxmox.com/debian jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C23AC7F49887F95A E: The repository 'http://download.proxmox.com/debian jessie InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'https://enterprise.proxmox.com/debian/pve stretch Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

How to fix these errors?

wget http://download.proxmox.com/debian/key.asc
apt-key add key.asc

Then I do the apt update command, no more errors.

apt update on Proxmox VE

The post Error when doing update on Proxmox VE appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2019/03/error-when-doing-update-on-proxmox-ve.html/feed/ 0
Lots of favicon.ico requests from Mainland China https://www.yinfor.com/2019/03/lots-of-favicon-ico-requests-from-mainland-china.html https://www.yinfor.com/2019/03/lots-of-favicon-ico-requests-from-mainland-china.html#respond Thu, 21 Mar 2019 09:47:04 +0000 https://www.yinfor.com/?p=6752 I check the Nginx error log file regularly. I noticed that a lot of attempted accesses to favicon.ico coming from mainland China. They come from different IP addresses and with different User Agents.  Each of these IPs is only doing...

The post Lots of favicon.ico requests from Mainland China appeared first on David Yin's Blog.

]]>
I check the Nginx error log file regularly. I noticed that a lot of attempted accesses to favicon.ico coming from mainland China.

They come from different IP addresses and with different User Agents.  Each of these IPs is only doing this, sometimes repeatedly.

They are just waste my server’s time and CPU.  How to stop them or reduce the effect on my VPS.

At the last I know why they do it and how to handle it.

Why they do it?

There were some exploits recently that used a favicon file that was maliciously uploaded. Likely this bot is trying to see if the server or site have it.

There is also another possible reason. It may from GFW.

 

How to handle these request?

I would like to just ignore them or block them when the IP try to access following URL.

/view/img/favicon.ico
/3/favicon.ico
/2/favicon.ico
/home/favicon.ico

Depend on the web server you use or the service you use, there are a lot of ways to do it.

Here is a sample of Nginx config to drop the connection to /2/favicon.ico

location = /2/favicon.ico {
return 444;
}

 

The post Lots of favicon.ico requests from Mainland China appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2019/03/lots-of-favicon-ico-requests-from-mainland-china.html/feed/ 0
Yoast SEO has problem with AMP https://www.yinfor.com/2018/05/yoast-seo-has-problem-with-amp.html https://www.yinfor.com/2018/05/yoast-seo-has-problem-with-amp.html#respond Mon, 07 May 2018 17:56:21 +0000 https://www.yinfor.com/?p=5559 Recently, I found the AMP page of this blog is not working. After checking the web log  error file, the error looks like below If you Google it with wp-content/plugins/glue-for-yoast-seo-amp/classes/class-frontend.php:162 A lot of search results with the same problem. Based...

The post Yoast SEO has problem with AMP appeared first on David Yin's Blog.

]]>
Recently, I found the AMP page of this blog is not working. After checking the web log  error file, the error looks like below

If you Google it with wp-content/plugins/glue-for-yoast-seo-amp/classes/class-frontend.php:162

A lot of search results with the same problem.

Based on the Yoast SEO support page, it said it is AMP plugin fault.

gooma2 provided a workaround, I tried it. It does not work for my blog. All my blog’s AMP pages are 505 error.

Then, I disabled the Yoast SEO plugin, removed it. Installed All In One SEO plugin.

I used All In One SEO before. Simple and easy to use.

Features of All In One SEO

  • XML Sitemap support – submit your sitemap to Google and Bing and improve your SEO
  • Image XML Sitemap submitted to Google and Bing to improve your Image SEO
  • Google AMP support (Accelerated Mobile Pages)
  • Google Analytics support
  • Support for SEO on Custom Post Types
  • Advanced Canonical URLs
  • Redirect attachment pages to parent post
  • Automatically notifies search engines like Google and Bing about changes to your site
  • Built-in API so other plugins/themes can access and extend functionality
  • ONLY free plugin to provide SEO Integration for e-Commerce sites, including WooCommerce
  • Nonce Security built into All in One SEO Pack
  • Automatically optimises your titles for Google and other search engines
  • Generates META tags automatically
  • Avoids the typical duplicate content found on WordPress blogs
  • For beginners, you don’t even have to look at the options, it works out-of-the-box. Just install.
  • For advanced users, you can fine-tune everything to optimise your SEO
  • You can override any title and set any META description and any META keywords you want.
  • Compatibility with many other plugins
  • Translated into 57 languages
  • PHP 7 100% Compatible

 

The post Yoast SEO has problem with AMP appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2018/05/yoast-seo-has-problem-with-amp.html/feed/ 0
OneDrive could not launch on Windows 10 https://www.yinfor.com/2017/10/onedrive-not-launch-windows-10.html https://www.yinfor.com/2017/10/onedrive-not-launch-windows-10.html#respond Thu, 26 Oct 2017 00:23:48 +0000 https://www.yinfor.com/?p=5193 It said: This application failed to start because it could not find or load the Qt platform plugin “windows” in “”. Reinstalling the application may fix this problem. My current Windows 10 is version 1703, OS build 15063.674. I knew...

The post OneDrive could not launch on Windows 10 appeared first on David Yin's Blog.

]]>
It said: This application failed to start because it could not find or load the Qt platform plugin “windows” in “”. Reinstalling the application may fix this problem.

My current Windows 10 is version 1703, OS build 15063.674.

I knew OneDrive is the builtin with Windows 10. It can not be uninstall like a normal program.

After a little bit search, I found the answer, or solution of the error.

run

%userprofile%\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe

After a brief re-installation, the app icon will show in my taskbar notification area as normal.

 

The post OneDrive could not launch on Windows 10 appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2017/10/onedrive-not-launch-windows-10.html/feed/ 0
iTunes Installation error on Windows 10 https://www.yinfor.com/2016/09/itunes-installation-error-windows-10.html https://www.yinfor.com/2016/09/itunes-installation-error-windows-10.html#respond Tue, 20 Sep 2016 00:28:26 +0000 https://www.yinfor.com/?p=4901 When I re-install iTunes on my Windows 10, after reset my PC, I got the error as below: iTunes Installation error: “Microsoft VC80.CRT.TYPE=”win 32″.version=8.0.50727.6195″.publicKeyToken=’1fc8b3b9a1e18e3b”.processorArchitecture “x86″”.Please refer to help and support for more information. HRESULT:0X800700C1 It annoied my half an hour...

The post iTunes Installation error on Windows 10 appeared first on David Yin's Blog.

]]>
When I re-install iTunes on my Windows 10, after reset my PC, I got the error as below: iTunes Installation error: “Microsoft VC80.CRT.TYPE=”win 32″.version=8.0.50727.6195″.publicKeyToken=’1fc8b3b9a1e18e3b”.processorArchitecture “x86″”.Please refer to help and support for more information. HRESULT:0X800700C1

It annoied my half an hour to solve the problem. At last, I got the answer.

My Windows 10 may need a particular library file which is not included. It is Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC security Update.

Download here Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC Security Update

I download and install the x64 file. Then re-try the installation of iTunes, it is OK now. No Error comes out.

 

The post iTunes Installation error on Windows 10 appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2016/09/itunes-installation-error-windows-10.html/feed/ 0
How to fix d3dx9_43.dll is missing in Windows 10 https://www.yinfor.com/2016/09/fix-d3dx9_43-dll-missing-windows-10.html https://www.yinfor.com/2016/09/fix-d3dx9_43-dll-missing-windows-10.html#respond Sat, 10 Sep 2016 22:24:22 +0000 https://www.yinfor.com/?p=4887 It is a big problem when I try to install World of Warships. It is a brand new PC with a fresh installation of Windows 10 Pro 64bit. I did the following steps. Download client installation file from World of...

The post How to fix d3dx9_43.dll is missing in Windows 10 appeared first on David Yin's Blog.

]]>
It is a big problem when I try to install World of Warships. It is a brand new PC with a fresh installation of Windows 10 Pro 64bit.

I did the following steps.

  1. Download client installation file from World of Warships official site.
  2. Run the installation and allow it to download related files and updated files.
  3. Reboot the computer.
  4. Click the icon and try to run the game.
  5. An error comes out.

d3dx9-43-missing

I tried a lot of ways to solve it. Only one works on my computer.

D3dx9_43.dll is a directX extension file. It is DirectX 9. 43 means version 43.

Let me show you how to do it.

  1. Download the d3dx9_43.dll from Internet. Actually I got it from a dll file site.
  2. Unzip it. There are two files, one is 32 bit, on 64bit.
  3. I copy the 32bit file into c:/Windows/SysWOW64
  4. Restart the computer
  5. It works.

 

Now, I put the download link here, and help yourself if you need it.

d3dx9_43

The post How to fix d3dx9_43.dll is missing in Windows 10 appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2016/09/fix-d3dx9_43-dll-missing-windows-10.html/feed/ 0
AS SSD Benchmark testing has Exception error on Windows 10 https://www.yinfor.com/2016/09/ssd-benchmark-testing-exception-error-windows-10.html https://www.yinfor.com/2016/09/ssd-benchmark-testing-exception-error-windows-10.html#respond Tue, 06 Sep 2016 20:10:14 +0000 https://www.yinfor.com/?p=4874 How to solve the problem of errors when running AS SSD Benchmark testing on Windows 10 pro? Here is how the error looks like:   It is not always happened. Click OK. The result is  done.  But, there are some...

The post AS SSD Benchmark testing has Exception error on Windows 10 appeared first on David Yin's Blog.

]]>
How to solve the problem of errors when running AS SSD Benchmark testing on Windows 10 pro? Here is how the error looks like:as-ssd-benchmark-error

 

It is not always happened. Click OK. The result is  done.  But, there are some testing files left in the c:\AS-SSD-TEST42\ folder. You can delete them manually.

If it happened, you just need to run the execute file with Administrator right.

ps: The picture above is from the Internet.

The post AS SSD Benchmark testing has Exception error on Windows 10 appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2016/09/ssd-benchmark-testing-exception-error-windows-10.html/feed/ 0