Arangodb connection refused error # 61 - arangodb

im very new with arango, but when i try to start the server with arangosh i get this
__ _ _ __ __ _ _ __ __ _ _ _| |__
/ | '__/ _ | ' \ / _` |/ _ / | '_ \
| (| | | | (| | | | | (| | () __ \ | | |
__,|| __,|| ||_, |_/|/| ||
|/
arangosh (ArangoDB 3.3.3 [darwin] 64bit, using jemalloc, VPack 0.1.30, RocksDB 5.6.0, ICU 58.1, V8 5.7.492.77, OpenSSL 1.0.2n 7 Dec 2017)
Copyright (c) ArangoDB GmbH
Pretty printing values.
Could not connect to endpoint 'http+tcp://127.0.0.1:8529', database: '_system', username: 'root'
Error message: 'Could not connect to 'http+tcp://127.0.0.1:8529' 'connect() failed with #61 - Connection refused''
using the newest version

It looks like the arangod server is not running on the same machine (127.0.0.1) on port 8529.
Can you verify it is actually running, and its port number is actually 8529? This is the default port, but it can be adjusted in the server configuration file (arangod.conf).

This error occured because arangoDB server is not running. In macOS You have to start server by running this command.
/usr/local/sbin/arangod &.

Related

kube-arangodb: Can not connect with `arangosh`

I am using arango-single-server on minikube. Installed using kubectl by following: https://www.arangodb.com/docs/stable/tutorials-kubernetes.html
Following the error message:
➜ kubectl exec -it arango-single-server-sngl-d0leq3in-d9649f -- arangosh --server.endpoint "tcp://localhost:8529" --server.database "_system"
Defaulted container "server" out of: server, init-lifecycle (init), uuid (init)
Please specify a password:
_
__ _ _ __ __ _ _ __ __ _ ___ ___| |__
/ _` | '__/ _` | '_ \ / _` |/ _ \/ __| '_ \
| (_| | | | (_| | | | | (_| | (_) \__ \ | | |
\__,_|_| \__,_|_| |_|\__, |\___/|___/_| |_|
|___/
arangosh (ArangoDB 3.9.3 [linux] 64bit, using jemalloc, build tags/v3.9.3-0-gb9cd8359a1a, VPack 0.1.35, RocksDB 6.27.0, ICU 64.2, V8 7.9.317, OpenSSL 1.1.1q 5 Jul 2022)
Copyright (c) ArangoDB GmbH
Command-line history will be persisted when the shell is exited. You can use `--console.history false` to turn this off
Could not connect to endpoint 'tcp://localhost:8529', database: '_system', username: 'root'
Error message: 'Connection closed'
localhost:8529#_system>
following the result of netstat;
➜ kubectl exec -it arango-single-server-sngl-d0leq3in-d9649f -- netstat -a
Defaulted container "server" out of: server, init-lifecycle (init), uuid (init)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:56568 localhost:8529 ESTABLISHED
tcp 0 0 :::8529 :::* LISTEN
tcp 0 0 localhost:8529 localhost:56568 ESTABLISHED
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 3 [ ] DGRAM 3845565
unix 3 [ ] DGRAM 3845564
Any idea, what is the issue ?
I can access the gui interface.
It works by putting --server.endpoint "https://localhost:8529" or --server.endpoint "http+ssl://localhost:8529" instead of --server.endpoint "tcp://localhost:8529"
I got help from https://www.arangodb.com/docs/stable/programs-arangosh-examples.html

Cannot Create BuildFire Plugin With Angular

Githubs password authentication was removed. See the console below:
me#me-MBP BuildFireSDK % buildfire plugin init NixCodeAngular angular
______ _ _ _______ _
| ___ \ (_) | | | ___(_)
| |_/ /_ _ _| | __| | |_ _ _ __ ___
| ___ \ | | | | |/ _` | _| | | '__/ _ \
| |_/ / |_| | | | (_| | | | | | | __/
\____/ \__,_|_|_|\__,_\_| |_|_| \___|
Creating Plugin NixCodeAngular with tempalte angular
Username for 'https://github.com': myemail#gmail.com
Password for 'https://myemail#github.com':
Cloning into '/Users/me/Development/admins/nixcode-buildfire-2/BuildFireSDK/plugins/NixCodeAngular'...
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/BuildFire/angularPluginTemplate.git/'
Error: Cloning into '/Users/me/Development/admins/nixcode-buildfire-2/BuildFireSDK/plugins/NixCodeAngular'...
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/BuildFire/angularPluginTemplate.git/'
at toError (/opt/homebrew/lib/node_modules/buildfire-cli/node_modules/simple-git/promise.js:90:14)
at /opt/homebrew/lib/node_modules/buildfire-cli/node_modules/simple-git/promise.js:61:36
at Git.<anonymous> (/opt/homebrew/lib/node_modules/buildfire-cli/node_modules/simple-git/src/git.js:214:18)
at Git.fail (/opt/homebrew/lib/node_modules/buildfire-cli/node_modules/simple-git/src/git.js:1475:18)
at fail (/opt/homebrew/lib/node_modules/buildfire-cli/node_modules/simple-git/src/git.js:1433:20)
at /opt/homebrew/lib/node_modules/buildfire-cli/node_modules/simple-git/src/git.js:1442:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
You need to use a personal token for the password field, check here for more info and here on how to create it.

scapy.error.Scapy_Exception: Can't attach the BPF filter

I found a WiFi scanner written in python on youtube.
https://www.youtube.com/watch?v=DFTwB2nAexs
Direct GitHub script link: https://github.com/davidbombal/red-python-scripts/blob/main/lanscan_arp.py
But I'm having an issue with BPF filter as "scapy.error.Scapy_Exception: Can't attach the BPF filter !"
script
#!/usr/bin/env python3
# Import scapy
import scapy.all as scapy
# We need to create regular expressions to ensure that the input is correctly formatted.
import re
# Basic user interface header
print(
r"""______ _ _ ______ _ _
| _ \ (_) | | | ___ \ | | | |
| | | |__ ___ ___ __| | | |_/ / ___ _ __ ___ | |__ __ _| |
| | | / _` \ \ / / |/ _` | | ___ \/ _ \| '_ ` _ \| '_ \ / _` | |
| |/ / (_| |\ V /| | (_| | | |_/ / (_) | | | | | | |_) | (_| | |
|___/ \__,_| \_/ |_|\__,_| \____/ \___/|_| |_| |_|_.__/ \__,_|_|"""
)
print("\n****************************************************************")
print("\n* Copyright of David Bombal, 2021 *")
print("\n* https://www.davidbombal.com *")
print("\n* https://www.youtube.com/davidbombal *")
print("\n****************************************************************")
# Regular Expression Pattern to recognise IPv4 addresses.
ip_add_range_pattern = re.compile("^(?:[0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]*$")
# Get the address range to ARP
while True:
ip_add_range_entered = input(
"\nPlease enter the ip address and range that you want to send the ARP request to (ex 192.168.1.0/24): "
)
if ip_add_range_pattern.search(ip_add_range_entered):
print(f"{ip_add_range_entered} is a valid ip address range")
break
# Try ARPing the ip address range supplied by the user.
# The arping() method in scapy creates a pakcet with an ARP message
# and sends it to the broadcast mac address ff:ff:ff:ff:ff:ff.
# If a valid ip address range was supplied the program will return
# the list of all results.
arp_result = scapy.arping(ip_add_range_entered)
output
Please enter the ip address and range that you want to send the ARP request to (ex 192.168.1.0/24): 192.168.1.0/24
192.168.1.0/24 is a valid ip address range
Traceback (most recent call last):
File "/Users/belgra/Development/WiFi Scanner/lan_scan_arp.py", line 41, in <module>
arp_result = scapy.arping(ip_add_range_entered)
File "/opt/homebrew/lib/python3.10/site-packages/scapy/layers/l2.py", line 734, in arping
ans, unans = srp(
File "/opt/homebrew/lib/python3.10/site-packages/scapy/sendrecv.py", line 675, in srp
s = iface.l2socket()(promisc=promisc, iface=iface,
File "/opt/homebrew/lib/python3.10/site-packages/scapy/arch/bpf/supersocket.py", line 254, in __init__
super(L2bpfListenSocket, self).__init__(*args, **kwargs)
File "/opt/homebrew/lib/python3.10/site-packages/scapy/arch/bpf/supersocket.py", line 119, in __init__
attach_filter(self.ins, filter, self.iface)
File "/opt/homebrew/lib/python3.10/site-packages/scapy/arch/bpf/core.py", line 155, in attach_filter
raise Scapy_Exception("Can't attach the BPF filter !")
scapy.error.Scapy_Exception: Can't attach the BPF filter !
/Users/belgra/Development/WiFi Scanner ❯
I installed scapy 2.4.5 and am running this code by Python 3.10.1 on M1 Mac.
Any ideas?
I was able to solve this by installing the optional libpcap library that Scapy mentions in its installation documentation.
Run brew update in your terminal
Run brew install libpcap in your terminal
Run Scapy with scapy in your terminal
Within Scapy run conf.use_pcap = True
Here's the link to the documentation with more info
For reference I am running an M1 MacBook Air (macOS Monterey v12.1) with python 3.8.12.
I got the same error on a M1 MacBook and I solved this by installing and configuring libpcap as #RBPEDIIIAL suggested.

Creating a New Angular Project Fails: ENOENT: no such file or directory

I'm new to javascript, and I want to create a new Angular project as shown in the VS Code tutorial I've looked at this and this which did not help. I followed the instruction ins the VS Code tutorial exactly, I've even uninstalled/reinstalled nodejs and angular. What am I doing wrong? The only reason I can think that this is not working is that there is some compatability issue that I cannot find. Mypowershell output:
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 8.3.20
Node: 12.13.1
OS: win32 x64
Angular:
...
Package Version
------------------------------------------------------
#angular-devkit/architect 0.803.20
#angular-devkit/core 8.3.20
#angular-devkit/schematics 8.3.20
#schematics/angular 8.3.20
#schematics/update 0.803.20
rxjs 6.4.0
PS C:\Users\Path> ng new my-app
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
ENOENT: no such file or directory, mkdir 'C:\Users\Path>my-app'
Thanks in advance.
So quick fix was I needed to be within my home directory to create the app:
PS C:\Users\username\
Don't know why this works.

Jmeter executing scripts but provides blank report

I am running jmeter in non GUI mode in my linux server inside docker. When I check jmeter is installed or not it says its there with the version but when I execute my script it says as follows-
root#xxxxxxx:/# /var/xxxxx/apache-jmeter-5.1/bin/jmeter -n -t /lib/xxx/deduction.jmx -l test.jtl
Creating summariser <summary>
Created the tree successfully using /lib/xxx.s/deduction.jmx
Starting the test # Tue May 14 05:54:53 UTC 2019 (1557813293320)
Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445
summary = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
Tidying up ... # Tue May 14 05:55:53 UTC 2019 (1557813353945)
... end of run
The same file works fine in my windows machine.
root#xxxxxx:/# /var/xxxxxx/apache-jmeter-5.1/bin/jmeter -v
_ ____ _ ____ _ _ _____ _ __ __ _____ _____ _____ ____
/ \ | _ \ / \ / ___| | | | ____| | | \/ | ____|_ _| ____| _ \
/ _ \ | |_) / _ \| | | |_| | _| _ | | |\/| | _| | | | _| | |_) |
/ ___ \| __/ ___ \ |___| _ | |___ | |_| | | | | |___ | | | |___| _ <
/_/ \_\_| /_/ \_\____|_| |_|_____| \___/|_| |_|_____| |_| |_____|_| \_\ 5.1 r1853635
Copyright (c) 1999-2019 The Apache Software Foundation
I experienced that also. In my case, the problem was the path set on JMeter component “CSV Data Set Config”. When I executed the project at my machine, the Jmeter searched and found the path, but after upload to the server I forgot to change the CSV path according to the server environment. After change it the tests were executed Ok on server. So, check if there is something like that on your JMeter project.

Resources