Tag Archives: ProgrammerAH

Insufficient space in the root directory causes the state of the managed server to become FAILED_NOT_RESTARTABLE

The tester did a stress test on the SOA Suite system last night and came in this morning and found

The system cannot be accessed. The Console can also log in, but Managed Server cannot open. The state finally becomes FAILED_NOT_RESTARTABLE.

Just a few warnings and notifications, when you restart AdminServer, it turns out that AdminServer process is starting, but the console can’t log in, and the log screen doesn’t work

When it came time to check the OS system problem, dF-H checked the Linux system and found that/space utilization was 100%, suddenly realized that it should be its problem, went in and found that a directory/TMP space occupied 93%, du-sh/TMP was 21G, a total of only 26G. Resolutely deleted about 18G of TMP (specific TMP file or the following directory can’t understand what). Open AdminServer again, and the log on the screen goes smoothly, so it’s comfortable…

from ITPUB blog tolywang’s blog, source link: lack of space in the root directory caused the Managed Server state to become FAILED_NOT_RESTARTABLE, please contact the original blogger if you want to reprint.

Problems encountered in window10 system configuration tesseract

 

Mainly according to the tutorial to http://www.wangtuizhijia.com/archives/272
The runtime reports an error like this:
pytesseract.pytesseract.TesseractError: (1, ‘Error opening data file \\Program Files (x86)\\Tesseract-OCR\\eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your “tessdata” directory. Failed loading language \’eng\’ Tesseract couldn\’t load any languages! Could not initialize tesseract. ‘)
The key message is underlined: the environment configuration should be configured to the path of ‘tessdata
Because global variables are not configured to perform data conversion across disks, we add a configuration message to the environment variable.
 
Maybe the tutorial is win7 system slightly different, Win10 Under my operation
Environment variable – New – Variable name :TESSDATA_PREFIX Variable value :C:\Program Files (x86)\Tesseract-OCR\ tessData
Then the system might just need to be rebooted

INSTALL PARSE FAILED INCONSISTENT CERTIFICATES error solution

Share my teacher’s artificial intelligence tutorial! Zero basis, easy to understand! http://blog.csdn.net/jiangjunshow

You are also welcome to reprint this article. Share knowledge, benefit the people, and realize the great rejuvenation of the Chinese nation!

               
A prompt similar to INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES appears when installing the APK file, along with the following similar prompt:
Android Launch!
adb is running norm.
Performing com. android123.cwj activity launch
Automatic Target Mode: Using device ‘HT840GZ25974’
Uploading CWJ. Apk onto device ‘HT840GZ25974’
Uploading
Application already exists. Attempting to re – install home…
re-installation failed due to different application signatures.
You must perform a full uninstall of the application. WARNING: This will remove the application data! Android123.cwj ‘in a shell.
Launch canceled!
Such problems mainly due to signature conflict, such as you use the ADB debug permissions signature, but then use standard sign signature and then install the same file will appear such errors, the solution in addition to honestly uninstall the original version to install again from the mobile phone, the ADB install – r parameter can’t solve this problem.            

Call my teacher’s artificial intelligence tutorial! http://blog.csdn.net/jiangjunshow

mdt wds deployment windows Litetouch deployment failed, Return Code = -2147467259 0x80004005

It’s deployments that turn out to be wrong.

Litetouch deployment failed, return code = -2147467259 0x80004005

It’s been a long day, but I finally got the results back. Write it down.

Method 1

On your Windows 7 reference PC, open the registry editor. Navigate to the HKLM \ system \ settings. Look for a multi-string value called “CloneTag”. I’m guessing it’s not there. Add a new multistring value named “CloneTag”. The actual value doesn’t matter. I’m not sure if the case on the name matters, so I mimicked the error message. Export the HKLM\system\settings key and save it to the .reg file. Edit the .reg file and remove all other entries except for the CloneTag value.

Run cscript to start the task sequence selector. Select your Sysprep and capture the Task Sequence. Enter your credentials and start.

When it gets to the part where the sysprep is executed, run the .reg file to quickly import the CloneTag multi-string value. If you see that it continues to sport, then you should be clear.

Method 2

Go to the Scripts folder in your DS box and create a backup of the LTISysprep file somewhere on your desktop so you will have a copy and if anything goes wrong open the LTISysprep file with Notepad and remove osshell. MACHINE\System\Setup\CloneTag’ line off and save the file to update your deployment share continues by logging in to the referenced computer and on your DS machine.

Run the LiteTouch script to capture p_w_picpath on

Method 3.

The reason for this failure is that the registry key CloneTag under HKLM\system\settings was deleted during sysprep startup:

1.
Enter your sysprep and capture the task sequence, execute sysprep, Options tab, Add, Registry Settings. Enter “System\Settings” in the “Key” box, and enter the CloneTag in the “Value Name” box, and place the “Value” in the CloneTag. ” box is left blank. The whole step is to add the registry entry back to the HKLM\system\setup after the sysprep is complete.

2. (Same approach as suggested by Jimmy lami)
You can also modify the script to prevent deletion of registry entries. Go to the deploymentshare folder and look for the script named LITSysprep in the scripts folder. Right-click on edit to make changes in the script. You can remove the oShell.RegDelete “HKEY_LOCAL_MACHINE\SystemSetup\CloneTag” or you may want to add. // infront to convert it to a comment.

Solve ssh error: shell request failed on channel 0

Problem: When building Jenkins task, it was found that the target host could not be connected. After manually executing SSH command on the command line, an error was reported: Shell Request failed on channel 0
Cause: The number of system processes on the target host is too small to connect
Solution: need to modify the/etc/security/limits. D/20 – nproc. The values in the conf file, change the 4096 older, such as 65535

[zhangsan@note1 /]$ cat /etc/security/limits.d/20-nproc.conf

*          soft    nproc     4096
root       soft    nproc     unlimited

Re-ssh, and you are done.
 

[Transfer] mdt wds deployment windows Litetouch deployment failed, Return Code = -2147467259 0x80004005 solution…

Combination chemotherapy wds deployment windows Litetouch deployment failed,return code = -2147467259 0 x80004005 resolution

Mark.

http://isee131.blog.51cto.com/619759/518771

It’s deployments that turn out to be wrong.

Litetouch deployment failed, return code = -2147467259 0x80004005

It’s been a long day, but I finally got the results back. Write it down.

Method 1

On your Windows 7 reference PC, open the registry editor. Navigate to the HKLM \ system \ settings. Look for a multi-string value called “CloneTag”. I’m guessing it’s not there. Add a new multistring value named “CloneTag”. The actual value doesn’t matter. I’m not sure if the case on the name matters, so I mimicked the error message. Export the HKLM\system\settings key and save it to the .reg file. Edit the .reg file and remove all other entries except for the CloneTag value.

Run cscript to start the task sequence selector. Select your Sysprep and capture the Task Sequence. Enter your credentials and start.

When it gets to the part where the sysprep is executed, run the .reg file to quickly import the CloneTag multi-string value. If you see that it continues to sport, then you should be clear.

Method 2

Go to the Scripts folder in your DS box and create a backup of the LTISysprep file somewhere on your desktop so you will have a copy and if anything goes wrong open the LTISysprep file with Notepad and remove osshell. MACHINE\System\Setup\CloneTag’ line off and save the file to update your deployment share continues by logging in to the referenced computer and on your DS machine.

Run the LiteTouch script to capture p_w_picpath on

Method 3.

The reason for this failure is that the registry key CloneTag under HKLM\system\settings was deleted during sysprep startup:

1.
Enter your sysprep and capture the task sequence, execute sysprep, Options tab, Add, Registry Settings. Enter “System\Settings” in the “Key” box, and enter the CloneTag in the “Value Name” box, and place the “Value” in the CloneTag. ” box is left blank. The whole step is to add the registry entry back to the HKLM\system\setup after the sysprep is complete.

2. (Same approach as suggested by Jimmy lami)
You can also modify the script to prevent deletion of registry entries. Go to the deploymentshare folder and look for the script named LITSysprep in the scripts folder. Right-click on edit to make changes in the script. You can remove the oShell.RegDelete “HKEY_LOCAL_MACHINE\SystemSetup\CloneTag” or you may want to add. // infront to convert it to a comment.

vscode import numpy error:DLL load failed: The specific module could not be found

An error description

    anaconda prompt, import numpy in normal vscode, import numpy error: DLL load failed

Error reason
Vscode failed to properly initialize the environment variable
The solution
Open the vscodesettings.json file

(type)               CTRL + SHIFT + P
(search for:)        open settings
(click:)             Preferences: Open Settings (JSON)

Add three lines

{
    ... # any other settings you have already added (remove this line)

    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
    "terminal.integrated.shellArgs.windows": ["/K", "x:\\xxx\\Anaconda3\\Scripts\\activate.bat x:\\xxx\\Anaconda3"],
    "python.condaPath": "x:\\xxx\\Anaconda3\\Scripts\\conda.exe"
}

mysql Error: Failed to open file “file_name” error 2/error 22

The web says that Linux may have this problem, and that the SQL file import error as shown in the title. I used Windows and had the same problem.
The reason is the same: mysql imports SQL according to the relative path query. For example, When I open mysql in the WWW folder, I enter source Form /test.sql to query the file in the WWW folder.
Solution: Simple, use CMD to enter the folder where SQL files exist, then open mysql, and then import SQL files

Centos7 offline installation of redis and PHP extension redis

Linux install redis
Redis related packages

Phpredis – 2.2.4. Tar. Gz

phpredis-develop.zip

Redis – 4.0.6. Tar. Gz

Link: https://pan.baidu.com/s/1eSOwqhO password: af4c

1. Unzip, compile and install tar-Zxvf Redis-4.0.6.tar.gz

CD redis – 4.0.6/SRC

make

make install

2. You can see some green files when moving ls redis-4.0.6/ SRC

mkdir -p /usr/local/redis/etc ###etc has a storage configuration file

mkdir -p /usr/local/redis/bin ###bin is used to store commands

Copy redis.conf under redis.4.0.6 to /usr/local/redis/etc/

cp ../redis. Conf/usr/local/redis/etc /

copy the green file under redis-4.0.6/ SRC folder to /usr/local/redis/bin

cp green file name /usr/local/redis/bin/

CD/usr/local/redis/bin

ls

3. Start redIS service. Starting the RedIS service requires the command Redis-server./ Redis-server

Warning: no config file specified,

after the termination

/redis server/usr/local/redis/etc/redis. Conf

now redis is running in the foreground

redis runs in the background

vi /usr/local/redis/etc/redis.conf

search: /daemonize

changes the daemonize configuration entry to yes

save exit

./redis-server /usr/local/redis/etc/redis.conf

ps -ef | grep redis

pstree -p | grep redis ## tree display

netstat – NTLP | grep 6379 ### port

[linuxidc@localhost bin]$ /usr/local/redis/bin/redis-cli

127.0.0.1:6379 & gt;// hint

indicates successful client login

4. Join systemctl configure redis vi/usr/lib/systemd/system/redis. Service

[Unit]

Description=Redis

After=network.target

[Service]

#Type=forking

PIDFile=/run/redis_6379.pid

ExecStart =/usr/local/redis/bin/redis server/usr/local/redis/etc/redis. Conf – daemonize no

ExecReload=/bin/kill -s HUP $MAINPID

ExecStop =/usr/local/redis/bin/redis – 127.0.0.1 cli – h – p 6379 shutdown

PrivateTmp=true

[Install]

WantedBy=multi-user.target

save exit

systemctl daemon-reload

systemctl start redis

systemctl enable redis

systemctl is-enabled redis

if an error occurs

systemctl enable redis

Failed to execute operation: Bad message

Please check the/usr/lib/systemd/system/redis. Service file

5. Install the PHPREdis-Develop.zip extension if you have PHP installed

download address: https://github.com/phpredis/phpredis/archive/develop.zip

unzip phpredis – develop. Zip

cd phpredis-develop

/usr/local/php7/bin/phpize

./configure –with-php-config=/usr/local/php7/bin/php-config

make

(see result: Don’t forget to run ‘make test’. That is success.)

make install

(see the results as follows: Installing Shared extensions:/usr/local/php7/lib/PHP/extensions/no – debug – non – ZTS – 20160303 /

)

: Shared extensions, has generated the dynamic link library file redis. So.

can check if there is redis.so

ls/usr/local/php7/lib/PHP/extensions/no – debug – non – ZTS – 20160303 /

file redis.so path

phpredis-develop/modules/redis.so

phpredis-develop/.libs/redis.so

/usr/local/php7/lib/php/extensions/no-debug-non-zts-20160303/redis.so

three files are the same file

Configure php.ini to add after extension

extension=redis.so

restart PHP

Test redis CD

vi test.php

< ?php

$redis = new redis();

$redis-> The connect (‘ 127.0.0.1, 6379);

echo ‘Connection to server successfully’;

echo ‘Server is running:’ . $redis-> ping();

:wq

to perform the test. The PHP

php test.php

in case of Fatal error: Uncaught error: Class ‘redis’ not found

may be because running the PHP command and apache or ngnix may use a different php.ini. Even if you see redis loaded in php.ini, you also need to add redis module in php.ini to the PHP command line.

address:

1. View phpinfo in php.ini location
/usr/local/php7/etc/php.ini

2. Search the php.ini file location
/usr/local/php7/lib/

3. Cp/usr/local/php7/etc/PHP ini/usr/local/php7/lib/PHP ini
4. Restart php-fpm nginx redis

5. Execute test.php

[root@192 /]# php test.php

Connection to server successfullyServer is running:+PONG[root@192 /]#

php -m | grep redis

Oracle Net Configuration Assistant failed abnormal solution

System use oracle12c centos7 oracle data version of
about the installation of oracle database reference: https://www.linuxidc.com/Linux/2017-08/146528.htm

process is detailed
about in the process of installation disk space is insufficient, swap the size is not enough, really depend on the package please make your own problems such as baidu.
I installed the database step by step according to this tutorial and solved all kinds of problems encountered in the process one by one. Finally, I got stuck in the
Oracle Net Configuration Assistant failed
which could not be solved by all kinds of baidu methods.
In fact, this error can be caused by many reasons, so it is difficult to find the correct solution.
My final solution was to set the NLS_LANG environment variable
This variable represents the encoding of the database
Set the location to ~/.bash_profile
The value should be the third last step in the database installation process, the page with the install button
Sliding down will show the database code
After the source ~/.bash_profile takes effect, click install.
(My database is already installed, so I don’t want to install it again, so I don’t have any screenshots. It’s so hard to speak.)
Reference for database unloading:
https://blog.csdn.net/kimsoft/article/details/8129292
The main thing is to delete the files