Coder Social home page Coder Social logo

sap-nw-abap-docker's Introduction

Hi there ๐Ÿ‘‹

sap-nw-abap-docker's People

Contributors

filak-sap avatar hir0ki avatar tobiashofmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sap-nw-abap-docker's Issues

Running the instance on Windows 10

Hi,
thanks for this project.
I successfully run the docker build.

First thing is - after installation and starting the container I have these profiles:

vhcalnplci:/sapmnt/NPL/profile # ls
DEFAULT.PFL NPL_ASCS01_b0df04eb9799 NPL_D00_b0df04eb9799

startsap ALL is not working until I put this in /etc/hosts
172.17.0.2 vhcalnplci
172.17.0.2 b0df04eb9799 <--- this is the entry I have to add

After changes startsap ALL fires up the server, but I don't know how to perform the rest of the setup under Windows 10.

I have inspected the docker container via "docker inspect nwabap752", got the port for the SAPGUI.

"Ports": {
"3200/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "32771"
}
],

Then I follow the video: https://youtu.be/H0GEg8r7P48?t=653

So I put the connection string conn=/H/localhost/S/32771 to SAPGUI Java
but what I get is:
Error: connection to partner '127.0.0.1:32771' broken

Any clues?

Regards,
Jacek

Sybase instance doesn't start on Linux

Hello,
I'm trying to run docker container but on Linux. Unfortunatelly without succes.
Build process is successfull and container can be started without errors.

After initial start I'm doing the same hostname "adjustment" in /etc/hosts and /etc/hostname

After startsap ALL instance is trying to start but at some point it dies. Traces shows following issue

C    Last SYBASE DBSL patchcomment SAP Support Package Stack Kernel 7.53 Patch Level 400 (2752112)
C  ERROR: -1 in function SQLConnectWithRetry (SQLConnectWithRetry) [line 6164]
C  (30294) [HY000] [SAP][ASE ODBC Driver]There is no server listening at vhcalnplci:4901
C  ERROR: -1 in function SQLConnectWithRetry (SQLConnectWithRetry) [line 6164]

Indeed Sybase DB is listening only on 4902 as per netstat

vhcalnplci:npladm 21> netstat -an | grep 49
tcp        0      0 172.17.0.2:4902         0.0.0.0:*               LISTEN      
udp        0      0 127.0.0.1:35785         127.0.0.1:64996         ESTABLISHED 
udp        0      0 127.0.0.1:36904         127.0.0.1:64998         ESTABLISHED 
udp        0      0 127.0.0.1:58794         127.0.0.1:64997         ESTABLISHED 
udp        0      0 127.0.0.1:42522         127.0.0.1:64999         ESTABLISHED 

However port in DEFAULT.PFL is configured with different value:

vhcalnplci:npladm 25> less DEFAULT.PFL | grep dbs
dbs/syb/schema = SAPSR3
dbs/syb/server = vhcalnplci
dbs/syb/dbname = NPL
dbs/syb/port = 4901
dbs/syb/cache_size = 300

Also in /sybase/NPL/interfaces we have

NPL
        master tcp ether 5c044ae0c72d 4901
        query tcp ether 5c044ae0c72d 4901
NPL_BS
        master tcp ether 5c044ae0c72d 4902
        query tcp ether 5c044ae0c72d 4902
NPL_JSAGENT
        master tcp ether 5c044ae0c72d 4903
        query tcp ether 5c044ae0c72d 4903

Why Sybase is not starting on port 4901 then?

chmod: cannot access 'install.sh': No such file or directory

Hi,

I have the following issue, can you help me, please?

Step 9/16 : RUN chmod +x install.sh
---> Running in 9048f92aabb2
chmod: cannot access 'install.sh': No such file or directory
The command '/bin/sh -c chmod +x install.sh' returned a non-zero code: 1

modlib.jslib.caughtException during ./install.sh -s -k

Hi,

i got the the same problem with ./run.sh, that "enter" will not continue installation. So I tried to execute ./install.sh -s -k direct, but i also get some trouble there.

...
a /tmp/sapinst_instdir/NW73/SBC/STANDARD/start_dir.cd
a /tmp/sapinst_instdir/NW73/SBC/STANDARD/stepKeydbClient.dmp
a /tmp/sapinst_instdir/NW73/SBC/STANDARD/syslib_priv.log
################################################
Abort execution because of
Step returns modlib.jslib.caughtException
################################################

INFO 2018-09-30 14:52:10.043 (root/sapinst) (startInstallation) [syuxcdir.cpp:147] id=syslib.filesystem.removedDirectory CSyDirectoryImpl::sap_remove(ISyFSErrorHandler * pErrorHandler)
Removed directory /root/.sapinst/vhcalnplci/262.

Error: sapinst has finished with an error code, please find logs in /tmp/sapinst_instdir
All logs have been written to the file /tmp/NW752/install_2018-09-30_14-50-53.log
Please see readme.html to find out how to get help


Here is the log file

vhcalnplci:/tmp/NW752 # vi install_2018-09-30_14-50-53.log

Script version: c95e4ee99a5b9ca25fc1d4d872bdc0b9 /tmp/NW752/install.sh
Found files from previous installation, please clean up if you want to run a
new installation! Otherwise, we just overwrite /sapmnt/NPL directory, so that
you can safely resume the installation
Running on tested distribution opensuse
To install this TestDrive you have to accept
the SAP COMMUNITY DEVELOPER License (DEV).
Do you agree to the above license terms? yes/no:
User's response to the accept license prompt = 'yes'
Please enter a password:
Please re-enter password for verification:
extracting data archives...
extracting /tmp/NW752/server/TAR/x86_64/sapmnt.tgz-*
Kernel parameters not set!
Checking presence of new SYBASE license file
Updated the license file /sybase/NPL/SYSAM-2_0/licenses
Install service
Check Installation Path ...
ok
Copy Executable ...
ok
Generate Profile ...
ok
Install SYS-V service ...
ok
-> Start /usr/sap/hostctrl/exe/saphostexec pf=/usr/sap/hostctrl/exe/host_profile <-
start hostcontrol using profile /usr/sap/hostctrl/exe/host_profile
ok
[OK] SAPHostExec / SAPHostControl succesfully installed
Executing: "/usr/sap/hostctrl/exe/SAPCAR" -xvf "./SHADBMETRICSDEF.SAR" -R "/usr/sap/hostctrl/exe/config.d"
SAPCAR: processing archive ./SHADBMETRICSDEF.SAR (version 2.01)
x dbmetric.definition.db4.cimobj
x dbmetric.definition.db6.cimobj
x dbmetric.definition.hdb.cimobj
x dbmetric.definition.mss.cimobj
x dbmetric.definition.ora.cimobj
x dbmetric.definition.sap.cimobj
x dbmetric.definition.siq.cimobj
x dbmetric.definition.syb.cimobj
x dbmetric.definition.tst.cimobj
x dbmetrics.d
x dbmetrics.d/00.general.hdb.cimobj
x dbmetrics.d/00.state.hdb.cimobj
x dbmetrics.d/10.host.capacity.hdb.cimobj
x dbmetrics.d/20.indexserver.hdb.cimobj
x dbmetrics.d/20.nameserver.hdb.cimobj
SAPCAR: 15 file(s) extracted
SAPCAR: rc 0
=>sapparam(1c): No Profile used.
=>sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
################################################
Abort execution because of
Step returns modlib.jslib.caughtException
################################################
Error: sapinst has finished with an error code, please find logs in /tmp/sapinst_instdir
Error code: 20
++++ Support data section BEGIN ++++

  • mount
    overlay on / type overlay (rw,relatime,lowerdir=/var/lib/docker/overlay2/l/EHLQ36766ARHC77VZ2WQXMHNIM:/var/lib/docker/overlay2/l/HV2O6ICWHI7YM7J77YGGJP5JDM:/var/lib/docker/overlay2/l/AIHF6VTM4LQ2RMU5ZYFULQK57J:/var/lib/docker/overlay2/l/LKWROMOFKGAOLZYUBOW43GTFJK:/var/lib/docker/overlay2/l/QHSFSB2WNEJ7P4PDDSQAB5DEWZ:/var/lib/docker/overlay2/l/NCEF6FIDWA2LYJRI7QB4VGIM25:/var/lib/docker/overlay2/l/LVVITFZP7Y4F3JFTVKBAUERROY:/var/lib/docker/overlay2/l/GQSVUGBEMS3KHKEP4EFKEGYVF2,upperdir=/var/lib/docker/overlay2/61e3f0b69c8218365a383108f1d83981bf84fda244f8d0bc8b8e7cea5467da37/diff,workdir=/var/lib/docker/overlay2/61e3f0b69c8218365a383108f1d83981bf84fda244f8d0bc8b8e7cea5467da37/work)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /dev type tmpfs (rw,nosuid,size=65536k,mode=755)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666)
    sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
    tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,relatime,mode=755)
    cgroup on /sys/fs/cgroup/systemd type cgroup (ro,nosuid,nodev,noexec,relatime,xattr,name=systemd)
    cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (ro,nosuid,nodev,noexec,relatime,net_cls,net_prio)
    cgroup on /sys/fs/cgroup/freezer type cgroup (ro,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/pids type cgroup (ro,nosuid,nodev,noexec,relatime,pids)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (ro,nosuid,nodev,noexec,relatime,cpuset)
    cgroup on /sys/fs/cgroup/devices type cgroup (ro,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/blkio type cgroup (ro,nosuid,nodev,noexec,relatime,blkio)
    cgroup on /sys/fs/cgroup/memory type cgroup (ro,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (ro,nosuid,nodev,noexec,relatime,cpu,cpuacct)
    cgroup on /sys/fs/cgroup/rdma type cgroup (ro,nosuid,nodev,noexec,relatime,rdma)
    cgroup on /sys/fs/cgroup/hugetlb type cgroup (ro,nosuid,nodev,noexec,relatime,hugetlb)
    cgroup on /sys/fs/cgroup/perf_event type cgroup (ro,nosuid,nodev,noexec,relatime,perf_event)
    mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
    /dev/sda2 on /etc/resolv.conf type ext4 (rw,relatime,errors=remount-ro,data=ordered)
    /dev/sda2 on /etc/hostname type ext4 (rw,relatime,errors=remount-ro,data=ordered)
    /dev/sda2 on /etc/hosts type ext4 (rw,relatime,errors=remount-ro,data=ordered)
    shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)
    devpts on /dev/console type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666)
    proc on /proc/asound type proc (ro,relatime)
    proc on /proc/bus type proc (ro,relatime)
    proc on /proc/fs type proc (ro,relatime)
    proc on /proc/irq type proc (ro,relatime)
    proc on /proc/sys type proc (ro,relatime)
    proc on /proc/sysrq-trigger type proc (ro,relatime)
    tmpfs on /proc/kcore type tmpfs (rw,nosuid,size=65536k,mode=755)
    tmpfs on /proc/timer_list type tmpfs (rw,nosuid,size=65536k,mode=755)
    tmpfs on /proc/sched_debug type tmpfs (rw,nosuid,size=65536k,mode=755)
    tmpfs on /proc/scsi type tmpfs (ro,relatime)
    tmpfs on /sys/firmware type tmpfs (ro,relatime)
  • df -h
    Filesystem Size Used Avail Use% Mounted on
    overlay 219G 94G 115G 45% /
    tmpfs 64M 0 64M 0% /dev
    tmpfs 16G 0 16G 0% /sys/fs/cgroup
    /dev/sda2 219G 94G 115G 45% /etc/hosts
    shm 64M 0 64M 0% /dev/shm
    tmpfs 16G 0 16G 0% /proc/scsi
    tmpfs 16G 0 16G 0% /sys/firmware
  • df -hi
    Filesystem Inodes IUsed IFree IUse% Mounted on
    overlay 14M 251K 14M 2% /
    tmpfs 4.0M 17 4.0M 1% /dev
    tmpfs 4.0M 17 4.0M 1% /sys/fs/cgroup
    /dev/sda2 14M 251K 14M 2% /etc/hosts
    shm 4.0M 1 4.0M 1% /dev/shm
    tmpfs 4.0M 1 4.0M 1% /proc/scsi
    tmpfs 4.0M 1 4.0M 1% /sys/firmware
  • cat /etc/os-release
    NAME="openSUSE Leap"
    VERSION="42.3"
    ID=opensuse
    ID_LIKE="suse"
    VERSION_ID="42.3"
    PRETTY_NAME="openSUSE Leap 42.3"
    ANSI_COLOR="0;32"
    CPE_NAME="cpe:/o:opensuse:leap:42.3"
    BUG_REPORT_URL="https://bugs.opensuse.org"
    HOME_URL="https://www.opensuse.org/"
  • ls -ld / /sybase /usr/sap /sapmnt
    drwxr-xr-x 1 root root 4096 Sep 30 14:50 /
    drwxr-xr-x 1 root root 4096 Jul 17 13:26 /sapmnt
    drwxr-x--- 1 sybnpl sapsys 4096 Feb 20 2017 /sybase
    drwxr-xr-x 1 root root 4096 Sep 30 14:37 /usr/sap
    ++++ Support data section END ++++
    All logs have been written to the file /tmp/NW752/install_2018-09-30_14-50-53.log
    Please see readme.html to find out how to get help

Maybe you can help. Would be very nice.

Thx Stefan

Error processing tar file(exit status 1): unexpected EOF

Running docker build -t nwabap . with NW752
ends with this error message:
Error processing tar file(exit status 1): unexpected EOF

So building the container fails.

[...]

Checking syb Database
Database is running
-------------------------------------------
Starting Startup Agent sapstartsrv
OK
Instance Service on host 76b9bf849409 started
-------------------------------------------
starting SAP Instance ASCS01
Startup-Log is written to /home/npladm/startsap_ASCS01.log
-------------------------------------------
/usr/sap/NPL/ASCS01/exe/sapcontrol -prot NI_HTTP -nr 01 -function Start
Instance on host 76b9bf849409 started
Starting Startup Agent sapstartsrv
OK
Instance Service on host 76b9bf849409 started
-------------------------------------------
starting SAP Instance D00
Startup-Log is written to /home/npladm/startsap_D00.log
-------------------------------------------
/usr/sap/NPL/D00/exe/sapcontrol -prot NI_HTTP -nr 00 -function Start
Instance on host 76b9bf849409 started
Installation of NPL successful
 
Error processing tar file(exit status 1): unexpected EOF

Errors while bulding: net-tools-deprecated not found & chown: invalid user: 'uuidd'

I am trying to build the docker file for nw 7.52 sp4 and get 2 errors:

  1. The dockerfiles references opensuse/archive;latest. With the actual version tagged as latest (42.1) I get the error that the package "net-tools-deprectated" is not available
    -> after changing to opensuse/archive:42.1 the error disappears an the package can be downloaded
  2. chown: invalid user: 'uuidd'
    The command '/bin/sh -c mkdir /run/uuidd && chown uuidd /var/run/uuidd && /usr/sbin/uuidd' returned a non-zero code: 1

Error: connection to partner 'localhost:3200' broken

Hi,

I have the following issue in sap gui for java mac:

Connection closed
Error: connection to partner 'localhost:3200' broken
Thu Feb 28 18:32:28 2019
Release 753
Component NI (network interface), version 40
rc = -6, module
/net/usr.delivery/SAPGUIForJava_750_REL/bas_753_REL/src/base/ni/nixxi.cpp,
line 5173
Detail NiIRead: P=127.0.0.1:3200; L=127.0.0.1:55510
System Call recv

Reviewed the ports in the container:
vhcalnplci:/var/tmp/NW752 # nmap 172.17.0.3 -p 3200

Starting Nmap 6.47 ( http://nmap.org ) at 2019-02-28 21:16 UTC
Nmap scan report for vhcalnplci (172.17.0.3)
Host is up (0.00011s latency).
PORT STATE SERVICE
3200/tcp closed tick-port

Also in the host local:
bash-3.2$ nmap localhost -p 3200
Starting Nmap 7.70 ( https://nmap.org ) at 2019-02-28 22:11 -03
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00031s latency).
Other addresses for localhost (not scanned): ::1

PORT STATE SERVICE
3200/tcp open tick-port

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
bash-3.2$

Can you help me, please?

run.sh missing

Hi,

I did follow your instructions on how to generate the docker image. After starting the instance, i am located in folder /var/tmp/NW752, which doesn't really exists anymore by this point. I cannot find the run.sh script in the container, can you help me out?

Missed commands to update ASE License

The ASE license need to be updated.A second installation with the new license updated, after the first run script is needed, I think. I didn't found the way to make it work, :

after first installation

RUN rm /sybase/NPL/SYSAM-2_0/licenses/SYBASE_ASE_TestDrive.lic
COPY td /sybase/NPL/SYSAM-2_0/licenses/ (new license)
RUN chmod 777 /sybase/NPL/SYSAM-2_0/licenses/SYBASE_ASE_TD.lic
RUN chown sybnpl /sybase/NPL/SYSAM-2_0/licenses/SYBASE_ASE_TD.lic (not working sybnpl user doesn't exist)
RUN chgrp sapsys /sybase/NPL/SYSAM-2_0/licenses/SYBASE_ASE_TD.lic
second installation
RUN ./run2.sh (manage the script with the answer for the second installation).

Many Thanks

bash: startsap: command not found

Successfully managed to install the SAP NW 7.52 into the docker image however, after initiating the container I was prompted to the below PWD and when I run the STARTSAP command it does not recognize this

% docker run -P -h vhcalnplci --name nwabap752 -it nwabap:latest /bin/bash
vhcalnplci:/var/tmp/NW752 # startsap
bash: startsap: command not found
vhcalnplci:/var/tmp/NW752 #

Windows 10 build - COPY Failed at step 7/16

Hi @tobiashofmann,

I'm sure this is as illy mistake but when I run the build command I get the error below:

Sending build context to Docker daemon  29.42GB
Step 1/16 : FROM opensuse/archive:latest
 ---> d9e50bf28896
Step 2/16 : LABEL de.itsfullofstars.sapnwdocker.version="1.0.0"
 ---> Using cache
 ---> 4df71ee90ee5
Step 3/16 : LABEL de.itsfullofstars.sapnwdocker.vendor="Tobias Hofmann"
 ---> Using cache
 ---> 6c554e2e7fe8
Step 4/16 : LABEL de.itsfullofstars.sapnwdocker.name="Docker for SAP NetWeaver 7.5x Developer Edition"
 ---> Using cache
 ---> dfe360a620f4
Step 5/16 : RUN zypper --non-interactive install --replacefiles uuidd expect tcsh which vim hostname tar net-tools iputils libaio iproute2 gzip;     zypper clean
 ---> Using cache
 ---> d79af233ddfd
Step 6/16 : RUN mkdir /run/uuidd && chown uuidd /var/run/uuidd && /usr/sbin/uuidd
 ---> Using cache
 ---> 5b5e9d6aab58
Step 7/16 : COPY NW752 /var/tmp/NW752/
COPY failed: stat /var/lib/docker/tmp/docker-builder543000156/NW752: no such file or directory

I believe I've followed all the instructions correctly including having the docker file in the same directory as the extracted SAP files.

Any idea where I've gone wrong? (Trying in windows 10)

Thanks!
B

issue while docker build

Hi ,
after running code
docker build -t nwabap .

i am getting below in command prompt

Step 15/15 : RUN ./run.sh
---> Running in 40ddce4e4402
spawn ./install.sh -s -k
Hostname check skipped!
Hit enter to continue!

if i hit enter nothing happens then i did ctrl+c which ends the thing and i am not able to run below command
docker run -P -h vhcalnplci --name nwabap752 -it nwabap:latest /bin/bash

can you help here ?
Thanks
Yashpal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.