Elk installation error on local system ubuntu - elk

at org.elasticsearch.cluster.coordination.Coordinator.(Coordinator.java:263) ~[elasticsearch-8.3.3.jar:?]
at org.elasticsearch.discovery.DiscoveryModule.(DiscoveryModule.java:191) ~[elasticsearch-8.3.3.jar:?]
at org.elasticsearch.node.Node.(Node.java:811) ~[elasticsearch-8.3.3.jar:?]
at org.elasticsearch.node.Node.(Node.java:300) ~[elasticsearch-8.3.3.jar:?]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:230) ~[elasticsearch-8.3.3.jar:?]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:230) ~[elasticsearch-8.3.3.jar:?]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-8.3.3.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:224) ~[elasticsearch-8.3.3.jar:?]
... 1 more
[2022-08-09T15:10:21,677][INFO ][o.e.x.m.p.NativeController] [instazen.in] Native controller process has stopped - no new native processes can be started
How can I fix this?

Related

I am trying to use adreno GPU in qualcomm RB5 in ubuntu environment using pyopencl

I am trying to use adreno GPU in qualcomm RB5 in ubuntu environment by using pyopencl. Does anyone have experience of similar project through pyopencl?
import pyopencl as cl
Create a PyOpenCL context
ctx = cl.create_some_context()
Query the available OpenCL devices on the system
devices = ctx.devices
Iterate over the devices and print information about each one
for device in devices:
print("Device name:", device.name)
print("Device type:", cl.device_type.to_string(device.type)
if device.name.startswith("Adreno"):
print("Adreno GPU is available.")

NIC is unavailable in DPDK application

I'm studying DPDK and trying to create a simple application, however it can't see a NIC bound to DPDK.
Here is a list of network devices I have on my machine
$ dpdk-devbind.py --status-dev net
Network devices using kernel driver
===================================
0000:01:00.0 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller 8168' if=enp1s0 drv=r8169 unused=vfio-pci *Active*
0000:02:00.0 'RTL8822BE 802.11a/b/g/n/ac WiFi adapter b822' if=wlp2s0 drv=rtw_8822be unused=rtw88_8822be,vfio-pci *Active*
I disable my ethernet NIC (it can't be bound to DPDK while it is active) and bind it to vfio-pci driver successfully
$ ip link set enp1s0 down
$ dpdk-devbind.py -b vfio-pci enp1s0
Now dpdk-devbind.py shows that the NIC is using DPDK-compatible driver
$ dpdk-devbind.py --status-dev net
Network devices using DPDK-compatible driver
============================================
0000:01:00.0 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller 8168' drv=vfio-pci unused=r8169
Network devices using kernel driver
===================================
0000:02:00.0 'RTL8822BE 802.11a/b/g/n/ac WiFi adapter b822' if=wlp2s0 drv=rtw_8822be unused=rtw88_8822be,vfio-pci *Active*
However when I run any example DPDK application it says that there are no available NIC ports. For instance I wrote a simple application
int main(int argc, char *argv[])
{
int ret;
int total_ports, avail_ports;
ret = rte_eal_init(argc, argv);
if( ret < 0 )
rte_exit(EXIT_FAILURE, "EAL initialization failed\n");
total_ports = rte_eth_dev_count_total();
avail_ports = rte_eth_dev_count_avail();
printf("ETH PORTS %d %d\n", total_ports, avail_ports);
rte_eal_cleanup();
return 0;
}
and both rte_eth_dev_count_total() and rte_eth_dev_count_avail() return 0.
What am I doing wrong?
The main reason why DPDK ports are not identified in your environment is because the NIC in use is not having a supported vendor Poll Mode Driver. Please refer to list of supported NIC from various vendor Realtek is not among them.
Work around: you can use PCAP PMD to solve the problem. Please follow the steps for your environment as
ensure your ethernet port is linked to kernel driver r8169
isntall libpacp-dev for your enviorment (linux/bsd)
rebuild dpdk with PCAP support.
start your application with following args --no-pci --vdev=net_pcap0,iface=enp1s0
This will use libpcap PMD as wrapper for RX and TX over non supported NIC

How to debug Linux Kernel on a remote machine?

How to debug a custom Linux Kernel on a remote machine?
I have a remote machine with a custom-built Linux Kernel originally from 5.6.8. The system under the kernel is running into problems which I want to fix. The kgdb-related options are
CONFIG_KGDB=y
CONFIG_KGDB_SERIAL_CONSOLE=y
# CONFIG_KGDB_TESTS is not set
CONFIG_KGDB_LOW_LEVEL_TRAP=y
CONFIG_KGDB_KDB=y
The kgdboc module is compiled builtin. The documentation of kgdb describes how to use terminal with a serial port. Here is how it is configured on the remote machine:
root#remote-pc:# cat /sys/module/kgdboc/parameters/kgdboc
ttyS0,115200
Using ssh I issued
root#remote-pc:~# echo g > /proc/sysrq-trigger
And after running gdb vminux what port should I use to connect to the remote Kernel?
(gdb) target remote remote-pc:__what_port?__
You cannot connect to a literally remote machine through a serial port. What you want to use is KGDB Over Ethernet (kdgboe). See How to use kgdb over ethernet (kgdboe)?

Arduino connection via /dev/ttyACM0 not working

I have troubles to connect to arduino UNO via Arduino IDE on Ubuntu
Of course ports are greyed out, but I set it up manually.
When I try to upload I get following information:
java.lang.NullPointerException thrown while loading
gnu.io.RXTXCommDriver processing.app.SerialNotFoundException: Serial
port '/dev/ttyACM0' not found. Did you select the right one from the
Tools > Serial Port menu?
Installed packages:
$ apt list --installed |grep arduino
arduino/bionic,bionic,now 2:1.0.5+dfsg2-4.1 all [installed]
arduino-core/bionic,bionic,now 2:1.0.5+dfsg2-4.1 all [installed]
arduino-mk/bionic,bionic,now 1.5.2-1 all [installed]
$
I am member of dialout group:
$ cat /etc/group |grep marcin
uucp:x:10:marcin
dialout:x:20:marcin
fax:x:21:marcin
audio:x:29:pulse,marcin,timidity
dip:x:30:marcin,marcin
video:x:44:marcin
plugdev:x:46:marcin
marcin:x:1001:
Port /dev/ttyACM0 is the proper one:
$ ls -l /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 paź 12 20:54 /dev/ttyACM0
$
dmesg output:
[ 1033.897893] usb 1-1: new full-speed USB device number 4 using xhci_hcd
[ 1034.051751] usb 1-1: New USB device found, idVendor=2341, idProduct=0043, bcdDevice= 0.01
[ 1034.051768] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[ 1034.051780] usb 1-1: Manufacturer: Arduino (www.arduino.cc)
[ 1034.051789] usb 1-1: SerialNumber: 9573xxxxxxxxxxxx
[ 1034.112081] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
[ 1034.114359] usbcore: registered new interface driver cdc_acm
[ 1034.114363] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Arduino preferences files related to port:
$ cat .arduino/preferences.txt |grep serial
serial.databits=8
serial.debug_rate=9600
serial.parity=N
serial.port=/dev/ttyACM0
serial.stopbits=1
$
USB devices:
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 058f:5608 Alcor Micro Corp.
Bus 001 Device 002: ID 258a:000c
Bus 001 Device 004: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$
Computer has been restarted, USB cable was pluged in and out several times with IDE turned on and off, No more ideas on how to move forward.
Any help will be appreciated. Thanks.
I followed the bug pointed by NPE and it solved the issue.
I installed librxtx-java package from bionic-proposed repository
$ sudo apt-get install librxtx-java/bionic-proposed
Now connection works smoothly. Thank you!

Porting eCos to i386

I am trying to port eCos on an i386 PC.
I have downloaded prebuilt redboot.bin from
http://ecos.sourceware.org/ecos/boards/redbootbins/x86pc/
I boot it onto usb disk, using
dd conv=sync if/redboot.bin of=/dev/sdb1
After booting target from usb, I get "IA2!" string on the target monitor always, and on serial port on 38400 8n1 configurations, I receive nothing.
I tried using i386-elf-gdb, but it is not able to connect to the target and starts printing "Ignoring error packet, Continuing..."
I also tried to build redboot using configtool for i386, but it is only able to build library, when I try Tests, It gives ERROR: multiple definition of cyg_start()
I am very new to eCos, and I don't know what I am doing wrong!!.
Ok, I figured out how to boot Redboot on a target i386 pc with RealteK RTL8139 ehternet card.
install grub on usb stick,
mkdir /mnt/USB && mount /dev/sdx1 /mnt/USB
grub-install --force --no-floppy --boot-directory=/mnt/USB/boot /dev/sdx
Build Redboot using ecosconfig, make sure the number of pci bus are less than 8 or more, if more, then need to increase the pci bus range from from 8 inside pci.h, I had my realtek ethernet card on bus 10 dev 10, I had to increase the bus to 11, so that redboot finds realtek card on bootup.
ecosconfig new pc redboot
configtool ecos.ecc
add common ethernet support
Build Library
copy redboot.elf on usb.
on grub startup menu,
insmod multiboot
multiboot /redboot.elf
boot
Thats it, redboot will use BOOTP and provide IP Address, then I can test redboot commands like ip_address, reset, ping, version etc.

Resources