RabbitMQ configuration error while enabling plugin - rabbitmq

I'm getting the below error while trying to enable the RabbitMQ plugin from command line
Environment Variables
ERLANG_HOME : D:\Program Files\erl-23.0
RABBITMQ_BASE : C:\RabbitMQ
RABBITMQ_SERVER : D:\Program Files\RabbitMQ Server
Path : ;%RABBITMQ_HOME%\sbin;%ERLANG_HOME%\bin;
D:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.5\sbin>rabbitmq-plugins enable rabbitmq_management
21:59:52.931 [error] GenServer :net_kernel terminating
** (stop) {:could_not_start_server, :inet_gethost_native}
(kernel) inet_gethost_native.erl:549: :inet_gethost_native.ensure_started/0
(kernel) inet_gethost_native.erl:488: :inet_gethost_native.getit/2
(kernel) inet.erl:1295: :inet.gethostbyname_tm_native/4
(kernel) inet.erl:1246: :inet.getaddrs_tm/3
(kernel) inet.erl:658: :inet.getaddr_tm/3
(kernel) inet.erl:653: :inet.getaddr/3
(kernel) inet_tcp_dist.erl:59: :inet_tcp_dist.gen_select/2
(kernel) net_kernel.erl:1526: :net_kernel.select_mod/2 Last message: {:auto_connect, :rabbit#IMPC3065, {1,
#Reference<0.2404837920.965345282.258286>}}
21:59:52.931 [error] Process #PID<0.103.0> on node
:"rabbitmqcli-3560-rabbit#IMPC3065" raised an exception
** (ErlangError) Erlang error: :eacces
erlang.erl:2272: :erlang.open_port({:spawn, 'inet_gethost 4 '}, [{:packet, 4}, :eof, :binary])
(kernel) inet_gethost_native.erl:184: :inet_gethost_native.server_init/2
21:59:52.931 [error] GenServer :inet_gethost_native_sup terminating
** (stop) :eacces
erlang.erl:2272: :erlang.open_port({:spawn, 'inet_gethost 4 '}, [{:packet, 4}, :eof, :binary])
(kernel) inet_gethost_native.erl:184: :inet_gethost_native.server_init/2 Last message: {:EXIT,
#PID<0.103.0>, {:eacces, [{:erlang, :open_port, [{:spawn, 'inet_gethost 4 '}, [{:packet, 4}, :eof, :binary]], [file:
'erlang.erl', line: 2 272]}, {:inet_gethost_native, :server_init, 2,
[file: 'inet_gethost_native.erl', line: 184]}]}} "escript: exception
error: undefined function 'Elixir.Inspect.BitString':inspect/2\n in
function 'Elixir.Inspect.Algebra':container_each/6
(lib/inspect/algebr a.ex, line 384)\n in call from
'Elixir.Inspect.Algebra':container_doc/6 (lib/inspect/algebra.ex, line
362)\n in call from 'Elixir.Inspect.Algebra':container_e ach/6
(lib/inspect/algebra.ex, line 384)\n in call from
'Elixir.Inspect.Algebra':container_doc/6 (lib/inspect/algebra.ex, line
362)\n in call from 'Elixir.Ins pect.Algebra':container_each/6
(lib/inspect/algebra.ex, line 384)\n in call from
'Elixir.Inspect.Algebra':container_doc/6 (lib/inspect/algebra.ex, line
362)\n in call from 'Elixir.Inspect.Algebra':container_each/6
(lib/inspect/algebra.ex, line 384)\n"

Related

Why syntaxError: invalid syntax Occurs when Login to openstack dashboard?

I got issue when running openstack horizon.
I failed to log in horizon after setting all requirements and i got SyntaxError in /var/log/apache/error.log.
mod_wsgi (pid=5342): Failed to exec Python script file '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py'.
mod_wsgi (pid=5342): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py'.
File "/usr/lib/python3/dist-packages/openstack_dashboard/settings.py", line 239, in <module>
from local.local_settings import * # noqa: F403,H303
File "/usr/lib/python3/dist-packages/openstack_dashboard/local/local_settings.py", line 137
'enable_router': False,
SyntaxError: invalid syntax
Why the SyntaxError : invalid syntax occurs?
I solve the problem after i checked the /etc/openstack-dashboard/local_setting.py.
OPENSTACK_NEUTRON_NETWORK = {
...
'enable_router': False,
'enable_quotas': False,
'enable_ipv6': False,
'enable_distributed_router': False,
'enable_ha_router': False,
'enable_fip_topology_check': False,
}
I didn't remove the ... in OPENSTACK_NEUTRON_NETWORK.
After i remove it, the horizon works fine.

Nsupdate module in ansible causes an error

When i try to run the following .yml role i get an error with nsupdate.
I am using centos7 and the machine is running bind.
When i do nsupdate with either the original DNS server or the ansible master i can update the records, only when i use the nsupdate module it doesn't work, any help? ty!
tasks/main.yml
This is the part with the relevant code
- name: Add or modify ansible.example.org A to 192.168.1.1"
community.general.nsupdate:
server: "10.0.0.40"
zone: "ben.com."
record: "ansible"
value: "192.168.1.1"
when: ansible_eth1.ipv4.address == '10.0.0.40'
The error:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: SyntaxError: invalid syntax
fatal: [10.0.0.40]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 10.0.0.40 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1624977590.7-4712-16053022547656/AnsiballZ_nsupdate.py\", line 102, in <module>\r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1624977590.7-4712-16053022547656/AnsiballZ_nsupdate.py\", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1624977590.7-4712-16053022547656/AnsiballZ_nsupdate.py\", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible_collections.community.general.plugins.modules.nsupdate', init_globals=None, run_name='__main__', alter_sys=True)\r\n File \"/usr/lib64/python2.7/runpy.py\", line 176, in run_module\r\n fname, loader, pkg_name)\r\n File \"/usr/lib64/python2.7/runpy.py\", line 82, in _run_module_code\r\n mod_name, mod_fname, mod_loader, pkg_name)\r\n File \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\r\n exec code in run_globals\r\n File \"/tmp/ansible_community.general.nsupdate_payload_xAhaGd/ansible_community.general.nsupdate_payload.zip/ansible_collections/community/general/plugins/modules/nsupdate.py\", line 189, in <module>\r\n File \"build/bdist.linux-x86_64/egg/dns/update.py\", line 21, in <module>\r\n File \"/usr/lib/python2.7/site-packages/dnspython-2.1.1.dev77+gf61a939-py2.7.egg/dns/message.py\", line 201\r\n s.write(f';{name}\\n')\r\n ^\r\nSyntaxError: invalid syntax\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
relevant line in traceback
File "build/bdist.linux-x86_64/egg/dns/update.py", line 21, in <module>
File "/usr/lib/python2.7/site-packages/dnspython-2.1.1.dev77+gf61a939-py2.7.egg/dns/message.py", line 201
s.write(f';{name}\n')
^
SyntaxError: invalid syntax
Problem was that it was prolly running on the wrong interpeter on the host machine like #Patrick mentioned..
Fixed it by adding host group vars like so:
[DNS_Master:vars]
ansible_python_interpreter=/usr/local/bin/python3.9

Failed to find data source: org.apache.dsext.spark.datasource.rest.RestDataSource

I'm using Rest Data Source and I keep running into an issue with the output saying the following:
hope_prms = { 'url' : search_url
, 'input' : 'new_view'
, 'method' : 'GET'
, 'readTimeout' : '10000'
, 'connectionTimeout' : '2000'
, 'partitions' : '10'}
sodasDf = spark.read.format('org.apache.dsext.spark.datasource.rest.RestDataSource').options(**hope_prms).load()
An error occurred while calling o117.load.
: java.lang.ClassNotFoundException: Failed to find data source: org.apache.dsext.spark.datasource.rest.RestDataSource. Please find packages at http://spark.apache.org/third-party-projects.html
at org.apache.spark.sql.execution.datasources.DataSource$.lookupDataSource(DataSource.scala:649)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:194)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
I've built my jar file and the class is in the directory so I'm not sure why it's still failing.
In our cluster it's shows the following:
sodasDf = spark.read.format('org.apache.dsext.spark.datasource.rest.RestDataSource').options(**hope_prms).load()
File "/app/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/spark/python/lib/pyspark.zip/pyspark/sql/readwriter.py", line 172, in load
File "/app/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/spark/python/lib/py4j-0.10.7-src.zip/py4j/java_gateway.py", line 1257, in __call__
File "/app/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/spark/python/lib/pyspark.zip/pyspark/sql/utils.py", line 63, in deco
File "/app/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/spark/python/lib/py4j-0.10.7-src.zip/py4j/protocol.py", line 328, in get_return_value
py4j.protocol.Py4JJavaError: An error occurred while calling o109.load.
: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 9.0 failed 4 times, most recent failure: Lost task 0.3 in stage 9.0 (TID 12, cvglpcdh13.td.afg, executor 4): java.lang.NullPointerException

Can't deploy scrapy to scrapyd server

I'm trying to deploy spider created via Portia. Portia, scrapyd - all is latest versions.
I'm running scrapyd server just by command:
scrapyd
I'm getting this result on my machine locally:
$> cd PROJECT_PATH_HERE;
$> scrapyd-deploy
Packing version 1463420166
Deploying to project "retail" in http://X.X.X.X:6800/addversion.json
Server response (200):
{"status": "error", "message": "AttributeError: 'list' object has no attribute 'iteritems'", "node_name": "vaua0048313.online-vm.com"}
On the server side (Ubuntu 12.04.5 LTS):
root#server:~# scrapyd
2016-05-16 17:35:42+0000 [-] Log opened.
2016-05-16 17:35:42+0000 [-] twistd 16.1.1 (/usr/bin/python 2.7.3) starting up.
2016-05-16 17:35:42+0000 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2016-05-16 17:35:42+0000 [-] Site starting on 6800
2016-05-16 17:35:42+0000 [-] Starting factory <twisted.web.server.Site instance at 0x2f5d950>
2016-05-16 17:35:42+0000 [Launcher] Scrapyd 1.1.0 started: max_proc=12, runner='scrapyd.runner'
2016-05-16 17:36:06+0000 [_GenericHTTPChannelProtocol,0,78.111.181.96] Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line 1767, in allContentReceived
req.requestReceived(command, path, version)
File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line 768, in requestReceived
self.process()
File "/usr/local/lib/python2.7/dist-packages/twisted/web/server.py", line 183, in process
self.render(resrc)
File "/usr/local/lib/python2.7/dist-packages/twisted/web/server.py", line 234, in render
body = resrc.render(self)
--- <exception caught here> ---
File "/usr/local/lib/python2.7/dist-packages/scrapyd/webservice.py", line 17, in render
return JsonResource.render(self, txrequest)
File "/usr/local/lib/python2.7/dist-packages/scrapyd/utils.py", line 19, in render
r = resource.Resource.render(self, txrequest)
File "/usr/local/lib/python2.7/dist-packages/twisted/web/resource.py", line 250, in render
return m(request)
File "/usr/local/lib/python2.7/dist-packages/scrapyd/webservice.py", line 79, in render_POST
spiders = get_spider_list(project, version=version)
File "/usr/local/lib/python2.7/dist-packages/scrapyd/utils.py", line 116, in get_spider_list
raise RuntimeError(msg.splitlines()[-1])
exceptions.RuntimeError: AttributeError: 'list' object has no attribute 'iteritems'
2016-05-16 17:36:06+0000 [-] "78.111.181.96" - - [16/May/2016:17:36:05 +0000] "POST /addversion.json HTTP/1.1" 200 135 "-" "Python-urllib/2.7"
What am I doing wrong ?
i think the problem comes from your setting.py. The ITEM_PIPELINES should be specified by the dict format below, when you are using scrapy version of 1.10.0,
ITEM_PIPELINES = {
'coolscrapy.pipelines.ArticleDataBasePipeline': 5,
}
Modify ITEM_PIPELINES in Portia_Projects/spiders/setting.py to
ITEM_PIPELINES = {'slybot.dupefilter.DupeFilterPipeline':1}

RabbitMQ crashing during restart

When I try to start my rabbitmq server, I get following error in log/*-sasl.log
=CRASH REPORT==== 10-Apr-2013::23:24:32 ===
crasher:
initial call: application_master:init/4
pid: <0.69.0>
registered_name: []
exception exit: {bad_return,
{{rabbit,start,[normal,[]]},
{'EXIT',
{undef,
[{os_mon_mib,module_info,[attributes],[]},
{rabbit_misc,module_attributes,1,
[{file,"src/rabbit_misc.erl"},
{line,760}]},
{rabbit_misc,
'-all_module_attributes/1-fun-0-',3,
[{file,"src/rabbit_misc.erl"},
{line,779}]},
{lists,foldl,3,
[{file,"lists.erl"},{line,1197}]},
{rabbit,boot_steps,0,
[{file,"src/rabbit.erl"},{line,441}]},
{rabbit,start,2,
[{file,"src/rabbit.erl"},{line,356}]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},
{line,274}]}]}}}}
in function application_master:init/4 (application_master.erl, line 138)
ancestors: [<0.68.0>]
messages: [{'EXIT',<0.70.0>,normal}]
links: [<0.68.0>,<0.7.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 2584
stack_size: 24
reductions: 227
neighbours:
startup_log has -
{error_logger,{{2013,4,11},{2,48,36}},std_error,"File operation error: eacces. Target: /usr/lib64/erlang/lib/otp_mibs-1.0.7/ebin. Function: read_file_info. Process: code_server."}
=ERROR REPORT==== 11-Apr-2013::02:48:36 ===
File operation error: eacces. Target: /usr/lib64/erlang/lib/otp_mibs-1.0.7/ebin. Function: read_file_info. Process: code_server.
Activating RabbitMQ plugins ...
=ERROR REPORT==== 11-Apr-2013::02:48:36 ===
File operation error: eacces. Target: /usr/lib64/erlang/lib/otp_mibs-1.0.7. Function: list_dir. Process: application_controller.
=ERROR REPORT==== 11-Apr-2013::02:48:36 ===
File operation error: eacces. Target: /usr/lib64/erlang/lib/otp_mibs-1.0.7. Function: list_dir. Process: application_controller.
Skipping /usr/lib64/erlang/lib/os_mon-2.2.8/ebin/os_mon_mib.beam (unreadable)
=ERROR REPORT==== 11-Apr-2013::02:48:36 ===
File operation error: eacces. Target: /usr/lib64/erlang/lib/otp_mibs-1.0.7. Function: list_dir. Process: systools_make.
=ERROR REPORT==== 11-Apr-2013::02:48:36 ===
File operation error: eacces. Target: /usr/lib64/erlang/lib/otp_mibs-1.0.7. Function: list_dir. Process: systools_make.
startup_err has -
Erlang has closed
Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{undef,[{os_mon_mib,module_info,[attributes],[]},{rabbit_misc,module
Any help to understand the cause of the error would be great. Thanks.