db2cli license file not being used

I’m using the db2 driver for CLI and ODBC to configure an ODBC connection to DB2 on IBM i/OS from CentOS. I’m trying the following command:

db2cli execsql -connstring "protocol=TCPIP;database=MyDB;hostname=MyHost;ServiceName=446;uid=MyUser;pwd=MyPass"

And getting the following error which seems pretty straightforward:

[IBM][CLI Driver] SQL1598N  An attempt to connect to the database server failed because of a licensing problem.  SQLSTATE=42968

I believe I have the paths and everything correct:

# Environment
export PATH=$PATH:/opt/DB2/odbc_cli/clidriver/bin/
export DB2_CLI_DRIVER_INSTALL_PATH=/opt/DB2/odbc_cli/clidriver
export LD_LIBRARY_PATH=/opt/DB2/odbc_cli/clidriver/lib

license file: /opt/DB2/odbc_cli/clidriver/license/db2consv_is.lic

I have also attempted to move the license to a few other paths without any success. It is valid and works on another (windows) installation without issues. Any idea what I can troubleshoot from here?

Go to Source
Author: user19702

docker-compose fail to maintain up centos build

Im building a basic centos image with only some packages but Im forgotting something because finish well but not maintain the container. What Im doing bad?

docker-compose:

version: '3'
services:
  config_server:
    build: ../common/docker/ansible/.
    stdin_open: true
    volumes:
      - ../../api:/var/www/api
      - ../../server:/var/www/server
      - ../server/provision/server:/tmp/ansible
    working_dir: /tmp/ansible
    networks:
      net:
        ipv4_address: 172.28.0.10
    command: ansible-playbook playbook.yml

networks:
  net:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: 172.28.0.0/24

Dockerfile:

FROM centos:7
RUN yum makecache && yum install -y epel-release wget
RUN yum install -y ansible

I would like to check If all tasks was well, and using:

docker logs 

I see logs from ansible script finishing well. But I don’t know why not maintains container with Exited (0) error

command used is

docker-compose up -d --build 

Suggestions?

Go to Source
Author: deconya

CentOS 8 guest in Hyper-V: mouse clicks not recognized but keyboard works

I’m running a CentOS 8 guest on Hyper-V in Windows 10. When I boot the virtual machine everything seems fine for a while. However, eventually the system stops recognizing mouse clicks. The mouse movement seems to be fine and I can switch to another virtual terminal and login, but clicking doesn’t do anything. I have a CentOS 7 guest on the same machine with no such problem. I’ve been searching but most of what I find online concerns other virtual machine environments or older versions of CentOS. How can I get to the bottom of this?

Go to Source
Author: antimeme

CentOS 8: Network Card disconnected on boot

Having an odd issue, just installed RockStore on a computer (CentOS based) and it is all running fine, but when the system boots the NIC is disabled.

I run nmcli device status and I can see the device is “disconnected”

If I then run nmcli con up DEVICEID the ethernet device connects fine, but if I reboot the system, the NIC is disabled again…

How can I force the card to connect automatically on boot?

Many thanks,

Mo

Go to Source
Author: PsychoMo

Docker, System has not been booted with systemd as init system (PID 1). Can’t operate

I am trying to create docker container for one of the centos service created by us.

We have 2 rpm files.

After installing on base image of centos 8.

I installed those 2 rpm files in it.

But, when I try to start the service, I am getting this error. when I ran
systemctl start <service_name>

System has not been booted with systemd as init system (PID 1). Can’t operate

Failed to connect to bus: Host is down

Based, on the feedback of different posts, I tried creating container with below steps.

docker run -it -p 8080:80 -p 16700:16700 centos

docker run -it -p 8080:80 -p 16700:16700 –privileged=true centos

Both same issue. Please suggest.

Go to Source
Author: Uday Kiran Reddy

Why I am unable to mount a CIFS from my server?

I have setup the samba on CENTOS 8 like that:

[global]
    workgroup = WORKGROUP
    security = user
    passdb backend = tdbsam

[e-table]
    path=/mnt/md0
    browseable=yes
    read only = no
    force create mode = 0660
    force directory mode = 2770
    valid users = lena

and /mnt has the following permissions:

$ ls -l /mnt
drwxrwxrwx. 27 lena lena 4096 Oct 18  2019 md0

But I get the following error on /var/log/samba:

[2020/06/16 17:46:15.738033,  0] ../../source3/smbd/service.c:784(make_connection_snum)
  make_connection_snum: canonicalize_connect_path failed for service e-table, path /mnt/md0

At the same time the client retrieves the following error:

error shown in client

So do you have any idea why that happens? Does affect that on the same time an huge rsync operation is performed on this file as well?

Go to Source
Author: Dimitrios Desyllas

How is a source RPM different from unpacking an RPM with rpm2cpio and cpio?

I am attempting to understand the use of a .srpm aka “source rpm” Red Hat Package Manager package. From what I understand so far, a .srpm is different from a standard .rpm in that it provides the source code and is commonly used during development. I am puzzled on why this is useful because if I run rpm2cpio ./myrpm-1.1-1.x86_64.rpm | cpio -idmv, I can still view the source code. As I understand, even standard RPMs pull down a .tar.gz/bz file which contains the source, and eventually builds this. Could you please clarify how source RPMs are different and why I would want to use one?

Go to Source
Author: the_endian

DNS zone on CentOS 7 not working

DNS zone on CentOS 7 not working

I have server with CentOS 7, when i have DNS and domain learn-linux.eu. My domain works but only without www.
my /etc/named.conf file

options {
        listen-on port 53 { 127.0.0.1; 193.33.111.185; };
        #listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        recursing-file  "/var/named/data/named.recursing";
        secroots-file   "/var/named/data/named.secroots";
        allow-query     { localhost; 193.33.111.0/24; };

        /* 
         - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
         - If you are building a RECURSIVE (caching) DNS server, you need to enable 
           recursion. 
         - If your recursive DNS server has a public IP address, you MUST enable access 
           control to limit queries to your legitimate users. Failing to do so will
           cause your server to become part of large scale DNS amplification 
           attacks. Implementing BCP38 within your network would greatly
           reduce such attack surface 
        */
        recursion yes;

        dnssec-enable yes;
        dnssec-validation yes;

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.root.key";

        managed-keys-directory "/var/named/dynamic";

        pid-file "/run/named/named.pid";
        session-keyfile "/run/named/session.key";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "learn-linux.eu" IN {
        type master;
        file "/var/named/learn-linux.db";
        allow-update {none;};
};

zone "111.33.193.in-addr.arpa" IN {
        type master;
        file "/var/named/193.33.111.db";
        allow-update {none;};

};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

My DNS zone:

$TTL 14400
@ IN  SOA     ns1.learn-linux.eu. root.learn-linux.eu. (
                                                13    ;Serial
                                                1H      ;Refresh
                                                15M     ;Retry
                                                2H      ;Expire
                                                1H      ;Minimum TTL
                                                )

;Name Server Information
@      IN  NS      ns1.learn-linux.eu.
learn-linux.eu. IN A 193.33.111.185
www.learn-linux.eu.     IN A 193.33.111.185
;IP address of Name Server
ns1.learn-linux.eu.     IN      A 193.33.111.185
www     IN  A       193.33.111.185

my reverse zone

@ IN  SOA     ns1.learn-linux.eu. root.learn-linux.eu. (
                                                        6    ;Serial
                                                        1H      ;Refresh
                                                        15M     ;Retry
                                                        4H      ;Expire
                                                        1D      ;Minimum TTL
                                                        )
;Name Server Information
@ IN  NS      ns1.learn-linux.eu.

;Reverse lookup for Name Server
185        IN  PTR     www.learn-linux.eu.

command dig www.learn-linux.eu result

 <<>> DiG 9.11.4-P2-RedHat-9.11.4-16.P2.el7_8.3 <<>> www.learn-linux.eu
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43694
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.learn-linux.eu.            IN      A

;; ANSWER SECTION:
www.learn-linux.eu.     14400   IN      A       193.33.111.185

;; AUTHORITY SECTION:
learn-linux.eu.         14400   IN      NS      ns1.learn-linux.eu.

;; ADDITIONAL SECTION:
ns1.learn-linux.eu.     14400   IN      A       193.33.111.185

;; Query time: 0 msec
;; SERVER: 193.33.111.185#53(193.33.111.185)
;; WHEN: Mon May 18 15:15:22 CEST 2020
;; MSG SIZE  rcvd: 97

command dig learn-linux.eu result

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-16.P2.el7_8.3 <<>> learn-linux.eu
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60013
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;learn-linux.eu.                        IN      A

;; ANSWER SECTION:
learn-linux.eu.         14400   IN      A       193.33.111.185

;; AUTHORITY SECTION:
learn-linux.eu.         14400   IN      NS      ns1.learn-linux.eu.

;; ADDITIONAL SECTION:
ns1.learn-linux.eu.     14400   IN      A       193.33.111.185

;; Query time: 0 msec
;; SERVER: 193.33.111.185#53(193.33.111.185)
;; WHEN: Tue May 19 09:46:35 CEST 2020
;; MSG SIZE  rcvd: 93

named-checkzone

[pawel@learn-linux ~]$ sudo named-checkzone learn-linux.eu /var/named/learn-linux.db
zone learn-linux.eu/IN: loaded serial 13
OK

named status

[pawel@learn-linux pawel]# systemctl status named
● named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-05-19 09:37:45 CEST; 4s ago
  Process: 1593 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
  Process: 1608 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)
  Process: 1605 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=0/SUCCESS)
 Main PID: 1610 (named)
   CGroup: /system.slice/named.service
           └─1610 /usr/sbin/named -u named -c /etc/named.conf -4

May 19 09:37:45 learn-linux.eu named[1610]: zone 111.33.193.in-addr.arpa/IN: loaded serial 8
May 19 09:37:45 learn-linux.eu named[1610]: zone localhost/IN: loaded serial 0
May 19 09:37:45 learn-linux.eu named[1610]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
May 19 09:37:45 learn-linux.eu named[1610]: zone learn-linux.eu/IN: loaded serial 14
May 19 09:37:45 learn-linux.eu named[1610]: zone localhost.localdomain/IN: loaded serial 0
May 19 09:37:45 learn-linux.eu named[1610]: all zones loaded
May 19 09:37:45 learn-linux.eu named[1610]: running
May 19 09:37:45 learn-linux.eu systemd[1]: Started Berkeley Internet Name Domain (DNS).
May 19 09:37:45 learn-linux.eu named[1610]: managed-keys-zone: Key 20326 for zone . acceptance timer complete: key now trusted
May 19 09:37:45 learn-linux.eu named[1610]: resolver priming query complete

On firewall i added 53/udp port.
In /etc/resolv.conf i added

nameserver 193.33.111.185

in /etc/sysconfig/network-scripts/ifcfg-eth0 i added

DNS1=193.33.111.185

But my zone still not working with www and without www. In the company where I bought the domain, I set the ns domain to ns1.learn-linux.eu. What i do wrong? I’ve been trying to fix it since yesterday, but to no avail.

Go to Source
Author: PawelC