22.05.2018

Docker: Lessons learned - Logging

After some time working with docker here my experiences:

Some days ago i created my own container with a minimal web service.

Here the ncweb.sh:
#!/bin/ash
sed -i  's/Hostname:.*/Hostname: '$HOSTNAME'/g' index.html
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; cat index.html;}  | nc  -l -p 8080  2>&1 >> logfile; done 
This is the Dockerfile:
FROM alpine

WORKDIR /tmp

RUN mkdir ncweb

ADD .  /tmp

ENTRYPOINT [ "/tmp/ncweb.sh" ]

After building the image
docker build -t ncweb:0.4 .
And starting the container:
docker run -d -p 8080:8080 ncweb:0.4 --name ncweb0.4
I was able to connect to the container and view the log:

To get the right command:
docker ps  |grep  ncweb:0.4 |awk '{print "docker exec -it "$1" ash"}'
and then use the output:
docker exec -it e4f9960fc8e5 ash
alpine:~/ncweb# docker exec -it e4f9960fc8e5 ash
/tmp # ls
Dockerfile  hexdump     index.html  logfile     ncweb       ncweb.sh
/tmp # cat logfile 
GET / HTTP/1.1
Host: 192.168.178.46:8080
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en,de;q=0.7,en-US;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Cache-Control: max-age=0

Thu May 10 10:01:23 UTC 2018 request done
But this is not the right way.
If i change the ncweb.sh to
#!/bin/ash
sed -i  's/Hostname:.*/Hostname: '$HOSTNAME'/g' index.html
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; cat index.html;}  | nc  -l -p 8080 ;done 
then you can do the following (after building a new container version):

alpine:~/ncweb# docker run -d -p 8080:8080 ncweb:0.5 --name ncweb0.5

9589f77fc289a3713354a365f8f08098279e6d0e893de99a0431d8fbd62c834a

alpine:~/ncweb# docker ps

CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES

9589f77fc289        ncweb:0.5           "/tmp/ncweb.sh --n..."   8 seconds ago       Up 7 seconds        0.0.0.0:8080->8080/tcp   gracious_archimedes
To get the logs (which are written to STDOUT):

alpine:~/ncweb# docker logs -f 9589f77fc289

GET / HTTP/1.1

Host: 192.168.178.46:8080

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en,de;q=0.7,en-US;q=0.3

Accept-Encoding: gzip, deflate

Connection: keep-alive

Upgrade-Insecure-Requests: 1

Cache-Control: max-age=0


Conclusion: It is better to use STDOUT than local logfiles. Or even better: use syslog or other central logging mechanisms.

Related posts:



18.05.2018

Virtualbox: vboxdrv.sh: failed & Run 'make oldconfig && make prepare'

After updating to ubuntu 18.04 i had to reinstall virtualbox:


# dpkg -i virtualbox-5.2_5.2.10-122088~Debian~stretch_amd64.deb 
Vormals nicht ausgewähltes Paket virtualbox-5.2 wird gewählt.
(Lese Datenbank ... 378316 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von virtualbox-5.2_5.2.10-122088~Debian~stretch_amd64.deb ...
Entpacken von virtualbox-5.2 (5.2.10-122088~Debian~stretch) ...
virtualbox-5.2 (5.2.10-122088~Debian~stretch) wird eingerichtet ...
addgroup: Die Gruppe »vboxusers« existiert bereits als Systemgruppe. Programmende.
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
Trigger für systemd (237-3ubuntu10) werden verarbeitet ...
Trigger für ureadahead (0.100.0-20) werden verarbeitet ...
Trigger für gnome-menus (3.13.3-11ubuntu1) werden verarbeitet ...
Trigger für bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) werden verarbeitet ...
Rebuilding /usr/share/applications/bamf-2.index...
Trigger für desktop-file-utils (0.23-1ubuntu3) werden verarbeitet ...
Trigger für mime-support (3.60ubuntu1) werden verarbeitet ...
Trigger für hicolor-icon-theme (0.17-2) werden verarbeitet ...
Trigger für shared-mime-info (1.9-2) werden verarbeitet ...
But this just failed with the following error (i am running my own kernel because of suspend to disk issues) inside /var/log/vbox-install.log:

test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        \
echo >&2;                            \
echo >&2 "  ERROR: Kernel configuration is invalid.";        \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";    \
echo >&2 ;                            \
/bin/false)
mkdir -p /lib/modules/4.17.0-rc3/misc

and at the end:

/tmp/vbox.0/linux/VBoxPci-linux.c:92:40: error: implicit declaration of function ‘pci_get_bus_and_slot’; did you mean ‘pci_get_domain_bus_and_slot’? [-Werror=implicit-function-declaration]
 # define PCI_DEV_GET_SLOT(bus, devfn)  pci_get_bus_and_slot(bus, devfn)
                                        ^
/tmp/vbox.0/linux/VBoxPci-linux.c:397:15: note: in expansion of macro ‘PCI_DEV_GET_SLOT’
     pPciDev = PCI_DEV_GET_SLOT(uBus, uDevFn);
               ^~~~~~~~~~~~~~~~
/tmp/vbox.0/linux/VBoxPci-linux.c:397:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     pPciDev = PCI_DEV_GET_SLOT(uBus, uDevFn);
             ^
/tmp/vbox.0/linux/VBoxPci-linux.c: In function ‘vboxPciOsDevInit’:
/tmp/vbox.0/linux/VBoxPci-linux.c:648:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
         pPciDev = PCI_DEV_GET_SLOT((pIns->HostPciAddress) >> 8,
                 ^
cc1: some warnings being treated as errors
scripts/Makefile.build:312: recipe for target '/tmp/vbox.0/linux/VBoxPci-linux.o' failed
make[2]: *** [/tmp/vbox.0/linux/VBoxPci-linux.o] Error 1
Makefile:1568: recipe for target '_module_/tmp/vbox.0' failed
make[1]: *** [_module_/tmp/vbox.0] Error 2
/tmp/vbox.0/Makefile.include.footer:101: recipe for target 'vboxpci' failed
make: *** [vboxpci] Error 2

Starting virtualbox shows:


The virtual machine 'Docker on Alpine LInux' has terminated unexpectedly during startup with exit code 1 (0x1).

Fehlercode:NS_ERROR_FAILURE (0x80004005)
Komponente:MachineWrap
Interface:IMachine {85cd948e-a71f-4289-281e-0ca7ad48cd89}

There are many postings out there how to fix this.
But is easier than everything written there:

Change to /lib/modules/4.17.0-rc3/misc and type:
modprobe vboxdrv
modprobe vboxnetadp
modprobe vboxnetflt

And after that everything works like expected.


13.05.2018

Ubuntu 16.04: Installation of chrome-browser fails with libnss3 (>= 2:3.22)

On my old laptop with ubuntu 16.04 i tried to install "chrome-browser":
# dpkg -i google-chrome-stable_current_amd64\ \(1\).deb 
Vormals nicht ausgewähltes Paket google-chrome-stable wird gewählt.
(Lese Datenbank ... 137351 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von google-chrome-stable_current_amd64 (1).deb ...
Entpacken von google-chrome-stable (64.0.3282.186-1) ...
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von google-chrome-stable:
 google-chrome-stable hängt ab von libnss3 (>= 2:3.22); aber:
  Version von libnss3:amd64 auf dem System ist 2:3.21-1ubuntu4.

dpkg: Fehler beim Bearbeiten des Paketes google-chrome-stable (--install):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Trigger für bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) werden verarbeitet ...
Rebuilding /usr/share/applications/bamf-2.index...
Trigger für gnome-menus (3.13.3-6ubuntu3) werden verarbeitet ...
Trigger für desktop-file-utils (0.22-1ubuntu5) werden verarbeitet ...
Trigger für mime-support (3.59ubuntu1) werden verarbeitet ...
Trigger für man-db (2.7.5-1) werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
 google-chrome-stable

But as you can see, this does not work ;-(
So let's clean up the installation:
# apt-get install -f
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Abhängigkeiten werden korrigiert ... Fertig
Die folgenden Pakete werden ENTFERNT:
  google-chrome-stable
0 aktualisiert, 0 neu installiert, 1 zu entfernen und 148 nicht aktualisiert.
1 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 186 MB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n] 
(Lese Datenbank ... 137451 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von google-chrome-stable (64.0.3282.186-1) ...
Trigger für man-db (2.7.5-1) werden verarbeitet ...
Trigger für bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) werden verarbeitet ...
Rebuilding /usr/share/applications/bamf-2.index...
Trigger für gnome-menus (3.13.3-6ubuntu3) werden verarbeitet ...
Trigger für desktop-file-utils (0.22-1ubuntu5) werden verarbeitet ...
Trigger für mime-support (3.59ubuntu1) werden verarbeitet ...
Several searches via google did not help.

But after a while i recognized, that chromium-browser is integrated into ubuntu. With this knowledge was easy:
# apt install chromium-browser
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
  libappindicator1 libcurl3 libdbusmenu-gtk4 libindicator7
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
Die folgenden zusätzlichen Pakete werden Installiert
  chromium-browser-l10n chromium-codecs-ffmpeg-extra
Vorgeschlagene Pakete:
  webaccounts-chromium-extension unity-chromium-extension adobe-flashplugin
Die folgenden NEUEN Pakete werden installiert:
  chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra
0 aktualisiert, 3 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 70,8 MB von 71,7 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 287 MB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n]         
Holen:1 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 chromium-browser amd64 49.0.2623.108-0ubuntu1.1233 [67,5 MB]
Holen:2 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 chromium-browser-l10n all 49.0.2623.108-0ubuntu1.1233 [3.355 kB]
Es wurden 42,6 MB in 7 s geholt (5.541 kB/s).                                                                          
Vormals nicht ausgewähltes Paket chromium-codecs-ffmpeg-extra wird gewählt.
(Lese Datenbank ... 137350 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../chromium-codecs-ffmpeg-extra_49.0.2623.108-0ubuntu1.1233_amd64.deb ...
Entpacken von chromium-codecs-ffmpeg-extra (49.0.2623.108-0ubuntu1.1233) ...
Vormals nicht ausgewähltes Paket chromium-browser wird gewählt.
Vorbereitung zum Entpacken von .../chromium-browser_49.0.2623.108-0ubuntu1.1233_amd64.deb ...
Entpacken von chromium-browser (49.0.2623.108-0ubuntu1.1233) ...
Vormals nicht ausgewähltes Paket chromium-browser-l10n wird gewählt.
Vorbereitung zum Entpacken von .../chromium-browser-l10n_49.0.2623.108-0ubuntu1.1233_all.deb ...
Entpacken von chromium-browser-l10n (49.0.2623.108-0ubuntu1.1233) ...
Trigger für man-db (2.7.5-1) werden verarbeitet ...
Trigger für bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) werden verarbeitet ...
Rebuilding /usr/share/applications/bamf-2.index...
Trigger für gnome-menus (3.13.3-6ubuntu3) werden verarbeitet ...
Trigger für desktop-file-utils (0.22-1ubuntu5) werden verarbeitet ...
Trigger für mime-support (3.59ubuntu1) werden verarbeitet ...
Trigger für hicolor-icon-theme (0.15-0ubuntu1) werden verarbeitet ...
chromium-codecs-ffmpeg-extra (49.0.2623.108-0ubuntu1.1233) wird eingerichtet ...
chromium-browser (49.0.2623.108-0ubuntu1.1233) wird eingerichtet ...
chromium-browser-l10n (49.0.2623.108-0ubuntu1.1233) wird eingerichtet ...


05.05.2018

Oracle SOA Suite 12c: Invoking a BPEL process via Jdeveloper

After you deployed a BPEL process to your application server open the application server view in Jdeveloper:
 Open the BPEL inside the Application Server view:
 Do a right click on the BPEL process and select "Test Web Service":
 This will open the HTTP Analyzer:
 Fill in your XML input and click "Send Request". After that you will see:


Very nice are the options via the tab at the bottom:
  • SOAP Strucutre
  • HTTP Content
  • REST Structure
  • Hex Content
  • Raw Message
 Here as example the output of the option "Raw Message":



02.05.2018

Operator Framework: Building application with kubernetes

Yesterday redhat announced a new framework to build applications with kubernetes:
The concept of operator framework was build in 2016 from coreos.
CoreOS released the same announcement as redhat. Not really amazing, because:

Here some text snippets from the announcement:
The Operator Framework includes:
  • Operator SDK: Enables developers to build Operators based on their expertise without requiring knowledge of Kubernetes API complexities.
  • Operator Lifecycle Management: Oversees installation, updates, and management of the lifecycle of all of the Operators (and their associated services) running across a Kubernetes cluster.
  • Operator Metering (joining in the coming months): Enables usage reporting for Operators that provide specialized services.
If you are really interested and familiar with kubernetes you can start here.
Let' s wait for the first updates und first success stories...

01.05.2018

Oracle Linux 7.5 released ?!

Oracle released its Linux in version 7.5 without a announcement on their webpages. If you ask google
oracle linux 7.5
you will be directed to this site:

But with the right search string you can find Oracle Linux 7.5 inside edelivery.oracle.com:

The new features can be found here:
or here:
 
 

30.04.2018

Ubuntu: Upgrade from 17.10 to 18.04


Last week ubuntu release 18.10 and i upgraded my notebook to the latest version.
I was running 17.10 with wayland:

$ lsb_release  -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 17.10
Release:    17.10
Codename:    artful

# do-release-upgrade -d
Neue Veröffentlichungen von Ubuntu werden gesucht
Holen:1 Signatur der Aktualisierungsanwendung [819 B]                                                                                                                                                                                   
Holen:2 Aktualisierungsanwendung [1.257 kB]                                                                                                                                                                                             
Es wurden 1.258 kB in 0 s geholt (0 B/s)                                                                                                                                                                                                
»bionic.tar.gz« wird gegenüber »bionic.tar.gz.gpg« legitimiert 
»bionic.tar.gz« wird entpackt

Zwischenspeicher wird gelesen

Paketverwaltung wird überprüft
Paketlisten werden gelesen … Fertig
Abhängigkeitsbaum wird aufgebaut.        
Statusinformationen werden eingelesen. … Fertig
OK http://de.archive.ubuntu.com/ubuntu artful InRelease                                                                                                                                                                                 
OK http://archive.canonical.com/ubuntu xenial InRelease                                                                                                                                                                                 
OK http://security.ubuntu.com/ubuntu artful-security InRelease                                                                                                                                                                          
Ign http://ppa.launchpad.net/librepilot/release/ubuntu artful InRelease                                                                                                                                                                 
OK http://de.archive.ubuntu.com/ubuntu artful-updates InRelease                                                                                                                                                                         
OK https://download.docker.com/linux/ubuntu artful InRelease                                                                                                                                                                            
OK http://de.archive.ubuntu.com/ubuntu artful-backports InRelease                                                                                                                                                                       
Fehl http://ppa.launchpad.net/librepilot/release/ubuntu artful Release                                                                                                                                                                  
  404  Not Found                                                                                                                                                                                                                        
Es wurden 0 B in 0 s geholt (0 B/s)                                                                                                                                                                                                     
Paketlisten werden gelesen … Fertig            
Abhängigkeitsbaum wird aufgebaut.               
Statusinformationen werden eingelesen. … Fertig

Informationen zu Paketquellen werden aktualisiert

Paketquellen von Drittanbietern deaktiviert 

Einige Paketquellen von Drittanbietern wurden deaktiviert. Sie können 
diese nach der Systemaktualisierung mit dem Programm 
»Software-Paketquellen« oder mit »Synaptic« wieder aktivieren. 

Um fortzufahren, drücken Sie [ENTER]



  
Holen:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [65,4 kB]                                                                                                                                                           
Holen:2 http://de.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]                                                                                                                                                                   
Holen:3 http://de.archive.ubuntu.com/ubuntu bionic-updates InRelease [65,4 kB]                                                                                                                                                          
Holen:4 http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease [65,5 kB]                                                                                                                                                        
Holen:5 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1.019 kB]                                                                                                                                                       
Holen:6 http://de.archive.ubuntu.com/ubuntu bionic/main i386 Packages [1.007 kB]                                                                                                                                                        
Holen:7 http://de.archive.ubuntu.com/ubuntu bionic/main Translation-de [454 kB]                                                                                                                                                         
Holen:8 http://de.archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]                                                                                                                                                         
Holen:9 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]                                                                                                                                                  
Holen:10 http://de.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]                                                                                                                                                    
Holen:11 http://de.archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9.184 B]                                                                                                                                                 
Holen:12 http://de.archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [9.156 B]                                                                                                                                                  
Holen:13 http://de.archive.ubuntu.com/ubuntu bionic/restricted Translation-de [2.268 B]                                                                                                                                                 
Holen:14 http://de.archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3.584 B]                                                                                                                                                 
Holen:15 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8.570 kB]                                                                                                                                                  
Holen:16 http://de.archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8.531 kB]                                                                                                                                                   
Holen:17 http://de.archive.ubuntu.com/ubuntu bionic/universe Translation-en [4.941 kB]                                                                                                                                                  
Holen:18 http://de.archive.ubuntu.com/ubuntu bionic/universe Translation-de [2.272 kB]                                                                                                                                                  
Holen:19 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3.287 kB]                                                                                                                                           
Holen:20 http://de.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8.420 kB]                                                                                                                                              
Holen:21 http://de.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]                                                                                                                                                  
Holen:22 http://de.archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]                                                                                                                                                   
Holen:23 http://de.archive.ubuntu.com/ubuntu bionic/multiverse Translation-de [84,5 kB]                                                                                                                                                 
Holen:24 http://de.archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]                                                                                                                                                  
Holen:25 http://de.archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49,7 kB]                                                                                                                                          
Holen:26 http://de.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]                                                                                                                                              
Es wurden 41,0 MB in 6 s geholt (5.414 kB/s)                                                                                                                                                                                            

Paketverwaltung wird überprüft
Paketlisten werden gelesen … Fertig            
Abhängigkeitsbaum wird aufgebaut.               
Statusinformationen werden eingelesen. … Fertig

Änderungen werden berechnet

Änderungen werden berechnet

Möchten Sie die Systemaktualisierung starten? 


67 Pakete werden nicht mehr von Canonical unterstützt. Sie können 
allerdings immer noch Hilfe von der Gemeinschaft erhalten. 

22 Pakete werden entfernt. 222 neue Pakete werden installiert. 2255 
Pakete werden aktualisiert. 

Insgesamt müssen 1.663 M heruntergeladen werden. Das Herunterladen 
wird bei Ihrer Netzwerkverbindung etwa 5 Minuten dauern. 

Das Installieren der Systemaktualisierung kann mehrere Stunden 
dauern. Sobald das Herunterladen abgeschlossen wurde, kann der 
Vorgang nicht abgebrochen werden. 

 Fortsetzen [j/N]  Details [d]

[snip]
 Processing triggers for shim-signed (1.34.9+13-0ubuntu2) ...
Processing triggers for libvlc-bin:amd64 (3.0.1-3build1) ...
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.36.11-2) ...

Es wird nach veralteten Programmen gesucht
Paketlisten werden gelesen … Fertig            
Abhängigkeitsbaum wird aufgebaut.               
Statusinformationen werden eingelesen. … Fertig
Statusinformationen werden eingelesen. … Fertig

Veraltete Pakete entfernen? 


195 Pakete werden entfernt. 

Das Entfernen der Pakete kann mehrere Stunden dauern. 

 Fortsetzen [j/N]  Details [d]d
Fortsetzen [j/N]  Details [d]d
Fortsetzen [j/N]  Details [d]n

Die Systemaktualisierung ist abgeschlossen.

Neustart erforderlich 

Um die Systemaktualisierung abzuschließen, ist ein Neustart 
erforderlich. 
Wenn Sie »j« wählen, wird das System neu gestartet. 

Fortsetzen [j/N] j

And after the reboot the default is X11 again:
schroff@zerberus:~$ loginctl 

   SESSION        UID USER             SEAT             TTY             

         2       1000 schroff          seat0            tty2            

        c1        126 gdm              seat0            tty1            



2 sessions listed.

schroff@zerberus:~$ loginctl  show-session 2 -p Type

Type=x11
It looks like there is one error left:


But i think i will ignore this error:
check-new-release-gtk: TypeError: Gtk.init_check() takes exactly 0 arguments (1 given)
And finally the check for the new release:
$ lsb_release -a

No LSB modules are available.

Distributor ID:    Ubuntu

Description:    Ubuntu 18.04 LTS

Release:    18.04

Codename:    bionic

29.04.2018

Oracle SOA Suite 12c: complete startup procedure including database and application server

After the first reboot i had to work hard to get the complete system up again. So here a list of all commands:


  1. database
    export ORACLE_HOME=/home/oracle/app/oracle/product/12.2.0/dbhome_1
    export PATH=$PATH:$ORACLE_HOME/bin
    export ORACLE_SID=orcl

    $ sqlplus / as sysdba

    SQL*Plus: Release 12.2.0.1.0 Production on Fri Feb 16 20:53:02 2018

    Copyright (c) 1982, 2016, Oracle.  All rights reserved.

    Connected to an idle instance.

    SQL> startup
    ORACLE instance started.

    Total System Global Area 1560281088 bytes
    Fixed Size            8793160 bytes
    Variable Size         1006633912 bytes
    Database Buffers      536870912 bytes
    Redo Buffers            7983104 bytes
    Datenbank mounted.
    Datenbank geoffnet.
    SQL> alter pluggable database soasuite12c open;

    Integrierbare Datenbank geandert.
  2. listener
    $ lsnrctl start

    LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 16-FEB-2018 21:09:17

    Copyright (c) 1991, 2016, Oracle.  All rights reserved.

    Starting /home/oracle/app/oracle/product/12.2.0/dbhome_1/bin/tnslsnr: please wait...

    TNSLSNR for Linux: Version 12.2.0.1.0 - Production
    System parameter file is /home/oracle/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora
    Log messages written to /home/oracle/app/oracle/diag/tnslsnr/mywww/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 12.2.0.1.0 - Production
    Start Date                16-FEB-2018 21:09:17
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /home/oracle/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /home/oracle/app/oracle/diag/tnslsnr/mywww/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    The listener supports no services
    The command completed successfully

    Wait some seconds and then:$ lsnrctl status

    LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 16-FEB-2018 21:09:35

    Copyright (c) 1991, 2016, Oracle.  All rights reserved.

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 12.2.0.1.0 - Production
    Start Date                16-FEB-2018 21:09:17
    Uptime                    0 days 0 hr. 0 min. 18 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /home/oracle/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /home/oracle/app/oracle/diag/tnslsnr/mywww/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=mywww)(PORT=5500))(Security=(my_wallet_directory=/home/oracle/app/oracle/product/12.2.0/dbhome_1/admin/orcl/xdb_wallet))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "5a81d0aff5393ed2e055000000000001" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "5af731f7368117fbe055000000000001" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclpdb" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "soasuite12c" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully

    and a check with sqlplus:
    $  sqlplus bpeladmin@soasuite12c

    SQL*Plus: Release 12.2.0.1.0 Production on Fri Feb 16 21:09:40 2018

    Copyright (c) 1982, 2016, Oracle.  All rights reserved.

    Enter password:
    Letzte erfolgreiche Anmeldezeit: So Jan 21 2018 21:05:53 +01:00

    Verbunden mit:
    Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
  3. application server
    export PATH=/home/data/opt/jdk1.8.0_131/bin:$PATH
    export JAVA_HOME=/home/data/opt/jkd1.8.0_131

    $cd Oracle/Middleware/Oracle_Home/user_projects/domains/_domain/bin/
    $ nohup ./startNodeManager.sh &

    start the AdminServer
    $nohup ./startWeblogic.sh &

    and wait for:

    <16 .02.2018="" 21:20="" mez="" uhr="">
    <16 .02.2018="" 21:17="" mez="" uhr="">
    via tail -f nohup.out
    start the soa_server

    ./startManagedWebLogic.sh soa_server1 t3://localhost:7001

    and enter user and password when prompted

       
And then check via http://192.168.178.49:7001/console:




All installation steps can be found here:

 i had to run the

22.04.2018

Oracle VM Server: How to add ISO images to your repository

After  setting up
you have to upload some ISO images to your repository, so that your virtual machines can boot with these ISO images.

So inside Oracle VM Manager go to the "Repositories" tab and use the "import iso icon" (the blue arrow):

The only way to import ISO images is to give a URL to Oracle VM Manager:


And after pushing the ok button you can monitor the download inside the job summary tab:



Inside the repository tab you will find the ISO image after a successful download:

This ISO image can now be used inside the configuration of your VMs. (Take a look here)


21.04.2018

Oracle VM Server: my first vm: Error: HVM guest support is unavailable

All my tests with Oracle VM Server are running inside Oracle Virtualbox. If you want to do some tests yourself with this setup, you can easily get this error message after powering on your VM:

Server error: Command: ['xm', 'create', '/OVS/Repositories/0004fb0000030000dad74d9c43176d2e/VirtualMachines/0004fb00000600005e79798ecb1a63cf/vm.cfg'] failed (1): stderr: Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?
stdout: Using config file "/OVS/Repositories/0004fb0000030000dad74d9c43176d2e/VirtualMachines/0004fb00000600005e79798ecb1a63cf/vm.cfg".
To get your system running, you have to change this for your Oracle VM Server node on VirtualBox:


After that you get:

Server error: Command: ['xm', 'create', '/OVS/Repositories/0004fb0000030000dad74d9c43176d2e/VirtualMachines/0004fb0000060000b5dca8dccb8b74f6/vm.cfg'] failed (1): stderr: Error: Boot loader didn't return any data!
stdout: Using config file "/OVS/Repositories/0004fb0000030000dad74d9c43176d2e/VirtualMachines/0004fb0000060000b5dca8dccb8b74f6/vm.cfg".
But this is due to specifying no boot media at your VM. Therefore you have to add an ISO image to your Oracle VM Server repository.

17.04.2018

Docker: How to build you own container with your own application

atThere are many tutorials out there, how to create a docker container with a apache webserver inside or a nginx.
But you can hardly find a manual how to build your own docker container without pulling everything from a foreign repository.
Why should you not pull everything from foreign repositories?

You should read this article or this:
But since each phase of the development pipeline is built at a different time, …
…you can’t be sure that the same version of each dependency in the development version also got into your production version.
That is a good point.

As considered in this article you can put some more constraints into your docker file: 
FROM ubuntu:14.04.
or even
FROM ubuntu:0bf3461984f2fb18d237995e81faa657aff260a52a795367e6725f0617f7a56c
And that is the point where i tell you: Create a process to build your own docker containers from scratch and distribute them with your own repository or copy them to all your docker nodes (s. here)

So here the steps to create your own container from a local directory (here ncweb):

# ls -l ncweb/
total 12
-rw-r--r--    1 root     root            90 Nov 26 10:06 Dockerfile
-rw-r--r--    1 root     root           255 Nov 26 11:29 index.html
-rw-r--r--    1 root     root             0 Nov 26 11:29 logfile
-rwxr--r--    1 root     root           176 Nov 26 11:29 ncweb.sh  
The Dockerfile contains the following:

# ls -l ncweb/
alpine:~# cat ncweb/Dockerfile 
FROM alpine
WORKDIR /tmp
RUN mkdir ncweb
ADD .  /tmp
ENTRYPOINT [ "/tmp/ncweb.sh" ]
Into this directory you have to put everything you need, e.g. a complete JDK or your binaries or ...

And then change into this directory and build your container:

ncweb# docker build -t ncweb:0.2 .
The distribution to other docker nodes can be done like this:

# docker save ncweb:0.3 | ssh 192.168.178.47 docker load 
For more details read this posting.


Related posts:



15.04.2018

Oracle SOA Suite 12c: Invoking a BPEL process via Enterprise Manager (EM)

After you logged in via http://yourhost:7001/em navigate to "soa-infra":
 Then choose "Deployed Composites":
 There you have to click on your composite (here: "Project1"):
 Choose "Test":
 Go to the bottom of the page and expand the payload:
 There you have  fill in your test string:
 
 And after a click on "Test Web Service"
The response is shown incl. the response time.

To list the audit trails goto "Home-> Flow instances

And choose "search" on the right side: