Category Archives: How to Fix

Nuxt uses the image lazy to load the lazy component tag, and an error is reported

Problems encountered when nuxt uses image lazy loading, when & lt; lazy-component> tag is still normal, but after it is used, more than 40 exceptions will be prompted directly

found later. It needs to be found in & lt; lazy-component> & lt; no-ssr> label is good

<no-ssr>
	<lazy-component>
	...
	</lazy-component>
</no-ssr>

Personal blog address: nuxt uses pictures to load lazy component tags and reports an error

Error Ninja reported during dpdk20.11.1 installation and compilation

Execute CD build & amp& amp; Ninja error reporting

Cause analysis: dpdk relies on a higher version of Libpcap. The version of Libpcap carried in Python 3 is lower, so an error will be reported

terms of settlement

1、cd/home/haohan/software/PF_ Ring-6.6.0/userland/libpcap; Execute make install compilation

2. Execute ldconfig

3. Re execute CD build & amp& amp; ninja

 

Insert datagram error: ISAM error: no free disk space

I made a mistake in migrating data times:

[error]: error inserting data

Error   SQLCode:[-271]

Error message:Could not insert new row into the table:(-271) ISAM error:no free disk space(-131)

After checking the storage space, it is found that the space is free. After inquiry, it is found that the database built by Informix will often report an error when importing a large amount of data.

You can search for settings about Informix’s extend size and next size.

How Informix determines the extent size and next size_ The growth of database technology… – CSDN blog

Then my solution is as like as two peas: i migrated data, so I set up a table structure that is exactly the same as the database to be migrated in the destination database, but the value of extent size and next size is needed to build the table statement. For example, if I want to migrate a 34 g table, set the value of my extent size to 33554430 (the default unit is KB, which is the maximum value, 32g) and the next size to 1048576 (1 g or 2 g). Of course, the table space is extensible.

Create table table name(

  id CHAR(64),

age INTEGER

extent size 33554430 next size 1048576;

In tablespace name;

The values of ext size and next size are about the same as the data size, because my table space is extensible. If it is not extensible, it is better to be larger than the data size.

[PostgreSQL tutorial] · PostgreSQL error prompt: “error 42501” or “permission denied”

Article catalog

1. Problem overview 2. Solution

1. Problem overview

log in to the PostgreSQL database service with the PSQL command. When querying data, you receive an error log prompt, as follows:

“Error 42501” or “Permission Denied”

2. Solution

PostgreSQL error code 42501 is a common error, which sometimes occurs when responding to PostgreSQL database queries. In most cases, the error code 42501 indicates that the user has insufficient permissions on the database. PostgreSQL responds with an error message whenever a user with insufficient permissions makes a query

to solve this problem, please check the database user permissions. If the user trying to query lacks permission, just change the permission accordingly. You can use “ grant select on table_name to public; ” to grant permission to the public. Or use the command “ grant select on table_name to user_name; ” for only a few users

SAP RETAIL WA01 Creative Distribution List Error – Plant 0000000039 Confirmation date not maintained. –

SAP retail wa01 create allocation report error – plant 0000000039 confirmation date not maintained-

In SAP retail system, try to execute transaction code wa01 to create an allocation table,

Allocation table type z007, purchase organization 0002, purchase group 001.

Press enter to enter the create allocation table interface, enter relevant data and click Save to get the following error reports:

Error report: plant 0000000039: confirmation date not maintained

terms of settlement:

Select item and click the button

, enter the following interface,

Select the first item and click the button,

, enter the following interface,

In the control tab, select d after the request date field, and then enter a date. Then click the message button,

Maintain an output message and click the communication method button to enter the following interface,

Specify a local destination, such as LP01, as shown in the figure above.

Back, back.

Process the remaining items in the same way.

Finally, in the following interface, select item and click Check,

No more mistakes. Now you can save the allocation table data,

Click save,

The allocation table is successfully created as you wish!

-Finish-

2021-11-4 written in residence.

Raspberry pie startup self startup opencv program script and error analysis

1. Make test script

First, we need to make a script to test whether the self startup is effective.

pi@raspberry :~ $ nano /home/pi/start.sh

The contents of start.sh are as follows:

/usr/bin/python3 /home/pi/GeometryOperations.py

Here, you must pay attention to the use of absolute paths, otherwise there is a probability that the load will fail.

Then add an execution file to the script file

pi@raspberry :~ $ chmod 777 start.sh

Test the script function

pi@raspberry :~ $ ./start.sh

If you observe that the program is running normally, you can continue to the next step

2. Add self start

Modify rc.local file

pi@raspberry :~ $ sudo nano /etc/rc.local

Find exit 0 in the text. The code added before will be executed at startup. Add a line of code before exit 0:

su pi -c “exec /home/pi/start.sh &”

CTRL + O to save, Ctrl + X to exit and restart.

pi@raspberry :~ $ sudo reboot

After restart, the program can run.

3.DEBUG

If the raspberry pie does not respond after restart, you can check the status of RC local through systemctl

pi@raspberry :~ $ sudo systemctl status rc-local

After you go in, you can see the status of each step after you start up and check where the error will be reported.

4. Possible error reports

Process:454 ExecStart=/etc/rc.local start (code=exited,status=1/FAILURE)

This error is probably due to the script file
if you just start, you must write the file path as an absolute path, otherwise an error will be reported.

error: (-2:Unspecified error) Can’t initialize GTK backend in function ‘cvInitSystem’

This error will be reported if the self startup program contains code with window operation such as OpenCV

The reason is caused by the following sentence

su pi -c “exec /home/pi/start.sh &”

If your command needs to run for a long time (such as an endless loop) or cannot exit after running, you must ensure that the “& amp;” symbol is added at the end of the command to make the command run in its background

If the code contains window interface operations similar to the following

cv2.namedWindow(‘Cap’)
cv2.imshow(‘Cap’, frame)

It will conflict with the background operation, so that the back end of GTK cannot be initialized and an error will be caused
the solution is to delete all the operations related to the interface and window, and the program can run well!

An error is reported when kettle connects Oracle database and MySQL database

1. An error is reported when kettle connects to Oracle database

When kettle connects to Oracle database for the first time, it reports an error “wrong connection to database [Oracle]  ”, This is because spoon lacks the jar package corresponding to Oracle. If Oracle or Oracle client is installed, you can copy the corresponding jar file from their installation directory to solve the error problem.

Solution:

Copy and paste all files starting with ojdbc in Oracle database, such as ojdbc5 and ojdbc6.jar, into the spoon directory, such as D: \ kettle \ data-integration-8.2.0.7-719 \ lib\   Just under the path.

2. An error is reported when kettle connects to MySQL database

The error contents are as follows:

  This is caused by the missing jar connection package of MySQL.

Solution:

You need the jar connection package of MySQL database, such as mysql-connector-java-8.0.11.jar, copy and paste it into the spoon directory, such as D: \ kettle \ data-integration-8.2.0.7-719 \ lib\   Just under the path.

The attachment download link is as follows:

Kettle driver. TXT other document resources CSDN Download

[PostgreSQL tutorial] · out of memory issue

Article catalog

1. Problem description 2. Solution

1. Problem description

the PostgreSQL server running on the server receives an error log prompt message:

ERROR: out of memory 2021-11-24 
DETAIL: Failed on request of size 1880.

2. Solution

the memory of each system is limited. When there is no memory left, PostgreSQL’s memory allocation function begins to fail. Please check your hardware configuration and limitations

Vue agent reports an Error 404 nginx configuration method

The error points are different and the solutions are different. Use them after understanding

Recently, I was working on a personal blog. There was a music box function that called the API of Netease cloud music.

Agent configured in Vue

There is no problem with the local NPM run serve

But after packing in nginx

The API of the agent will report 404

  terms of settlement:

Configuration in nginx.config

location /music/ {
        proxy_pass http://39.108.136.207:3000/;
        
	   }

  Pit point:

        proxy_ Pass cannot be placed directly on the IP + port

        Additional and/or corresponding methods are required

        

Troubleshooting of errors in the installation and use of scienceplots

Troubleshooting of errors in the installation and use of scienceplots

Configure
Python 3.8.5
Anaconda
Spyder 4

Spyder editor has a good graphical interface. The drawn graphics are directly fed back in the interface. When the terminal and pycharm run Python drawing, the image will be displayed only after plot
therefore, I am used to using Spyder.

1. Scienceplots installation

(1) The scienceplots toolkit needs to install latex in advance. If latex has been used before, it is ignored. It is recommended to download and install the miktex link on the official website: link.
this step is very important. Installing latex in CONDA is not enough. You must install latex in win10. See the next section for details.

(2) Install scienceplots
GitHub link: link. Provides three methods, all of which are OK.

The easiest way to install SciencePlots is by using `pip`:

```bash
# to install the lastest release (from PyPI)
pip install SciencePlots

# to install the latest commit (from GitHub)
pip install git+https://github.com/garrettj403/SciencePlots

# to clone and install from a local copy
git clone https://github.com/garrettj403/SciencePlots.git
cd SciencePlots
pip install -e .

(3) Test it. It can be used to indicate that the installation is successful.

import matplotlib.pyplot as plt
plt.style.use('science')
fig, axe = plt.subplots(2, 2, figsize=(5,5))  

2. Problems encountered

Two main errors were encountered:

File "C:\Users\dell\anaconda3\lib\subprocess.py", line 1307, in _execute_chi

RuntimeError: Failed to process string with tex because latex could not be found)

Two errors occur in sequence. Error reporting means that the first error directly leads to the second error… I thought it was a kernel error. I changed the bug crazily. Anaconda uninstalled and reinstalled. Jupyter, spyder editor, xlrd, Matplotlib, scienceplots and other packages uninstalled and reinstalled crazily. Finally, I finally determined that these things were ok…..

During installation, I noticed the prompt in read me that latex needs to be installed in advance. I thought I had installed latex in anaconda, but I didn’t pay attention to this sentence. Finally, I tried all the methods. I suddenly realized that latex should be installed under win. Sure enough, there is no error when running the drawing code again after installing miktex. After running for a few seconds, you will be prompted to install some real macros in the latex package. After installation, you can run!

Really special pit… It took so long to fix the bug. In fact, it’s just such a small problem. Reflect on yourself. In the future, you must think more seriously!

Error in scikit learn installation of CONDA

Installing scikit learn under win7 will report an error

ERROR conda.core.link:_execute(701): An error occurred while installing package 'defaults::scikit-learn-1.0.1-py37hf11a4ad_0'.
Rolling back transaction: done

LinkError: post-link script failed for package defaults::scikit-learn-1.0.1-py37hf11a4ad_0
location of failed script: E:\PPY\Scripts\.scikit-learn-post-link.bat
==> script messages <==
<None>
==> script output <==
stdout:
stderr:
return code: 1

This should be the problem caused by the source of CONDA. The solution can be installed using the following command

conda install -c anaconda scikit-learn