本文的目的是介绍不支持inotify@1.4.1的平台:想要的{“os”:“linux”,“arch”:“any”}的详细情况,特别关注不支持neon的相关信息。我们将通过专业的研究、有关数据的分析等
本文的目的是介绍不支持inotify@1.4.1的平台:想要的{“ os”:“ linux”,“ arch”:“ any”}的详细情况,特别关注不支持neon的相关信息。我们将通过专业的研究、有关数据的分析等多种方式,为您呈现一个全面的了解不支持inotify@1.4.1的平台:想要的{“ os”:“ linux”,“ arch”:“ any”}的机会,同时也不会遗漏关于Ansible linux部署错误{“failed”:true,“parsed”:false}、AttributeError:“ ElasticSearch”对象没有属性“ bulk_index””、Aws Lambda Postman 错误:“消息”:“内部服务器错误”、ElasticSearch:将“ not_analyzed”字段设置为“ store”:“ yes”的影响?的知识。
本文目录一览:- 不支持inotify@1.4.1的平台:想要的{“ os”:“ linux”,“ arch”:“ any”}(不支持neon)
- Ansible linux部署错误{“failed”:true,“parsed”:false}
- AttributeError:“ ElasticSearch”对象没有属性“ bulk_index””
- Aws Lambda Postman 错误:“消息”:“内部服务器错误”
- ElasticSearch:将“ not_analyzed”字段设置为“ store”:“ yes”的影响?
不支持inotify@1.4.1的平台:想要的{“ os”:“ linux”,“ arch”:“ any”}(不支持neon)
在为我的webpack / reactjs应用程序安装软件包时,我遇到一个非常奇怪的错误。
我目前正在尝试安装
npm install copy-webpack-plugin --save dev
构建/启动脚本失败,终端中显示以下错误:
Unsupported platform for inotify@1.4.1: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})
这意味着绝对要注意我,我无法在网上找到任何清晰的说明。
Package.json脚本:
"scripts": { "start": "node server.js", "build": "cross-env BABEL_ENV=production ./node_modules/.bin/webpack --config webpack.config.production.js", "lint": "eslint --cache --ignore-path .gitignore --format=node_modules/eslint-formatter-pretty . *.js", "test": "npm run lint" },
答案1
小编典典您的命令中有错别字:
npm install copy-webpack-plugin --save dev
应该:
npm install copy-webpack-plugin --save-dev
(你忘了一个破折号)
错字将使npm尝试安装https://www.npmjs.com/package/dev,具体取决于inotify
。
您的错误消息是因为inotify
仅适用于Linux,而您适用于Mac。
Ansible linux部署错误{“failed”:true,“parsed”:false}
我有3台Linux机器,一台用于部署,另外两台用于部署应用程序。 我使用Ansible这个,我有一个问题。 在我的部署过程中,我想远程执行这两台机器上的bash脚本。
我有一个playbook,app_stop.yml,看起来像这样:
### rel/app_stop.yml # # Erlang app stop playbook - hosts: fe gather_facts: false sudo: app roles: - app_stop
我的app_stopangular色有一个任务,当它从机器调用某些东西来ping应用程序,谁会用pong响应。 为了简化事情,我创build了一个bash脚本来回应pong,并且尝试运行它。 它给了我同样的错误。
这是app_stopangular色:
在Windows上部署Python程序并获取大型库依赖项
什么是一些好的SSH服务器的Windows?
Nginx Cookbook v 2.0.0:找不到Cookbook http_gzip_static_module
Git部署回滚工作stream程
通过WSUS安装VCRedist 2010?
- name: Is the Erlang app installed? stat: path="{{ app_install_dir }}/{{ app_name_short }}/bin/{{ app_name_short }}" register: bin - name: Ping the Erlang app command: "sudo /home/deploy/script.bash" when: bin.stat.exists == true register: ping ignore_errors: yes - name: Stop the Erlang app command: "sudo -u {{ app_user }} {{ app_install_dir }}/{{ app_name_short }}/bin/{{ app_name_short }} stop" when: ping is defined and ping.stdout.find("pong") != -1 ignore_errors: yes - name: Determine the ERTS bin folder path shell: "ls {{ app_install_dir }}/{{ app_name_short }}/erts-*/bin/epmd" when: bin.stat.exists == true register: epmd ignore_errors: yes - name: Stop the Erlang port mapping daemon (epmd) command: "sudo -u {{ app_user }} {{ epmd.stdout_lines[0] }} -kill" ignore_errors: yes when: epmd.stdout_lines is defined
第二个任务是重要的。 我有ignore_errors: yes的原因是,如果应用程序closures,我会停止守护进程,如果不是,我会先停止应用程序,然后守护进程。
Ping Erlang应用程序失败,即使我没有做任何Erlang进程的东西,我只调用一个打印pong的shell脚本。 (和它工作,如果我手动连接与SSH)。
我和Ansible得到的错误是下一个:
Failed: [stefan1] => {"Failed": true,"parsed": false} /bin/sh: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory [sudo] password for deploy: {"changed": true,"end": "2015-12-24 03:04:55.207125","stdout": "","cmd": ["sudo","/home/deploy/script.bash"],"start": "2015-12-24 02:59:55.095913","delta": "0:05:00.111212","stderr": "","rc": 1,"warnings": []} OpenSSH_6.6.1,OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /home/stefan-work-tiefighter-dev/.ssh/config debug1: /home/stefan-work-tiefighter-dev/.ssh/config line 8: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 56: Applying options for * debug1: auto-mux: Trying existing master debug2: fd 3 setting O_NONBLOCK debug2: mux_client_hello_exchange: master version 4 debug3: mux_client_forwards: request forwardings: 0 local,0 remote debug3: mux_client_request_session: entering debug3: mux_client_request_alive: entering debug3: mux_client_request_alive: done pid = 100975 debug3: mux_client_request_session: session request sent debug1: mux_client_request_session: master session id: 2 debug3: mux_client_read_packet: read header Failed: broken pipe debug2: Received exit status from master 0 Shared connection to 192.168.0.201 closed.
mod_deflate与Django GZipMiddleware,哪一个用于部署?
django Nginx uwsgi部署失败
如何使用修补程序更新应用程序文件?
在Linux系统上将Java项目部署到客户端
诸如Ansible之类的部署工具的优点在shell中closures
小鸡指出,你可以在Command任务上使用Ansible的“sudo”和“sudo_user”属性,它会更干净。
“app_stop”角色的第二项任务如下所示:
- name: Ping the Erlang app command: "/home/deploy/script.bash" when: bin.stat.exists register: ping ignore_errors: yes sudo: yes
关于你得到的错误信息,这是从操作系统抱怨没有正确设置的语言环境。 我以前遇到同样的问题,我通常使用一个Ansible任务来确保基于模板文件正确配置区域设置。
从你的输出中,我猜你正在使用CentOS,所以这是我使用的代码。
为locale定义一个变量很有意思,只是为了提高可重用性。
这将是模板( i18n.j2 ):
LANG="{{ locale }}" SYSFONT="latarcyrheb-sun16" LC_CTYPE="{{ locale }}"
这将是配置CentOS使用的任务:
- name: Ensure language and locale are correct template: src="i18n.j2" dest="/etc/sysconfig/i18n" sudo: yes
AttributeError:“ ElasticSearch”对象没有属性“ bulk_index””
当我尝试时python manage.py rebuild_index
,会发生错误:
self.conn.bulk_index(self.index_name,'modelresult',prepped_docs,id_field=ID)
AttributeError: 'ElasticSearch' object has no attribute 'bulk_index'
我找到了带有pyelasticsearch.py
的链接https://github.com/toastdriven/pyelasticsearch/blob/master/pyelasticsearch.py#L424-469,但我不知道它是哪个版本。无论如何bulk_index
,该代码中没有购买我的pyelasticsearch.py。任何人都有相同的经历吗?感谢您的时间。
加:django-haystack 2.0.0.beta,pyelasticsearch 0.0.6
Aws Lambda Postman 错误:“消息”:“内部服务器错误”
如何解决Aws Lambda Postman 错误:“消息”:“内部服务器错误”?
我正在使用 Aws Lambda 编写 Python Apigateway。我进行了 api 设置,我设置了一个 rest-api 并在 lambda 和 postman 上对其进行了测试。
import json
def response(res):
return {
''statusCode'' : 200,''body'' : json.dumps(res),''headers'' : {
''Content-Type'' : ''application/json''
}
}
def lambda_handler(event,context):
#event[''body''] içeriğe ulaşım
body = event[''body'']
# Todo implement
return response(body)
这是我的要求
{
"cityName": "Postman City "
}
aws 结果:没问题 但是邮递员那边很火
这是邮递员错误输出
{
"message": "Internal server error"
}
这是我最简单的代码,我真的被这个错误吓坏了。 据我了解,当我在 lambda_handler(event,context) 中处理事件时:API 连接已断开并出现内部错误。 当我使用 event[''any''] 运行它时,lambda 测试有效,但邮递员方面有问题。
我确定我的API设置是正确的,因为当我回到简单退货状态时,问题就消失了
{
''statusCode'' : 200,''body'' : "it''s bullshet",''headers'' : {
''Content-Type'' : ''application/json''
}
}
好的,我已经看了两天了。我尝试将 dict 中的事件数据用作具有不同库的列表、字符串或 dict,但我的错误没有改变。
那么,如果我不打算使用随事件发送给我的请求,我可以用 aws 做什么? 等待您的解决方案...
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
ElasticSearch:将“ not_analyzed”字段设置为“ store”:“ yes”的影响?
假设我有一个not_analyzed
映射中指定的字符串字段。如果我随后添加"store":"yes"
到映射,ElasticSearch会重复存储吗?我对not_analyzed
字段的了解是,它们不是通过分析器运行的,索引
为
,但是客户端可以对其进行匹配。因此,如果一个字段既是not_analyzed
和store:yes
,则可能导致ElasticSearch保留该字符串的两个副本。
我的问题:
- 如果将字符串字段同时存储为
not_analyzed
和store:yes
,是否将重复存储该字符串?
我希望这很清楚。谢谢!
关于不支持inotify@1.4.1的平台:想要的{“ os”:“ linux”,“ arch”:“ any”}和不支持neon的介绍已经告一段落,感谢您的耐心阅读,如果想了解更多关于Ansible linux部署错误{“failed”:true,“parsed”:false}、AttributeError:“ ElasticSearch”对象没有属性“ bulk_index””、Aws Lambda Postman 错误:“消息”:“内部服务器错误”、ElasticSearch:将“ not_analyzed”字段设置为“ store”:“ yes”的影响?的相关信息,请在本站寻找。
本文标签: