tobiashofmann / sap-nw-abap-docker Goto Github PK
View Code? Open in Web Editor NEWSAP NetWeaver ABAP Developer Edition in Docker
License: GNU General Public License v3.0
SAP NetWeaver ABAP Developer Edition in Docker
License: GNU General Public License v3.0
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
With the latest changes to OpenSuSE in DockerHub the build broke.
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?
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
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 ++++
Maybe you can help. Would be very nice.
Thx Stefan
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
I am trying to build the docker file for nw 7.52 sp4 and get 2 errors:
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?
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?
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
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 #
Hi,
Please How could i add the option connection type Web As ABAP in SAP GUI for Java MAC?
Thanks.
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
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
Hi, in fact, it is possible to build the docker image without user interaction:
https://github.com/filak-sap/sap-nw-abap-docker
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.