我在ubuntu上使用npm v1.0.104/node 0.6.12 - 我在尝试通过npm安装任何新模块时收到下面复制的错误(我之前使用http测试了socket.io,而不是https但是我想知道是否可以导致npm/unsigned certs的问题).一旦npm尝试解析' https: //registry.npmjs.org'URL,该错误就会弹出.无论如何我可以忽略错误或者可能找到/添加证书到受信任的商店以继续使用npm.
任何有关解决问题需要做什么的见解都将受到赞赏(我希望通过配置来解决问题,而不是在可能的情况下重新安装).
错误:"错误:SSL错误:SELF_SIGNED_CERT_IN_CHAIN"
完整消息:
npm ERR! Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN
npm ERR! at ClientRequest.<anonymous> (/usr/lib/node_modules/npm/node_modules/request/main.js:252:28)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! at CleartextStream.ondata (http.js:1150:24)
npm ERR! at CleartextStream._push (tls.js:375:27)
npm ERR! at SecurePair.cycle (tls.js:734:20)
npm ERR! at EncryptedStream.write (tls.js:130:13)
npm ERR! at Socket.ondata (stream.js:38:26)
npm ERR! at Socket.emit (events.js:67:17)
npm ERR! Report this *entire* log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or …
Run Code Online (Sandbox Code Playgroud) 我正在使用ansible 2.1.我有以下清单主机文件和一个需要访问主机文件变量的播放器调用的角色.有关如何访问它的任何想法(目前收到错误):
主机文件
[test1]
test-1 ansible_ssh_host=abc.def.ghi.jkl ansible_ssh_port=1212
[test2]
test2-1 ansible_ssh_host=abc.def.ghi.mno ansible_ssh_port=1212
[test3]
test3-1 ansible_ssh_host=abc.def.ghi.pqr ansible_ssh_port=1212
test3-2 ansible_ssh_host=abc.def.ghi.stu ansible_ssh_port=1212
[all:children]
test1
test2
test3
Run Code Online (Sandbox Code Playgroud)
角色 我试图访问在以下时尚的作用:
{{ hostvars.ansible_ssh_host }}
Run Code Online (Sandbox Code Playgroud)
&&
{{ hostvars.test1.ansible_ssh_host }}
Run Code Online (Sandbox Code Playgroud)
我试图访问test1部分中的ansible_ssh_host.
错误
fatal: [localhost]: FAILED! => {"failed": true, "msg": "'ansible.vars.hostvars.HostVars object' has no attribute 'ansible'"}
Run Code Online (Sandbox Code Playgroud) 我正在尝试在ubuntu 11上安装play framework 2.0.1.我已经添加了在ubuntu中播放的路径,我已经配置了SUN JRE 1.6(java/javac)并且我已经为播放脚本提供了读/写/执行权限.但是,当我运行'play help'时,我仍然得到下面复制的错误 - 播放目录应该只包含'documentation','repository','framework'和'samples'子目录,或者它是否还包含其他子目录.任何有用的建议都会受到欢迎.
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:900)
at xsbt.boot.Locks$.apply0(Locks.scala:34)
at xsbt.boot.Locks$.apply(Locks.scala:27)
at scala.collection.mutable.FlatHashTable$class.$init$(Proxy.scala:32)
at xsbt.boot.Launch$ScalaProvider.<init>(Launch.scala:110)
at xsbt.boot.Launch$$anonfun$1.apply(Launch.scala:84)
at org.apache.ivy.plugins.namespace.NamespaceRule.newEntry(Cache.scala:17)
at org.apache.ivy.plugins.namespace.NamespaceRule.apply(Cache.scala:12)
at xsbt.boot.Launch.getScala(Launch.scala:86)
at xsbt.boot.Launch$.run(Launch.scala:49)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:43)
at xsbt.boot.Launch$.launch(Launch.scala:68)
at xsbt.boot.Launch$.apply(Launch.scala:14)
at xsbt.boot.Boot$.runImpl(Boot.scala:25)
at xsbt.boot.Boot$.main(Boot.scala:15)
at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.io.IOException: No such file or directory
Run Code Online (Sandbox Code Playgroud) 我正在使用GRPC-Java 1.1.2。在一个活跃的GRPC会话中,我打开了一些双向流。当客户端断开连接时,是否可以从客户端清除它们?当我尝试断开连接时,我运行以下查找固定次数,然后断开连接,但是我在服务器端看到以下错误(虽然不确定是否是由另一个问题引起的):
与客户端断开连接
while (!channel.awaitTermination(3, TimeUnit.SECONDS)) {
// check for upper bound and break if so
}
channel.shutdown().awaitTermination(3, TimeUnit.SECONDS);
Run Code Online (Sandbox Code Playgroud)
服务器错误
E0414 11:26:48.787276000 140735121084416 ssl_transport_security.c:439] SSL_read returned 0 unexpectedly.
E0414 11:26:48.787345000 140735121084416 secure_endpoint.c:185] Decryption error: TSI_INTERNAL_ERROR
Run Code Online (Sandbox Code Playgroud) 是否有人知道如何在使用socket.io时配置nagle的算法(开或关)?
这个选项是否随socket.io一起提供?
我假设默认行为配置为使用nagle算法(如果我错了请纠正我).
理想情况下,我希望在不同的应用程序中根据需要使用socket.io来配置nagle的算法(开/关) - 无论我使用哪个Web/app服务器.
谢谢!
我试图确认是否可以通过node-solr使用多面搜索。有没有人将Solr功能与nodejs一起使用,如果可以,您是否可以指向显示该功能的在线资源/共享示例代码。
谢谢
我正在使用play framework v2.2.1并在我的build.sbt文件中包含以下内容.
解析器:
Resolver.url("play-redis", url("http://repo.typesafe.com/typesafe/releases/com/typesafe/play-plugins-redis_2.9.1/2.0/"))(Resolver.ivyStylePatterns),
Run Code Online (Sandbox Code Playgroud)
libraryDependencies
"com.typesafe" %% "play-plugins-redis" % "2.1.1",
"org.sedis" %% "sedis" % "1.1.8",
Run Code Online (Sandbox Code Playgroud)
我在libraryDependencies中尝试使用和不使用sedis选项.当我运行播放依赖项时,我不断收到以下错误:
sbt.ResolveException: unresolved dependency: org.sedis#sedis_2.10.0:1.1.1: not found
Run Code Online (Sandbox Code Playgroud)
任何有关故障排除/解决此问题的想法将不胜感激.如果没有,我将继续进行非托管依赖.
编辑:我忘了提到我还在play.plugins文件中添加了以下内容:
play.plugins
550:com.typesafe.plugin.RedisPlugin
Run Code Online (Sandbox Code Playgroud)
但是,该问题仍未解决.
我正在使用Nginx来提供石墨和grafana(它们都在同一台服务器上运行 - 而不是我的桌面).我可以通过Nginx访问石墨.但是,grafana似乎无法连接到石墨(错误:Graphite HTTP请求错误).我已经复制下面的nginx配置为grafana - 任何有关修复此问题的想法将不胜感激.浏览器中失败的请求URL是这样的(如果我直接在浏览器中访问它,则可访问):
**http://xxx.xxx.xxx.xxx:8080/render**
Run Code Online (Sandbox Code Playgroud)
Nginx默认
server {
listen 85; ##listen [::]:85; #ipv6only=on;
server_name grafana;
root /home/xxxx/grafana-1.5.3/;
index index.html index.htm;
##logging per server
access_log /var/log/nginx/grafana/access.log;
error_log /var/log/nginx/grafana/error.log;
location / {
## root /home/xxxx/grafana-1.5.3/;
}
}
Run Code Online (Sandbox Code Playgroud)
石墨的config.js URL(在grafana中)
graphiteUrl: "http://xxx.xxx.xxx.xxx:8080"
Run Code Online (Sandbox Code Playgroud)
编辑 Graphite不需要身份验证来访问grafana.另外,我使用的是grafana v1.5.3
我有一个ansbile.cfg文件以及目录中的主机文件.在同一目录中,我有一个test_playbook.yml文件.这三个都复制在下面.当我运行ping(ad-hoc)命令时,我得到一个成功的响应.但是,当我尝试运行ansible-playbook命令时,响应指出以下内容:
[WARNING]: Host file not found: testserver
[WARNING]: provided hosts list is empty, only localhost is available
skipping: no hosts matched
Run Code Online (Sandbox Code Playgroud)
ansible.cfg
[defaults]
hostfile = hosts
remote_user = testuser
##private_key_file = .vagrant/machines/default/virtualbox/private_key
##host_key_checking = False
Run Code Online (Sandbox Code Playgroud)
主机
[webservers]
testserver ansible_ssh_host=ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com ansible_ssh_port=1234
Run Code Online (Sandbox Code Playgroud)
test_playbook.yml
---
- hosts: all
remote_user: testuser
become: yes
become_user: testuser
tasks:
- group:
name: devops
state: present
- name: create devops user with admin privileges
user:
name: devops
comment: "Devops User"
uid: 2001
groups: devops
Run Code Online (Sandbox Code Playgroud)
我正在运行的命令如下:
ansible-playbook test_playbook.yml -i …
Run Code Online (Sandbox Code Playgroud) 我正在运行一个ansible playbook作为sudo用户(强制sudo密码) - 但是,我得到一个回复,说明su密码不正确,即使我可以在远程服务器上执行以下操作(使用我尝试的相同密码与ansible):
sudo su - root
Run Code Online (Sandbox Code Playgroud)
错误信息
fatal: [testserver]: FAILED! => {"failed": true, "msg": "Incorrect su password"}
Run Code Online (Sandbox Code Playgroud)
主机
[webservers]
testserver ansible_ssh_host=ec2-52-87-166-241.compute-1.amazonaws.com ansible_ssh_port=9876
Run Code Online (Sandbox Code Playgroud)
ansible命令
ansible-playbook test_playbook.yml -i hosts --ask-become-pass -vvv
Run Code Online (Sandbox Code Playgroud)
test_playbook
---
- hosts: all
gather_facts: no
remote_user: testuser
become: yes
become_method: su
become_user: root
any_errors_fatal: true
tasks:
- group:
name: devops
state: present
- name: create devops user with admin privileges
user:
name: devops
comment: "Devops User"
uid: 2001
groups: devops
Run Code Online (Sandbox Code Playgroud)
关于我可能做错什么的任何想法?