Tag Archives: operating system

Net start command system error 5 and error 1058 solution

Source: http://blog.csdn.net/u012586848/article/details/46860839

1. Net start command

The net start command is used to start the service in the form of net start [service name] (the corresponding “net stop [service name]” is the command to close the service)

2. Open the default instance service of sqlserver

[win + R] shortcut – & gt; CMD – & gt; net start MSSqlServer

Prompt error “system error 5 occurred”, the screenshot is as follows:

3. Error analysis

The reason for this error is that there is a difference between the administrator and non administrator permissions in win7/win8 command prompt, and the net stat command can only be run under the administrator permission.

4. Solutions

1) Open the command prompt with administrator’s permission: [start] — & gt; search for “CMD” — & gt; right click “run as administrator”, or use the shortcut key [win + X + a]

2) Enter “net start MSSqlServer” successfully. The screenshot is as follows:

note appended:

The above method can solve the “system error 5 access denied” error of the “net start” command, but it may still not be able to open the corresponding service, prompting “error 1058”, as shown in the figure below:

As shown in the error prompt in the figure, the reason may be that MS SQL server has been disabled or its associated device has not been started. For MSSqlServer service, find the “MSSqlServer” service in control panel — & gt; management tools — & gt; services, double-click to open properties, and select the dependency tab to see that the service has “no dependency”. Therefore, the reason of “other associated devices are not started” is excluded, as shown in the following figure

Switch the properties window to the General tab, and you can see that the service status is “stopped” and the start type is “disabled”. Change the start type to one of the other three items besides “disabled” – & gt; [OK].

Reference source:

one http://answers.microsoft.com/zh-hans/windows/forum/windows8_ 1-performance/%E8%BF%90%E8%A1%8Cnet-start/bec244e5-6385-4950-adc8-0d004905e41a?auth=1

two http://www.2cto.com/database/201304/200600.html

Android ADB command adb devices error: protocol fault (no status)

Background:Installation of apk times error:protocol fault<no status>or error:device not found phone driver problems

The problem appears as follows: ADB Devices – L or ADB Devices

Solution 1
Windows:
The task manager sees the ADB process, closes it, and restarts ADB Start-Server.
Linux (My machine is Ubuntu)
Execute the command
gnome-system-monitor
Open task Manager and close adb’s.
Solution 2:

1, after launching the emulator.
2, enter the cmd command, and enter the cd D:\Android\sdk\platform-tools directory (Note: the reality is subject to the situation, here must enter the adb storage directory).
D:\android\sdk\platform-tools>adb kill-server #Shut down the service.
D:\Android\sdk\platform-tools>adb start-server #Restart the service.
Note: Checking related information on the Internet, we found the cause of this problem: The emulator will be idle for a period of time, which will cause an exception.

Solution Three.
Try again with a different phone.

My problem is due to a failed phone driver installation, it could be a data cable issue, but strangely doesn't affect my Appium!

Configure: error: Cannot find libz error appears when brew installs php70

This article from the PHP ecshop secondary development blog, please be sure to keep this from http://phpecshop.blog.51cto.com/6296699/1883448

According to the tutorial “New Installation of Mac OS Sierra (10.12) and using HomeBrew to install ZSH + MNMP (Mac + Nginx + Mysql + Php) Development environment”, there was an error in using BREW to install PHP70 on the Mac.

brew install php70 --with-debug --with-gmp --with-homebrew-curl --with-homebrew-libressl --with-homebrew-libxml2 --with-homebrew-libxslt --with-imap --with-libmysql --with-mysql

Error message:

configure: error: Cannot find libz

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/josegonzalez/homebrew-php/issues

/usr/local/Homebrew/Library/Homebrew/utils/github.rb:226:in `raise_api_error': Validation Failed (GitHub::Error)
    from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:184:in `open'
    from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:233:in `issues_matching'
    from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:266:in `issues_for_formula'
    from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:325:in `fetch_issues'
    from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:321:in `issues'
    from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:383:in `dump'
    from /usr/local/Homebrew/Library/Homebrew/brew.rb:133:in `rescue in <main>'
    from /usr/local/Homebrew/Library/Homebrew/brew.rb:31:in `<main>'

Solutions:


$ xcode-select --install


$ brew install php70 --with-debug --with-gmp --with-homebrew-curl --with-homebrew-libressl --with-homebrew-libxml2 --with-homebrew-libxslt --with-imap --with-libmysql --with-mysql

Fixed

Reference link:
http://stackoverflow.com/questions/39442552/5-boxen-errors-when-running-boxen-our-boxen

Win32 Disk Imager Error 5: Access is Denied solution

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ An error when you are trying to write data to handle in Win32, error: An error occurred when you need to write data to handle
The solution: Format the SD memory card with THE SD Memory Card Formatter and then write the image file to the Win32 tool
Specific steps:
A, download SD memory card formatter software
the official download url: https://www.sdcard.org/downloads/formatter_4/
pay attention to choose to suit your operating system software
2, install the SD memory card formatter and open the configuration
to select the disk where your SD card is located (usually when you insert the card)
to select the Overwrite format (this is very important!)
Volume label
Volume label


click “Format” to start formatting, it usually takes 10 minutes
formatting is finished, you will find that your disk is completely empty, there are no files
3. Open Win32 again and write the image file to the disk where the SD card is located. No error will occur (click Yes to continue writing)

Strong name validation failed solution

If you are a 64-bit operating system, and you encounter the following exceptions:
Could not load file or assembly ‘[Your file], Version=[version], Culture=neutral, PublicKeyToken=[public key token]’ or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
 
#1 Start the command-line tool as an administrator.
Locate the directory where SN. exe is located. For example, the directory of Visual Studio 2013 is: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64.
Execute the command SN-VR *,[public key Token].
 
Reference:
http://blogs.msdn.com/b/shitals/archive/2008/05/01/8446582.aspx

Reproduced in: https://www.cnblogs.com/Erik_Xu/articles/4196113.html

failed: Too many links (How to Fix)

Received feedback today that some files failed to synchronize. Looking at the logs found:

rsync: recv_generator: mkdir "/app/data/ckl/ckli2780581" failed: Too many links (31)
*** Skipping any contents from this failed directory ***
    enter the relevant directory to establish file:
cd /app/data/ckl/
mkdir vd

Report the same error:

failed: Too many links

2. Check the directory

ls /app/data/ckl | wc -l
31998

The sheer number of directories may be a limitation of the file system
3. Check the file system

 df -lhT
Filesystem                       Type  Size  Used Avail Use% Mounted on
/dev/sda1                        ext3  7.9G  4.9G  2.7G  65% /

It was ext3

is roughly as follows:

nclude/linux/ext2_fs.h:#define EXT2_LINK_MAX           32000
include/linux/ext3_fs.h:#define EXT3_LINK_MAX           32000

Why 31,998?This is because when mkdir creates a directory, two subdirectories are created by default, one is. The directory (representing the current directory), and the other one is.. Directory (representing the parent directory). These two subdirectories are not deleted, “rm.” will get “RM: cannot remove ‘.’ or ‘.. ‘”. So 32000-2 = 31998.
Solution:
Ext4 has no limit on the number of directories
Mount a new disk to establish a connection to the directory
The script is as follows:

#!/bin/bash
CUR_DAY=`date +%Y%m%d`
SRC_DIR=/app
DST_DIR=/data

fdisk /dev/vdc <<EOF
	d               
	n             
	p               
	1  
	1              
               
	t              
	83             
	w  
EOF  

echo
echo "star create vg and lv..."
pvcreate /dev/sdc1
if [ $? -eq 0 ];then
	vgcreate data-volume /dev/vdc1
	if [ $? -eq 0 ];then
		lvcreate -L 99G -n s1_data data-volume
	else
		echo "lv create failed!"
		exit 1
else
	echo "vg create failed !"
fi
mkfs -t ext4 /dev/data-volume/s1_data

mount /dev/data-volume/s1_data ${DST_DIR}
cp -a ${SRC_DIR}/data ${DST_DIR}
mv ${SRC_DIR}/data ${SRC_DIR}/data_bak/
ln -s ${DST_DIR}/data/ ${SRC_DIR}/data

Win 10 System Restore Fail 0x80070091

Question:
The following about says it all. I have tried SysRes from both sides and failed.
System Restore did not complete successfully. Your computer’s system files and
The settings have not changed.
Details:
System restore fails when restoring a directory from a restore point.
Source:AppxStaging
Target: %ProgramFiles%\WindowsApps
An unspecified error occurred during system recovery. (0 x80070091)
The two attempts come from:Select different recovery points to show more backups of the recovery point type. I really need this function to work. Is there a solution?

Answer:
Renaming the folder WindowsApps, restarting the system and trying system recovery should fix the problem.

1. Download an iso image file of Win10 (the official original).
2. use ultraiso to write the image to U disk (method baidu)
3. Use the boot sequence provided by the BIOS to switch, boot from the USB flash drive, and wait patiently.
4. After selecting the language next, on the second screen in the lower left corner, tap "Repair Computer (R)", tap "Troubleshooting", tap "Command Line Prompt".
  Typing in the order.
  c:
  cd "Program Files"
  md "WindowsApps-"
  xcopy "WindowsApps" "WindowsApps-" /s /e /y /h
  rd "WindowsApps"
  Close the command line window, click "Troubleshooting", click "System Restore", and then execute OK.

I described a solution Windows 10 1607 version:System recovery error 0x80070091 [fixed] here.
Add:This issue seems to have been fixed in the Windows 10 creator update. There is a batch file to fix this issue. For more information, see:
Message about System Recovery Error 0x80070091.

From:https://answers.microsoft.com/en – us/windows/forum/windows_10 update/win – 10 – system-restore-failure- 0 – x80070091/7f690ec3 a3da – 4 – c14 – 90 – fd – 3 – eb0ba83f4ac

[Windows] Socket Server Failed to bind, error 10048

Addresses that are already in use.
Normally, each socket address (protocol/IP address/port) is allowed to be used only once.
This error occurs if the application tries to bind a socket to an IP address/port that is already in use for an existing socket, or a socket that is not properly closed, or is still in the process of being closed.
For server applications that need to bind multiple sockets to the same port number, such as when a client process is taskkill and starts again, consider using setsockopt (SO_REUSEADDR).
Client applications usually do not need to call bind-connect to automatically select an unused port. When calling bind with a wildcard address (including ADDR_ANY), the WSAEADDRINUSE error may be delayed until a specific address is committed. This may occur later when another function is called, including connect, listen, WSAConnect, or WSAJoinLeaf.

        BOOL bOptVal = TRUE;
        int bOptLen = sizeof(BOOL);
        iResult = setsockopt(ListenSocket, SOL_SOCKET, SO_REUSEADDR, (char *)&bOptVal, bOptLen);
        if (iResult == SOCKET_ERROR)
        {
            char m[500];
            snprintf(m, 500, "%s %d: setsockopt failed, port %d failed with error: %d",
                __func__, __LINE__, port_number, WSAGetLastError());
            printf("%s\n", m);
            freeaddrinfo(result);
            closesocket(ListenSocket);
            WSACleanup();
            return -1;
        }

https://docs.microsoft.com/en-us/windows/desktop/api/winsock/nf-winsock-setsockopt

Reproduced in: https://www.cnblogs.com/liujx2019/p/10811330.html

Exchange 2016 OWA login exception

today, I received an alert message from the script. There is an Exchange server OWA that cannot log in!

did a manual test and found a real problem with the following error message:

check the logs for this server and find the following information

1. The request to access OWA has received 500 internal server error at the HTTP level (error refers to the OWA backend problem)


(2) POST /owa/auth.owa & ClientId=D743AEEDADF24394B3932A43FD81A704& CorrelationID=< empty>; & cafeReqId=4d419796-dfb2-4242-bfc3-33558bd9c81c; & encoding=; 443 test0001 127.0.0.1 Mozilla/5.0 + + Windows NT + 6.3; +WOW64; Trident +/7.0; + the rv: 11.0) + + Gecko like https://localhost/owa/auth/logon.aspx?replaceCurrent=1& ureason=5& reason=0 302 0 0 0

2018-10-19 02:377.0.0.1 GET /owa & ClientId=D743AEEDADF24394B3932A43FD81A704& CorrelationID=< empty>; & ClientRequestId=636755132782181904& cafeReqId=62c96cbe-fa86-42dd-afde-30ba14ededb5; & encoding=; 443 test0001 127.0.0.1 Mozilla/5.0 + + Windows NT + 6.3; +WOW64; Trident +/7.0; + the rv: 11.0) + + Gecko like https://localhost/owa/auth/logon.aspx?replaceCurrent=1& ureason=5& reason=0 500 0 0 31

2, then get the OWA terminal display error

NegotiateSecurityContext failed with for host ‘bjmail6.sohu-inc.com’ with status ‘LogonDenied’

3. Check the Event log

Event ID 1309 is from the Web Event of ASP.NET 4.0.30319.0, the specific information is as follows (the author selects the problem section for demonstration)

through the analysis of the log, I found that Thread account name was actually my domain account, which is obviously wrong, the correct one should be the SYSTEM account

by the above three concludes that the problem should be Exchange, OWA problem back-end IIS virtual directory

check my IIS configuration

found the problem, OWA’s physical path credentialis actually my account, the correct configuration here is

reconfigure and restart IIS or OWA application pool. After the restart, test again and find that the user can access normally. After observation for a period of time, the above problem log does not appear again, and then the problem is considered to be solved successfully.

reproduced in: https://www.cnblogs.com/zhr1217/p/9835445.html

Rsync: failed to exec SSH: no such error in remote Rsync

1. Transfer the file /etc/hosts to 10.41.1.77/MNT /
[root@backup ~]# rsync-avz /etc/hostess-p 22′ [email protected]:/ MNT /
rsync: Failed to exec SSH No to the file or directory (2)
rsync error: error in the IPC code (code 14) at pipe. C (84) [sender = 3.0.6]
rsync: connection unexpectedly closed (0 bytes received so far) (sender)
rsync error: Error in IPC code (code 14) at io.c(600) [sender=3.0.6]
### # check the reason is that SSH client has not been installed ### # br>[root-backup MNT]# yum install openssh-counts-y
[root-@backup MNT]# rsync avz /etc/hosts-p 22′ [email protected]:/MNT/
The authenticity of host ‘10.41.1.77 (10.41.1.77)’ can ‘t be established.
RSA key fingerprint is: 85 4 f: when d: 41: e2: fb: eb: 88: e2: ba: ce: 4 e: 5 a: 49: c4.
Are you sure you want to continue connecting (yes/no)?Yes
Warning: Permanently added ‘10.41.1.77’ (RSA) to the list of known hosts.
[email protected]’s password:
bash: rsync: command not found: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: Remote command not found (code 127) at IO. C (600) [sender=3.0.6]
[root-@backup MNT]# rrm-qa rsync
rsync 3.0.6-12. El6.x86_64
prompt bash: rsync: Rsync program
client installer
[root-@nfs01 MNT]# yum install rsync-y
retransmit
[root-@backup MNT]# rsync-avz /etc/hosts-ssh-p 22′ [email protected]:/ MNT /
[email protected]’s password:
sending incremental file list
hosts

sent 196 bytes received 31 bytes 41.27 bytes/ SEC
total size is 309 speedup is 1.36
target computer check to see if the transmission was successful
[root@nfs01 MNT]# ls
hosts
chuan successfully

reproduced in: https://blog.51cto.com/11956937/2067602

Ubuntu cannot access USB device, failed to create a proxy device for the USB device

Ubuntu cannot access the USB device, Failed to create a proxy device for the USB device

method one: trying to install VirtualBox Extension Pack, address: https://www.virtualbox.org/wiki/Downloads. The WARNING in USB setting will disappear. Also: All warnings of Virtual Box should be alert and try to handle, or the OS inside the sandbox will be buggy.


method failed, try: https://superuser.com/questions/1136607/virtualbox-usb-capture-issue-windows-7-host-guest