Category Archives: How to Fix

Real machine debugging error error = = error domain = nsurlerrordomain code = – 1009 “seems to have disconnected from the Internet. “

Real machine debugging error error = = error domain = nsurlerrordomain code = – 1009 “seems to have disconnected from the Internet. ”

Please note that the error code is – 1009, there are many websites on the Internet about the error code of network link query, query, you will find that

-1009

kCFURLErrorNotConnectedToInternet

NSURLErrorNotConnectedToInternet

“The connection failed because the device is not connected to the internet.”

The connection failed because the device is not connected to the “Internet.” that’s right. My real machine forgot to link to WiFi (I think you know what to do next, turn on the mobile phone to link to WiFi). This kind of low-level mistake can also be made. There are 10000 grass mud horses running in my heart. Here, the blogger warns the development team-mates to be careful and don’t bury their own pits!

Unknown error: cannot find chrome binary when running selenium under Linux

For Linux system, running Selnium script will report the following error

Traceback (most recent call last):
  File "./obp_pb_get_csv.py", line 73, in <module>
    browser = webdriver.Chrome('/usr/bin/chromium') # Get local session of chrome
  File "/usr/lib64/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 46, in __init__
    self.service.start()
  File "/usr/lib64/python2.7/site-packages/selenium/webdriver/chrome/service.py", line 64, in start
    raise WebDriverException("Can not connect to the ChromeDriver")
selenium.common.exceptions.WebDriverException: Message: 'Can not connect to the ChromeDriver'

Solution:

1. Confirm whether Chrome browser is installed, command: Chrome browser - version 0

2. If not, use the following command to install: sudo apt get install chromium browser

3. Get chromedriver and visit the following link http://chromedriver.storage.googleapis.com/index.html

4. Decompress Chromdriver.zip

5. Move the file to the path/usr/bin, command: sudo MV chromedriver/usr/bin

6. Switch to/usr/bin directory, command: CD/usr/bin

7. Make it executable, command: sudo Chmod a + X chromedriver

8. Perform the following code tests:

from selenium import webdriver

driver = webdriver.Chrome()
driver.get("http://www.google.com")
print driver.page_source.encode('utf-8')
driver.quit()
display.stop()

 

Error: getaddrinfo enoent error resolution

error: getaddrinfo enoent error resolution

When NPM run dev is used to run Vue project, error: getaddrinfo enoent is reported as follows:

Cause of the problem:

Localhost is not bound to 127.0.0.1

resolvent:

Find the hosts file in C:// Windows/system32/Drivers/etc , add 127.0.0.1 to the hosts file, and save it, as shown in the figure below:

Spark shell startup error, error: not found: value spark (low level solved)

Check the reason for the error: java.net.BindException : Cannot assign requested address: Service ‘sparkDriver’ failed after 16 retries (starting from 0)! Consider explicitly setting the appropriate port for the service ‘sparkDriver’ (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries .

When I wipe it, I can’t find the corresponding host. Then I go to see if there is something wrong with the mapping of the hosts file,
sure enough.
Previously, in order to access the Internet, IP was changed to DHCP (dynamic), so the current IP and hosts files are inconsistent.

After changing the hosts file. 666, you can go in again.

macOS Install Homebrew Error LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

Installation

curl "https://nodejs.org/dist/latest/node-${VERSION:-$(wget -qO- https://nodejs.org/dist/latest/ | sed -nE 's|.*>node-(.*)\.pkg</a>.*|\1|p')}.pkg" > "$HOME/Downloads/node-latest.pkg" && sudo installer -store -pkg "$HOME/Downloads/node-latest.pkg" -target "/"

report errors

==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.

solve:

// Execute the following command to replace the image with the CAS image.
git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

// Set the mirror address of homebrew-core to the CAS domestic mirror as well

cd "$(brew --repo)" 

git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" 

git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

// UPGRADE
brew update

// USE
brew install node

How to Solve Error: The requested URL returned error: 401 Unauthorized while accessing

Problem
Reported error: error: The requested URL returned error: 401 Unauthorized while accessing
git version: 1.7.1

Solution 1: Specify the user
git clone https://github.com/org/project.git
Replace it with
git clone https://[email protected]/org/project.git
or
git clone https://username:[email protected]/org/project.git
If it appears in push or pull, you need to change the remote address
git remote-set-url origin https://[email protected]/org/project.git

Solution 2: Remove authentication
git config -global http.sslverify false

Solution 3: (recommended)
Upgrade git to version ≥ 1.7.10

Solution 4
Add ssh secret key

After the eclipse Android virtual machine starts, an error will be reported: similar to SDK manager devices.xml Solution

Android SDK is updated with Android SDK manager. ADT is installed on eclipse to develop Android. Now, an error is reported every time eclipse is opened, and an error is also reported every time virtual machine is opened. The wrong information is the same.

The error information is as follows:
[2015-05-30-10:14:35 – Android SDK] error when loading the SDK:Error : Error parsing D:/android-sdks/system-images/android-22/android-wear/armeabi-v7a/ devices.xml
CVC complex type. 2.4. D: found invalid content starting with element’d: skin ‘. There should be no child elements here.
Error: Error parsing D:/android-sdks/system-images/android-22/android-wear/x86/ devices.xml
CVC complex type. 2.4. D: found invalid content starting with element’d: skin ‘. There should be no child elements here

——————————————————————————————————————————————————-

Enter the SDK directory and add D/android-sdk/system-images/android-22/android-wear/armeabi-v7a/ devices.xml And D/Android SDK/system images/android-22/Android wear/x86/ devices.xml Delete the file, and then delete the devices.xml Copy it to the folder you deleted, restart eclipse, and solve the problem
then

The solution of transaction check error when installing Gnome with Yum command

Question:

Installing and downloading graphical interface Gnome

Yum groupinstall “desktop”
Yum groupinstall “X window system”
Yum groupinstall “Chinese support” (optional)

The screenshot of the later error is as follows:

resolvent:

Use the command: Yum remove networkmanager-1: 0.8.1-43.el6.x86_ 64 first delete the conflicting package shown in the red box in the above screenshot.

Content rendering error: a solution to the problem of zero Download document cannot be opened

    the version of zero is: 0.6.1 problem: after downloading zero, if HTML documents (CSS and other parts of documents) are installed, the following error will be reported when double clicking to open it
    solution

      view your own document download location and enter the directory
      . You can see the directory with installed documents in my directory
      , Enter the path under the document directory: contents/resources/documents\ developer.mozilla.org \For example: e: software, zero, docsets\ HTML.docset \Contents\Resources\Documents\ developer.mozilla.org \Delete react in static/build/JS- main.ddbbd86b0685 . JS, and then reopen the file, and click the document to find that can be used

Modify grub to solve computer startup error: error 17

Modify grub to solve computer startup error: error 17

The original computer has C, D, e, F, G. C disk, windows system disk and G disk are installed with CentOS. Later, due to the need to compress the volume of the way from the D disk compressed out of an H disk. Then when I started the computer again, I encountered an error: error 17

The reason:
is that windows is installed first and then Linux is installed. In this way, grub is booted by CentOS on disk g. now a new logical partition is divided before the partition, which causes the disk system symbol to move backward by one bit. Therefore, grub fails.
Solution:
1, burn a Linux Installation U disk, enter BIOS, modify boot items, and boot from U disk.
2. I use RedHat 7.0. After the U disk is started, enter the troubleshooting option, and then enter the rescue a @ #% $%. Enter all the way to shell mode.
3. In shell mode, use fdisk – L to view all partitions of the computer, and find that the original CentOS partition is sdb9. Grub command enters grub, root (hd1,8) command specifies partition, setup (HD1) installs grub to corresponding partition, and quit grub.

At this time, boot the hard disk again, and you can already see grub. But only windows can start, CentOS will report error, error 17, cannot mount

4. Start the U disk again and enter the shell mode under rescue. Check the grub configuration file of Linux system to see if there is any problem. I have a look, and there is no problem.

#mkdir linux
#mount /dev/sdb9 linux
#cd linux
#cd grub
#vi grub.conf

5. Start the hard disk, enter grub interface, move the cursor to the startup option of Linux, press e key to modify the startup sequence. Change the root (hd0,7) option to root (hd0,8) and enter. It’s ready to start.

New skills get!