Category Archives: How to Fix

ansible Q&A: Failed to connect to the host via ssh: ssh_exchange_identification and Authentication or per

This document documents the errors and solutions encountered in using ansible.
Problem 1:[root@hostst -10-1-241-158 logs]# ssh 10.1.241.161
Read: Reset connection by peer point
ips10.1.241.159 | out of reach! = than; {
“change”:false ,
“msg”: “Connection failed via ssh: ssh_exchange_identification: read: peer\r\n reset”.
“Access”:really
}
Executable root10.1.241.161 -m shell -a ‘pwd’
| rc=0
module failed[root@hostst -10-1-241-158 logs]# ansible ips10.1.241.161 -m shell -a ‘pwd’
ips10.1.241.161 | out of reach! = than; {
“change”:false ,
“MSG”: “Authentication failed.”
“Access”:True.
}

Positioned because.
10.1.241.161 On the host computer
vi /etc/hosts.deny
Available sshd, sftp, telnet, ftp: 10.1.241.158
How to unlock / etc/hosts.deny
161 on implementation.
service denyhosts stop
Send DenyHosts SIGTERM
vi /etc/hosts.deny, delete the corresponding host information.

Authentication failed.” The error is because the user of :/ etc/ansible /host, does not have sudo privileges on the connected host:
vi /etc/sudoers
Just add the corresponding permissions.

Ansible reporting error: “Failed to connect to host via ssh:ssh_exchange_identification:read:connection reset peer \ r \ n”
ips10.1.241.159 | out of reach! = than; {
“change”:false ,
“msg”: “Connection failed via ssh: ssh_exchange_identification: read: peer\r\n reset”.
“Access”:really
}

Solution.
Service denyhosts stop
Cat/ dev/null in / etc/hosts.deny
Question 2.
ansible execution error: authentication or permission failure
+ ansible IPSMachines -m shell – ‘pwd’
root10.1.235.28 | out of reach! = than;{
“change”: false,
“Authentication or Permissions Failed.” In some cases, you may have been able to authenticate and have no permissions to the remote directory. Consider changing the remote temporary path in the ansibl .cfg to one rooted in \”/tmp\”. The failed command is:(umask 77 &amp &mkdir -p \\” ‘ echo $HOME/.ansible/tmp/ ansibler -tmp-1536806706.35-106960540689166 ‘ \”echo $ ansible-tmp-1536806706.35-106960540689166 ‘ \”), exit result 1″.
“Access”:really
}
root10.1.235.27 | out of reach! = than;{
“change”: false,
“Authentication or Permissions Failed.” In some cases, you may have been able to authenticate and have no permissions to the remote directory. Consider changing the remote temporary path in the ansibl .cfg to one rooted in \”/tmp\”. The command that fails is:(umask 77 &amp &mkdir -p \\” echo $HOME/.ansible/tmp/ ansibler -tmp-1536806706.35-1073010745840 ‘ \”echo $ ansible-‘ tmp-1536806706.35- 10730745840 ‘ \”), exit result 1,”
“Access”:really
}

The reason for this is that the password of the ansible user on the logged in host is incorrect, or the password has expired, just change the password of the corresponding user to the correct one;

php open(/var/lib/php/session/sess_4ofxxx, O_RDWR) failed: Permission denied (13)

Meet
session_start () :
open (/ var/opt/remi php72/lib/PHP/session/sess_4ofga8ehv8s2ct2b9dnn40qtp2, O_RDWR) failed: Permission denied (13)
Error message

session_start(): open(/var/opt/remi/php72/lib/php/session/sess_4ofga8ehv8s2ct2b9dnn40qtp2, O_RDWR) failed: Permission denied (13)

Solutions:

sudo chmod 1733 [报错的session的路径]

The solution for the above example is as follows

sudo chmod 1733 /var/opt/remi/php72/lib/php/session

Refer to the article

Miscellaneous Notes (2)

Hide the scroll bar and keep the scroll effect


.outer-container {
    overflow: hidden;        // 隐藏滚动条
    width: 240px;          // 内容宽度,同时配合子元素
    height: 100%;
  }
  .inner-container {
    overflow-x: hidden; // 隐藏水平滚动条
    overflow-y: scroll;    // 产生垂直滚动
    width: 257px;       // 比父元素宽出滚动条的宽度 17px
    height: 100%;          // 设置产生滚动条
  }
  .inner-container::-webkit-scrollbar {
    display: none;            //  webkit 内核的浏览器仅需设置此属性
  }

// 另一种方法,在滚动的容器设置
.inner-container {
    margin-right: -17px;
}

错误:pathspec的字段与git已知的任何文件不匹配。

// 需要在提交时将描述信息放在两重引号中,原因疑是 git 无法识别 文件名或路径
git add .
git commit -m "'your message'"
git pull origin master
git push origin master

Check whether to jump after logging in to prevent an endless loop


router.beforeEach((to, from, next) => {
    out //判断登录状态简单实例
    var userInfo = window.localStorage.getItem('token');
    if (userInfo) {
        next();
    } else {
        next('/login');
    }
})

// 以上会发现出现如下错误:出现 dead loop错误,解决方法如下所示
// 解决思路:排除此时地址 = 转向的地址 的情况,避免dead loop
router.beforeEach((to, from, next) => {
    var userInfo = window.localStorage.getItem('token');//获取浏览器缓存的用户信息
    if(userInfo){ //如果有就直接到首页咯
        next();
    } else {
        if(to.path=='/login'){ //如果是登录页面路径,就直接next()
            next();
        } else { //不然就跳转到登录;
            next('/login');
        }

    }
})

BrowserslistError: Unknown browser major
Bootstrap.min. js normal bootstrap.min. CSS error reporting


ERROR in ./node_modules/css-loader?minimize!./node_modules/autoprefixer-loader!./node_modules/bootstrap/dist/css/bootstrap.min.css
    Module build failed: BrowserslistError: Unknown browser major
        at error (E:\project\node_modules\browserslist\index.js:37:11)
        at Function.browserslist.checkName (E:\project\node_modules\browserslist\index.js:320:18)
        at Function.select (E:\project\node_modules\browserslist\index.js:438:37)
        at E:\project\node_modules\browserslist\index.js:207:41
        at Array.forEach (<anonymous>)
        at browserslist (E:\project\node_modules\browserslist\index.js:196:13)
        at Browsers.parse (E:\project\node_modules\autoprefixer\lib\browsers.js:44:14)
        at new Browsers (E:\project\node_modules\autoprefixer\lib\browsers.js:39:28)
        at loadPrefixes (E:\project\node_modules\autoprefixer\lib\autoprefixer.js:56:18)
        at plugin (E:\project\node_modules\autoprefixer\lib\autoprefixer.js:62:18)
        at LazyResult.run (E:\project\node_modules\postcss\lib\lazy-result.js:274:20)
        at LazyResult.sync (E:\project\node_modules\postcss\lib\lazy-result.js:261:32)
        at LazyResult.stringify (E:\project\node_modules\postcss\lib\lazy-result.js:285:14)
        at LazyResult.get (E:\project\node_modules\postcss\lib\lazy-result.js:334:25)
        at Object.module.exports (E:\project\node_modules\autoprefixer-loader\index.js:55:35)

Solutions:

// Edit node_modules\bootstrap\package.json: Remove these lines:

"last 1 major version",
">= 1%",

Use the font – awesome webpack – vue
NPM installs font-awesome and any dependencies it requires


npm install less less-loader css-loader style-loader file-loader font-awesome --save

Globally register font-awesome in the entry file


import 'font-awesome/css/font-awesome.min.css';

Configure the parsing


{
    test: /\.(gif|jpg|jpeg|png|woff|svg|eot|ttf)\??.*$/,
    loader: 'url-loader?limit=1024'
},

Iview navigation component: after the current page is selected, click refresh or click the browser back button, the selected navigation bar disappears


在vuex的 state 存储 active-name,根据路由用 computed 取出 active-name

Reproduced in: https://www.cnblogs.com/anani/p/9643819.html

How to remove the message “Membership credential verification failed.” displayed in the Event Log

如果您在项目的错误日志中收到此错误,这里是它的描述和解决方案。
先决条件:应用程序必须具有基于实现的表单身份验证方法的自定义登录功能。此外,必须使用用于角色、用户和成员的内置功能。
问题:可见的问题是用户无法登录到应用程序,在事件查看器中出现以下错误(Start ->控制面板→管理工具→事件查看器):
事件查看器中的错误:
事件代码:4006
事件消息:成员证书验证失败。
事件时间:28/08/2006 12:30:12
事件时间(UTC): 28/08/2006 09:30:12
事件ID: 04b22a752da345baabe19236fb25675f
事件序列:2
事件发生:1
事件详细代码:0
事件详细代码:0
事件详细代码:0
事件发生:1
事件详细代码:0
事件详细代码:0
这里是解决方案:“aspnet_Applications”数据库表中的“ApplicationName”值和web中所有提供者的“ApplicationName”属性值。配置(成员资格提供程序、角色提供程序、配置文件提供程序等)必须具有相同的值。

转载于:https://www.cnblogs.com/dimg/archive/2008/12/03/1346373.html

Xcode: error: linker command failed with exit code 1(use -v to see invocation) or libstdc++.6.0 is missing

Note: Refer to the first link
The reason for the error is that iOS10 deleted the libstdc++.6.0.9 library file after the upgrade, so you just need to download it and put it in.
1. Download libstdc++. 6.0.9. TBD
Download Address:
https://pan.baidu.com/s/10gZrtGtspgpKT7qSY-bBDg
2. Download and note that the file name may not be this change file named libstdc++.6.0.9. TBD
3. Place the download file in the specified location
(1) Real machine runtime location
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
(2) Location of the simulator runtime library
/ Applications/Xcode. App/Contents/Developer/Platforms/iPhoneSimulator platform/Developer/SDKs/iPhoneSimulator SDK/usr/lib
(access – to – & gt; Go to folder -& GT; Copy the above location go to find the location and then paste the downloaded file into the lib file and restart Xcode.)

Reference link:
https://blog.csdn.net/w1035524412/article/details/82863840
https://www.jianshu.com/p/a3f3c8361cf1

Registering in Windows10 regsvr32 xxx.ocx reported an error but the call to DIIRegisterServer failed with error code 0x80040200…

There is a machine to read the resident id card on the website. It needs to install some registered activeX controls
and then enter the specified directory to execute the following command
regsvr32 XXX. Ocx
reported an error:
but the call to DIIRegisterServer failed with error code 0x80040200

 
Baidu once, found the reason is very simple, need to use the administrator identity to run
Type CMD from the control panel and right click Run as Administrator

This time it worked
 

Reproduced in: https://www.cnblogs.com/qianjinyan/p/9405534.html

Modify the screen resolution after installing Ubuntu 16.04 (xrandr: Failed to get size of gamma for output default)

Ubuntu 16.04 has only one option after installation, 1024×768. Using the xrandr command has an error:

xrandr: Failed to get size of gamma for output default

You can’t set it using the CVT command, nor can you modify xorg.conf.
Solutions:

打开:/etc/default/grub
搜索:#GRUB_GFXMODE=640x480
编辑:640x480 改成你想要的分辨率,并取消前面的#
例如:GRUB_GFXMODE=1920x1080 
更新:sudo update-grub
重启: reboot

If the above method has not been solved, then there is another situation is the video card driver has not been installed, the need to reinstall the video card driver can solve the above problem.

mac Upgrade: httpd: apr_sockaddr_info_get() failed for bogon

Apache server startup prompt HTTPD: apr_sockaddr_info_get() failed for

Apache server startup prompt HTTPD: apr_sockaddr_info_get() failed for
After configuring Apache on RedHat Linux 5 and CentOS 5 servers, always report an error when starting or closing:
HTTPD: apr_sockaddr_info_get() failed for XX (host name)
HTTPD: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
does not affect the normal start of apache though say! But it always felt like there was something wrong. Because an Apache startup process is stuck in the process
Found under the data, the original is the host name setting is not caused! Not in the/etc/HTTPD/conf/HTTPD. Set the ServerName conf so it will use the name of the host to replace, will first go to have a host defined in/etc/hosts.
. To solve this problem, set ServerName or enter your host name MYHOST in /etc/hosts, like this:
> Vi /etc/hosts
127.0.0.1 localhost.localdomain localhost XX (host name)
The command to view the hostname is: hostName
 
Additional errors that may occur:
Stopping HTTPD: [root@bogon xy]# service HTTPD restart
restart HTTPD: [OK]
Stopping HTTPD: [OK]
restart HTTPD: HTTPD: apr_sockaddr_info_get() failed for bogon
HTTPD: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Solutions:
Remove the # before ServerName from httpd.conf.
RedHat 5 with CentOS in the configuration file in/etc/HTTPD/conf/HTTPD. Conf. (this is the default operating system installation path)

Browser prompt: Source mapping error: request failed with status 404 Source URL: http://xxx.js Source mapping URL: jquery.min.map

Browser Jquery1.9.1 min.js newspaper script error no jquery.min.map file
 
I recently encountered this problem when Browsing personal websites
Let me first say what a Source map file is.
Source map file is after js file is compressed, the variable name of the file replaces the corresponding, variable location and other metadata data file, generally this file and min.js main file are placed in the same directory.
Such as the original variable is the map after compression, compressed by variable substitution rules may be replaced with a, then the source map file will keep a record of the mapping information, so that the benefits of that is to say, at the time of debugging, if there is some JS error, then the browser will by parsing the map file to merge compressed JS, the developers can use the code to debug, uncompressed, this will bring us a lot of convenience!
Solutions:
Remove the sentence “// @sourcemappingURL =jquery.min.map”

 
 

springboot : Failed to decode downloaded font 和 OTS parsing error

Hello, I’m Roast Duck:
I have seen many people who have similar problems with me, but they have not solved my problems:

Failed to decode the listed font and OTS Parsing Error:
Trying to move the wOFF file to another static resource folder that can be loaded, it still cannot be loaded.
The browser opens access directly to the login page. The guess is that the static resource for the font is blocked.
 
Please refer to this:
https://stackoverflow.com/questions/34037051/spring-boot-font-awesome-ots-parsing-error-failed-to-convert
Pom upon & lt; exclude> And & lt; include>


pom add < nonFilteredFileExtensions>
As shown in figure

Execution failed for task ‘:app:processDebugManifest’

Import packages butterknife package appear [androidx. Core: the core: 1.0.0] AndroidManifest. XML: make haste – 86 value = (androidx. Core. App. CoreComponentFactory)

Butterknife package latest address: https://github.com/JakeWharton/butterknife
implementation ‘com. Jakewharton: butterknife: 10.0.0’
annotationProcessor ‘com. Jakewharton: butterknife – compiler: 10.0.0’

Error details
Manifest merger failed : Attribute application @ appComponentFactory value = (. Android support. The v4. App. CoreComponentFactory) from [com. Android. Support: support – compat: 28.0.0] AndroidManifest. XML: make haste – 91
is also present at [androidx. Core: the core: 1.0.0] AndroidManifest. XML: value = “- 86 (androidx. Core. App. CoreComponentFactory).
the Suggestion: Add ‘tools: replace = “android: appComponentFactory” element to the at AndroidManifest. XML: 5:5 – the sons to override.

Solution 1: Add useAndroidX and enableJetifier as shown in the figure

android.useAndroidX=true
android.enableJetifier=true

Note:
this method does not need to add the classpath ‘com. Jakewharton: butterknife – gradle – plugin: 10.0.0’
but will import android. Support. V7. App. AppCompatActivity modified into import androidx. Appcompat. App. AppCompatActivity
is also all references Androidx package

Solution 2: Use the lower version of the package directly, as shown in the figure
Delete the build.Gradle plug-in at the top of the module, either one of the two below

apply plugin: ‘com.neenbedankt.android-apt’
apply plugin: ‘android-apt

The dependency in build.gradle under module is changed to :(only these two are needed)
// butterknife component injection

implementation'com.jakewharton:butterknife:8.6.0'
annotationProcessor'com.jakewharton:butterknife-compiler:8.6.0'

Note: the use of android package or the original
import android. Support. V7. App. AppCompatActivity