Tag Archives: Windows

Windows one click restore, shadowcopy error – user affected limit

Windows comes with a restore backup feature that uses shadowcopy technology at the bottom.

This technology uses a copy on write approach, when each time there is a new IO, the old data will be copied out, and then write the new IO

Recently, the interface was called with the error “Event ID 36, User Imposed Limit”, which was found after investigation. When the shadow volume reports the error “User Imposed Limit”, the most likely reason is that the disk where the shadow volume is created is out of space and needs to be expanded.

Reference:

How to Fix VolSnap 36 Error User Imposed Limit – Volume Snapshot VolSnap 36 event ID may show up as error: Volume Snapshot Driver, Diff Area health issues

Event ID 36
Source volsnap

The shadow copies of volume C: were aborted because the shadow copy storage could not grow due to user imposed limit or a related message. Basically VolSnap 36 is an error event that signals an issue with the diff area being used by VSS.

It could be:

a low limit for the diff area, see http://backupchain.com/i/how-to-fix-volsnap-25-error

a disk I/O issue

a bad sector on disk: use chkdsk X: /b to check for bad blocks (may require a reboot)

system load is too high for the diff area to grow fast enough

a corrupt file system issue. Use Chkdsk with /r option, better use /b to also check for bad sectors

The most common cause is #1. Use the solution in the article linked above; however, checking the other potentialities may also be a good idea if the disk hasn’t been checked in a while.

Windows Python Install: requires numpy+mkl & ImportError: cannot import name NUMPY_MKL

 

Recently, I wrote an article about “installation and use of Microsoft open source distributed high performance GB framework lightgbm”. Some partners encountered problems when installing Python environment. I personally tried to install it, and I really encountered a lot of problems“ After the problem of “installing the SciPy Library of Python under Windows 7” was solved, we encountered “importerror: cannot import name numpy”_ MKL. As follows:

[plain]

view plain

copy

D:\LightGBM\LightGBM\examples\python-guide> pythonsimple_ example.py

Traceback(mostrecentcalllast):

File”simple_ example.py”,line4,in< module>

importlightgbmaslgb

File”D:\Python27\lib\site-packages\lightgbm-0.1-py2.7.egg\lightgbm\__ init__. p

y”,line9,in< module>

from.basicimportDataset,Booster

File”D:\Python27\lib\site-packages\lightgbm-0.1-py2.7.egg\lightgbm\basic.py”,

line15,in< module>

importscipy.sparse

File”D:\Python27\lib\site-packages\scipy\__ init__. py”,line61,in< module>

fromnumpy._ distributor_ initimportNUMPY_ MKL#requiresnumpy+mkl

ImportE rror:cannotimportnameNUMPY_ MKL

Why is there such a problem

Reference“ http://stackoverflow.com/questions/37267399/importerror-cannot-import-name-numpy-mkl ”What I’m saying is

Because my “SciPy” is installed with “. WHL” file according to the method in “installation of Python’s SciPy Library under Windows 7”, and “numpy” is installed with “PIP install numpy” command

In fact, I used the “PIP install numpy” command to install. In fact, I downloaded a “. WHL” file, which is different from the download source of “SciPy”, but it doesn’t work

What to do?What to do

Unload numpy with the command “PIP install numpy” and MKL with the command “PIP install MKL”

Using the same source as “SciPy”, from“ http://www.lfd.uci.edu/~gohlke/pythonlibs/ ”Download the installation file of “numpy” (find the corresponding version)

Then use the command to install: PIP installnumpy {1.14.2 + MKL} cp35} cp35m} win_ AMD64. WHL

The problem is solved

How to Solve Windows setup encountered HResult: 0x80070422 Error

Today, the installation of smartrf flash programmer failed. I got the following error. I thought it was a problem with the installation package. I tried several versions but couldn’t solve it. After looking up the error code, I found that it was caused by the system installation service not being started. Just set it to be started manually or automatically, and then start the service.

HRESULT:0x80070422

Cause

Windows Modules Installer service was not started/does not exist

Resolution

Check Windows Modules Installer service:

Click Start button and type “services.msc” without quotes and hit enter

In the Services window locate Windows Modules Installer service.

Click right mouse button on Windows Modules Installer service and click Properties.

Check Service status string in window opened. It should be “Started”.

Startup type should be set to “Manual”.

 

Windows: PIP Install error: Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat

Just after installing PIP in Windows environment on the machine, it is convenient to use it when installing the package in the future. Who knows that when using pip to install asyncio for the first time, it will report an error

when using PIP installation package under windows7x64, you will be prompted to report an error: Microsoft Visual C + + 9.0 is required (unable to find vcfarsall. Bat)

environment: windows7 x64, python2.7, vs2012

reason: when using PIP installation package under windows, you need VS2008 installed on the machine, but vs2012 is not enough, if you don’t want to install VS2008, You can install a package of Micorsoft Visual C + + compiler for Python 2.7

Error in PIP3 execution of multi version Python by windows: module ‘enum’ has no attribute ‘intflag’?

Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>

summary :

This machine is equipped with python2.7 and python3.6. There is no problem when executing PIP and PIP2. When executing PIP3, you will be prompted:

C:\Users\>pip3
Traceback (most recent call last):
  File "e:\python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "e:\python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "E:\Python36\Scripts\pip3.exe\__main__.py", line 2, in <module>
  File "e:\python36\lib\re.py", line 142, in <module>
    class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'

reason:

English: This is likely caused by the package enum34. Since Python 3.4 there’s a standard library enum module, so you should install enum34, which is no longer compatible with the enum in the standard library since enum.intflag was added in Python 3.6

English: this may be caused by the enum34 package. Because there is a standard library enumeration module in Python 3.4, you should uninstall enum34, which is no longer compatible with enumerations in the standard library because enumerations. Intflag was added in Python 3.6

solutions:

pip uninstall enum34

#Uninstall enum34

After unloading, PIP3 was executed successfully. It took most of the day yesterday to solve the problem

C:\Users>pip3

Usage:
  pip3 <command> [options]

Commands:
  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  check                       Verify installed packages have compatible dependencies.
  config                      Manage local and global configuration.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  completion                  A helper command used for command completion.
  help                        Show help for commands.

PXE install windows System Error: pxe-e55:ProxyDhcp service did not reply to request on port 4011

This pxe-e55 “error indicates that the PXE client has sent a request to the proxy DHCP server on port 4011, but has not received a reply. It seems that this problem only occurs when the DHCP class identifier option # 60 is set on the DHCP server, but there is no proxy DHCP service running on port 4011 on the same computer

If you operate the DHCP and proxy DHCP services on different computers, do not set the DHCP class identifier option in the DHCP configuration, and let the two services run on port 67/UDP

If you operate the DHCP and proxy DHCP services on the same computer, please set the DHCP class identifier option in the DHCP configuration. Let the DHCP service run on port 67/UDP and the proxy DHCP service run on port 40111 UDP

Here is an link to this question

https://kb.acronis.com/content/8358

At the same time, you can restart the WDS service

Please make sure you have checked this:

When creating an operating system deployment for x64 BIOS computers only, the x64 boot image and x64 boot image must be available on all DPS


my experimental environment :

VMware, both client and server use VMware 8 (NAT) network, and use local DHCP service when shutting down

server win-2008: DHCP (192.168.1.1-100), DNS( www.feiquan.net ), WDS server, feiquan.com (192.168.1.132) domain

start from PXE after client configuration: prompt error: proxydhcp service did not reply to request on port 4011

solution:

If Windows Deployment Services and DHCP are running on the same computer, configuring Windows Deployment Services to not respond to any client computers will not work. This is because although Windows Deployment Services will not respond, DHCP will. You can try to work around this issue by disabling DHCP option 60 on the DHCP tab

the main reason is that the configuration of DHCP is wrong. To add 60,67 as boot/x64/wdsnbp.com, because my DHCP and WDS server are the same computer, and then restart the WDS server

server:

DHCP server configuration :

DNS server:

WDS server:

If you want to restart WDS server and DHCP server after modifying 60 and 67 of DHCP. The client then requests recognition again. If you do not restart, you will still be prompted with the above error even after you modify the configuration. I just restart the computer

client:

 

Fix Windows Resource Protection found a corrupt file but could not fix it

Today, the computer of windows 8.1 system suddenly gets stuck and restarts automatically. The information obtained through the event viewer is limited. It is initially suspected that the system file is damaged. So the classic SFC/scan now is used to verify the system and repair the damaged file, but the following suggestions are obtained:

Start the system scan. This process will take some time.

Begins the verification phase of the system scan.
Verification is 100% complete.

Windows Resource Protection found corrupt files but could not repair some of them.
Some of these files. detailed information is available in CBS.Log windir\Logs\CBS\CBS.log.
For example, C:\Windows\Logs\CBS\CBS.log. Please note that in the offline service scenario
Logging is not currently supported.

It means that the damaged file has been found, but the SFC command can’t be repaired, and the specific reason for the failure to repair has not been found. After opening the C:// Windows/logs/CBS/CBS. Log file, we find that the information recorded in this log is miscellaneous, but we can start the administrator authority CMD console through the windows + X + a combination key, Then run the following command to directly output the details of the damaged file to the desktop sfcdetails. TXT file:

findstr /C:"[SR] Cannot repair member file" %windir%\logs\cbs\cbs.log >"%userprofile%\Desktop\sfcdetails.txt"

Through the above command, I get the following output:

2016-05-15 10:43:43, Info                  CSI    000005f4 [SR] Cannot repair member file [l:36{18}]"Amd64\CNBJ2530.DPB" of prncacla.inf, Version = 6.3.9600.17415, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch
2016-05-15 10:43:46, Info                  CSI    000005f6 [SR] Cannot repair member file [l:36{18}]"Amd64\CNBJ2530.DPB" of prncacla.inf, Version = 6.3.9600.17415, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch
2016-05-15 10:47:46, Info                  CSI    00000980 [SR] Cannot repair member file [l:36{18}]"Amd64\CNBJ2530.DPB" of prncacla.inf, Version = 6.3.9600.17415, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch
2016-05-15 10:47:47, Info                  CSI    00000982 [SR] Cannot repair member file [l:36{18}]"Amd64\CNBJ2530.DPB" of prncacla.inf, Version = 6.3.9600.17415, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch

Here, we just know that the file AMD64/cnbj2530. DPB is damaged, but what’s the use of SFC’s failure to repair it?However, we found another way to repair it through this article “unable to repair through SFC function, prompt” Windows Resource Protection found the damaged file but can’t repair it “, That is, in the case of networking , it can be realized through the following command:

DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Restorehealth

Still use the windows + X + a combination key to start the administrator rights CMD console, then input the above commands one by one as the behavior unit and press enter. After a moment, you can use SFC/scan now to check again. Fortunately, you can successfully repair the damaged files in this way, as shown in the figure below

Solving the problem of QT connecting MySQL database in Windows system: qmmysql driver not loaded

In the process of learning QT, we encountered the situation that we could not connect to the database

#include <QApplication>
#include <QtSql>
#include <QMessageBox>
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

 //Show existing database driver
    qDebug()<<QSqlDatabase::drivers();

    QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
    db.setHostName("localhost");
    db.setDatabaseName("dbname");
    db.setUserName("root");
    db.setPassword("password");
    
    if (!db.open()) {
       QMessageBox::critical(0, QObject::tr("Database Error"),
                              db.lastError().text());
    }

    return a.exec();
}

The output of the console is:

As shown above, MySQL driver exists, but it still prompts an error: qmmysql driver not loaded

The reason is that libmysql.dll is missing in the program

This dynamic connection library is in the Lib directory of the MySQL installation file. For example, if my MySQL is installed on Disk C, libmysql.dll is located at:

C:\MySQL\MySQL Server 5.7\lib\

Find libmysql.dll, copy it to the directory where your exe is located, and then run the program. At this time, you can connect to MySQL

note: 32-bit QT program must use 32-bit libmysql.dll, not 64 bit. Similarly, 64 bit programs use 64 bit libmysql. DLL

Libmysql.dll can be found in the Lib directory of the MySQL installation file

If there is no corresponding version, you can also download it here:

Connection: http://pan.baidu.com/s/1kVKwLuR

Password: v6uy

You can connect to the database through the above method, but it is very troublesome to copy libmysql.dll to the directory where the EXE is located every time. Therefore, when writing programs, you can use a convenient method:

Copy libmysql.dll to the bin directory of QT installation file, such as my bin directory:

D:\Qt\Qt5.7.0\5.7\mingw53_32\bin\

After copying to the bin directory, there is no need to copy libmysql.dll to the directory where the EXE is located. The program can connect to the MySQL database correctly

Using PSCP to copy data from Windows computer to SSH in Linux_ Init error

Command line: PSCP – I C: \ “code \” jerrylaunchpad \ “aliyun.ppk% 1 root@SAP-DIS :/home/Jerry

From the discussion of stack overflow, we know that due to root@SAP-DIS As a result, root is the user name and sap-dis is the host name. Replace the host name with the IP address of the host, and the error disappears. You can copy it:
here, the root is the user name and sap-dis is the host name https://stackoverflow.com/questions/48652231/ssh-init-host-does-not-exist-trying-to-copy-tomcat7-folder-to-my-ubuntu-ec2-i


to get more original articles of Jerry, please pay attention to the official account of “Wang Zixi”:

This article shares CSDN – Wang Zixi.

[How to Solve] SSL handshake failed: SSL error

SSL handshake failed: SSL error: key usage violation in certificate has been detected appears when downloading the source code of SVN linked with HTTPS on Linux server

The reason for the error is that the certificate used by windows is not recognized by Linux

Add the following registry value to the windows registry: (mine is 64 bit)

for 32-bit system: (run regedit – > Find the following registry key – > Add a value of type DWORD)

[HKEY_LOCAL_MACHINE\SOFTWARE\VisualSVN\VisualSVN Server]
"CreateGnuTLSCompatibleCertificate"=dword:00000001

for 64-bit system:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VisualSVN\VisualSVN Server]
"CreateGnuTLSCompatibleCertificate"=dword:00000001

StartVisualSVN Server Manager.(Open virsualSVN server)

Go toAction | Properties | Certificate.

ClickChange certificate…

Select Create new self-signed cetificate.

Next all.

If you run svn again on Linux, you will be prompted with a warning that the certificate generator is not trusted, just select Accept Permanently.