Tag Archives: windows

[Solved] Windows startup error: unable to find launcherrsxruntime.exe

Problem phenomenon:

The win10 system will report the following error after each restart,

Windows cannot find the file

C:\Program Files\WindowsApps\AdvancedMicroDeviceslnc-2.AMDRad… launcherrsxruntime.exe

Cause of problem:

It is estimated that the file in AMD’s driver is damaged due to what software is installed or abnormal startup

Solution:

Use AMD’s own driver management software to repair it (effective through personal test). The repair steps are as follows:

Press wins + I to enter Windows settings –> Application –> Applications and functions–> AMD Radeon Software –> Advanced options –> Repair

Restart verification after repair

Note: the above solutions are not necessarily applicable to all situations. If they cannot be solved, you can try to upgrade the driver or reinstall the driver.

[Solved] Kafka in Windows error:java. nio. file. Filesystemexception: this file is in use by another program and cannot be accessed by the process

Problem description

Kafka deployed in Windows environment hangs up after running for a period of time
view logs logs/server Log the following errors are found:

 ERROR Failed to clean up log for __consumer_offsets-44 in dir D:\kafka\kafka_2.13-2.8.0\kafkakafka_2.13-2.8.0kafka-logs due to IOException (kafka.server.LogDirFailureChannel)
java.nio.file.FileSystemException: D:\kafka\kafka_2.13-2.8.0\kafkakafka_2.13-2.8.0kafka-logs\__consumer_offsets-44\00000000000000000000.timeindex.cleaned -> D:\kafka\kafka_2.13-2.8.0\kafkakafka_2.13-2.8.0kafka-logs\__consumer_offsets-44\00000000000000000000.timeindex.swap: 另一个程序正在使用此文件,进程无法访问。

	at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
	at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387)
	at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
	at java.nio.file.Files.move(Files.java:1395)
	at org.apache.kafka.common.utils.Utils.atomicMoveWithFallback(Utils.java:904)
	at kafka.log.AbstractIndex.renameTo(AbstractIndex.scala:210)
	at kafka.log.LazyIndex$IndexValue.renameTo(LazyIndex.scala:155)
	at kafka.log.LazyIndex.$anonfun$renameTo$1(LazyIndex.scala:79)
	at kafka.log.LazyIndex.renameTo(LazyIndex.scala:79)
	at kafka.log.LogSegment.changeFileSuffixes(LogSegment.scala:496)
	at kafka.log.Log.$anonfun$replaceSegments$4(Log.scala:2402)
	at kafka.log.Log.$anonfun$replaceSegments$4$adapted(Log.scala:2402)
	at scala.collection.immutable.List.foreach(List.scala:333)
	at kafka.log.Log.replaceSegments(Log.scala:2402)
	at kafka.log.Cleaner.cleanSegments(LogCleaner.scala:613)
	at kafka.log.Cleaner.$anonfun$doClean$6(LogCleaner.scala:538)
	at kafka.log.Cleaner.$anonfun$doClean$6$adapted(LogCleaner.scala:537)
	at scala.collection.immutable.List.foreach(List.scala:333)
	at kafka.log.Cleaner.doClean(LogCleaner.scala:537)
	at kafka.log.Cleaner.clean(LogCleaner.scala:511)
	at kafka.log.LogCleaner$CleanerThread.cleanLog(LogCleaner.scala:380)
	at kafka.log.LogCleaner$CleanerThread.cleanFilthiestLog(LogCleaner.scala:352)
	at kafka.log.LogCleaner$CleanerThread.tryCleanFilthiestLog(LogCleaner.scala:332)
	at kafka.log.LogCleaner$CleanerThread.doWork(LogCleaner.scala:321)
	at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:96)
	Suppressed: java.nio.file.FileSystemException: D:\kafka\kafka_2.13-2.8.0\kafkakafka_2.13-2.8.0kafka-logs\__consumer_offsets-44\00000000000000000000.timeindex.cleaned -> D:\kafka\kafka_2.13-2.8.0\kafkakafka_2.13-2.8.0kafka-logs\__consumer_offsets-44\00000000000000000000.timeindex.swap: 另一个程序正在使用此文件,进程无法访问。

		at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
		at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
		at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:301)
		at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
		at java.nio.file.Files.move(Files.java:1395)
		at org.apache.kafka.common.utils.Utils.atomicMoveWithFallback(Utils.java:901)
		... 20 more

reason

When the consumer offsets the log cleanup or the log file scrolls, Kafka broker will shut down because the file renaming fails. This is because cannot modify the file in use in windows.

Solution

In server In the properties configuration file:
1.Modify log retention. Hours = - 1
2.Add log at the end of the file cleaner. Enable = false
3.Restart

Suggestion

There are similar issues and PR in GitHub, but they are not merged. The author uses kafka_2.13-2.8.0 version has this problem. Kafka is not recommended for win environments.

[Solved] Centos8 openssh Compile Error: error while loading shared libraries


When running the program under CentOS 8, I found the error while loading shared libraries. I didn’t know the solution for a while. Now I have explored and solved it, as follows:

1. Find the path where the missing library is located {find/- name} XXX

2. Put the path in /etc/ld.so.conf

3. At the command line, enter ldconfig

4. No error will be reported after compiling again

[Solved] Tableau Desktop Install Error: 0x80070643 fatal error during installation

Problem description

When installing tableau desktop, the following errors may occur:

0x80070643 fatal error during installation

The error log is as follows:
in addition, the following errors can be found in the log:

Error 0x80070643: unable to execute MSI package

reason

Required installation components failed to start
Please note that error 0x80070643 is an error of Microsoft
.

Solution:

1. In windows, navigate to control panel > “Programs and features >”, Locate the visual c + + redistributable package shown in the setup file. For example, tableau desktop 2018.2 3 installation procedure Exe file contains 2013 and 2014 x64 Visual C + + redistributable component packages (as well as. MSI installer and some Database Driver Installer files of tableau desktop)

2. If not, go to the Microsoft official website to download
download link: https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=53587

3. Just download and install
run the installer from tableau desktop Exe file, and then run tableau desktop MSI installer

How to Solve program install error 0x80070660

When installing Python and VC runtime library, the errors reported by many software are 0x80070660, saying that the temporary folder has no space or permission.

After detection, it is found that there is permission and space. Next solution

Solution:

Create the installer folder in the %windir% directory.

 

The following methods are from YouTube. I’ve tried them and they’re useless. They may be useful to others. Let’s put them here for the time being

Method 1: win10 system, run “troubleshooting” and restart

Method 2: run the following command and restart

net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start cryptSvc
net start bits
net start msiserver

Method 3: rmdir/S/Q C: \ windows \ softwaredistribution \ download \ sharedfilecache

Method 4: Windows Update – & gt; Advanced options} turn off the “provide additional Microsoft product updates when updating windows” option and restart

Method 5: install VC runtime library_ redist. x[Arch]. exe

Error BC: command not found when git bash runs shell script

catalog:

1. Problem Description: 2. Error reporting reason: 3. Solution:

1. Problem Description:

Under Windows system, an error occurs when running shell script with git bash:

bc: command not found

2. Error reporting reason:

Git is missing the BC module, and git cannot directly install the BC module

3. Solution:

By downloading msys2, download the BC package in msys2 and copy it to git
specific steps:
(1) install msys2 and download the address https://www.msys2.org/
(2) After installation, open the msys2 shell and install BC with the following command

pacman -S bc

(3) Go to the msys64 \ usr \ bin folder under the msys2 installation directory and find bc.exe
(4) copy the bc.exe file to the GIT \ usr \ bin folder under the GIT installation directory
re run the shell script in Git bash, and there will be no BC: command not found error.

[Solved] java: Compilation failed: internal java compiler error

Idea version 2121.2.1

1. JDK configuration problem

Setting project jdk

Setting module jdk

During the setting of compiler jdkthe clean operation was performed after several settings, resulting in @override error. Later, it was found that the compiler was not checked

use compiler from module target JDK when possible

2. Add in POM file

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
</properties>
<build>
    <plugins>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>8</source>
                <target>8</target>
            </configuration>
        </plugin>
    </plugins>
</build>

Done!

Dbeaver startup error and dbeaver installation configuration

About the error “version 1.8.0 301 of the JVM is not suitable for this product. Version: 11 or greater is required.”

1. Download Windows 64 bit (zip) under community from the official website of dbaver, and download and unzip it directly

2. After decompression, open the directory file, find dbeaver.exe and create a shortcut

3. Right click the shortcut and properties, add – VM D:/bigdata/software/JDK/bin/javaw.exe after the “target” path, and click apply and OK.

Generally, after performing the above operations, you can normally open the dbeaver shortcut. But some computers still can’t be turned on for some reasons. I checked many methods on the Internet. In the configuration file of dbaver, insert two lines above – vmargs:

-vm

D:/bigdata/software/jdk/bin/javaw.exe

However, the error version 1.8.0 is still reported when dbeaver is started on my computer_ 301 of the JVM is not suitable for this product. Version: 11 or greater is required.

I tried many methods on the Internet and still couldn’t solve it. Finally, I accidentally found that I put it in the dbeaver configuration file

-vm

D:/bigdata/software/jdk/bin/javaw.exe

Insert it into the next two lines of – vmargs. After saving, create a new shortcut and repeat step 3.

be careful!!! Be sure to add these two lines under – vmargs

Synchronous update: error from dbeaver startup ➕ Installation configuration – brief book (Jianshu. Com)

[Solved] Pytorch loading model specified GPU card number error or failed to specify

According to the pytorch document, when loading the model, you can specify to load the tensor of the model to a specific target GPU
the loading methods are:

>>> torch.load('tensors.pt')
# 1. Load all tensors onto the GPU 0
>>> torch.load('tensors.pt', map_location=torch.device('cuda:0'))
# 2. Load all tensors onto GPU 1
>>> torch.load('tensors.pt', map_location=lambda storage, loc: storage.cuda(1))
# 3. Map tensors from GPU 1 to GPU 0
>>> torch.load('tensors.pt', map_location={'cuda:1':'cuda:0'})

The actual measurement shows that
method 1 is not loaded into the target card at all. The original card on which the model was trained is still loaded into the original old card number, so the assignment fails
in method 3, errors are reported between codes. Location. Startswitch (‘cuda ‘): attributeerror:’ nonetype ‘object has no attribute’ startswitch ‘. After analyzing the code, it is found that this is a bug of torch itself! Pit father
method 2: normally load the tensors on cuda1.