Note:
The blog is cross posted on my blog
at SAP Community.
Today an SAP ABAP Platform 1909 SP 02 (04/2020), Developer Edition was released. It is a continuation of what I call a miniSAP system. Basically the SAP system that ABAP developers can practice on their own hardware just by themselves. It is just ABAP part of what was formerly known as SAP Basis. There are no SAP application modules as we know them available at all.
There are an official blogs and many others materials available here as SAP community pages on this topic. However, in this blog I just want to recap my installation and few errors I encounter on the way to get the system installed.
Official blog - SAP ABAP Platform 1909, Developer Edition: AVAILABLE NOW and instructions - ABAP Platform, Developer Edition By SAP SE
What is needed
1 DockerHub account:
Unlike previous installation of the NW Developer Edition which were provided via installation media this time the ABAP Platform comes as docker image. If you do not have an account at DockerHub register here - DockerHub.
2 Download Docker Desktop 3.1.0:
https://www.docker.com/products/docker-desktop The Docker Desktop WIN OS installation file is about 500MB of size. Once installed it occupies about 2.5GB.
The Docker Desktop doesn't allow you to change its installation folder nor drive. If you really need to change it there is an workaround to to do it via changing system path setup, see e.g. here.
There can be Docker initialization failure due to its service not running, just click on Start to get it started.
If possible on your hardware get WSL2 installed via following up on link provided by the Docker Desktop:
More information about WSL2 install can be found at Microsoft pages. Here’s how the WLS2 install looks like:
Installation
Now let’s start with the installation, 1st with a pull phase. Once the Docker Desktop is installed, open command prompt via Admin access and run below command to get the image downloaded:
docker pull store/saplabs/abaptrial:1909
Next is extracting phase, it is extracting to folder:
x:\Users\<user_name>\AppData\Local\Docker\wsl\data\ext4.vhdx
Pull phase of the image deployment finished:
Configuration and the virtual image to execute linux images are saved in the default Docker root folder.
x:\ProgramData\DockerDesktop
Docker
image is running by a process called vmmem
– as seen in WIN’s Task Manager:
A common error in the pull phase is that there is a message “Retrying in x seconds” message shown and nothing happens. In this case it can be that you do not have enough space on your drive. Try to free up at least 100GB as compressed image has 23.52GB and decompressed 62.4GB.
Next
is to run the container via command:
docker run --stop-timeout 3600 -i --name a4h -h vhcala4hci -p 3200:3200 -p 3300:3300 -p 8443:8443 -p 30213:30213 -p 50000:50000 -p 50001:50001 store/saplabs/abaptrial:1909
In case you get an error
like below just add an optional parameter -skip-hostname-check
to the above command.
ERROR: the following system limits are below recommended values:
(sysctl kernel.shmmni = 4096) < 32768
(sysctl vm.max_map_count = 65530) < 2147483647
(sysctl fs.file-max = 2616662) < 20000000
(sysctl fs.aio-max-nr = 65536) < 18446744073709551615
Hint: consider adding these parameters to your docker run command:
--sysctl kernel.shmmni=32768
Hint: if you are on Linux, consider running the following system commands:
sudo sysctl vm.max_map_count=2147483647
sudo sysctl fs.file-max=20000000
sudo sysctl fs.aio-max-nr=18446744073709551615
Cannot continue because of insufficient system limits configuration!
If you want to continue without recommended limits,
run again with the parameter -skip-limits-check
In case the docker run command stops with output like below:
flag provided but not defined: -sysctl
Usage of /usr/local/bin/abaptrialinit:
-agree-to-sap-license
Indicates that you agreed to the SAP Developer Center Software Developer License Agreement.
-no-asabap-license-update
Do not try to update AS ABAP license
-no-hdb-license-update
Do not try to update HDB license
-skip-hostname-check
Allows you to bypass hostname check
-skip-limits-check
Allows you to bypass sysctl and limits check
-start-as
Start only AS
-start-db
Start only DB
-start-wrk
Start only Worker
Following things needs to be checked:
- How much memory container uses:
docker exec -it a4h free -h
- What disk space is allocated to Docker container?
docker exec -it a4h df -h /
- Is database (HDB) running?
docker exec -it a4h su - hdbadm -c "sapcontrol -nr 02 -function GetProcessList"
In case you getting issue related to ports usage like below:
docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:8443: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
Most likely your host OS using port (in this case port no 8443). Thus you need to remove that process that uses that port from your host OS. You can get a help of what IP address or ports are used by container by command:
docker inspect a4h
Finally, following command worked:
docker run --stop-timeout 3600 -i --name a4h -h vhcala4hci -p 3200:3200 -p 3300:3300 -p 8443:8443 -p 30213:30213 -p 50000:50000 -p 50001:50001 store/saplabs/abaptrial:1909 -skip-limits-check
Final success message is like following:
After setup of SAP Logon Pad entry it is possible to login to the system:
Enjoy the very first version of miniSAP on SAP HANA database!
13 comments:
Thank you for your post, can you tell me how much physical memory needed by this docker, thank you.
Hello,
I'm running this docker image in laptop having 32GB of RAM. When SAP system is up and running it consumes approx 27GB of RAM. Normally I do not expect that on Windows/Mac OS 16GB of total RAM would be enough to run it. On linux based host OS it should be runable unless there are running other RAM extensive programs.
cheers
Hello Martin, I am reaching out to you because I have exhausted all other options. I have been trying to get my hands on legacy installation files for SAP NW on any kind of windows installation (something running 100% on windows). Is there any chance that you have any of those files lying around that you could share with me?
Hello,
what kind of WIN installation media are you looking for?
There should be some of these old versions still available. See a links at my blog here:
minisap where to download it
cheers
Hello Martin,
The versions would be the 2004+ versions of NW on any kind of windows installation. As long as it is on windows. I tried all the download URLs on your downloads blog but they all of them are not available except for the most recent trials that are on Linux/Docker. Sadly, I do not have a partner account so I cannot access https://partner.store.sap.com/login to see if there are any trials there.
Thank you for responding and sorry to bother you.
It seems that I have a version of SAP NetWeaver 04 Sneak Preview from 2005 that I suppose was running on WIN and MS SQL server. I found it burned on some old CD - as it is written on that CD. But I do not have an CD ROM drive anymore. In case you want it I would need to ask within my community whether someone has a CD drive... :) so let me know!
I found also install files of below trial version that runs on WIN.
How to install SAP NetWeaver Application Server ABAP 7.03 SP03 Trial – Ready for ABAP in Eclipse (AiE)
I have it on my backup hard drive so I can share it with you easily.
That could work! I would be very grateful. If there is no-one in your community with a CD drive, then that is okay. I knew it was going to be very hard to find an installation media for windows from the start. :-C
Is there any email I can contact you directly in case you manage to find a CD drive?
That could work. Let me know where I can access/download it from. Thank you so much Martin.
can you please contact me over linkedin so we can connect over more private place?
thanks
I have sent you a Connect request and note on LinkedIn, Martin.
every time I am facing same issue:
FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()
HDB: the start command failed, exit code=1
The service HDB has failed to start and initialization is blocked until the problem is resolved
You can try your luck 8 times until initialization is terminated
Hint: docker containers can be joined by: docker exec -it bash
Hint: Container must have at least 16GB RAM available
Hint: Container must have at least 70GB DISK free
Hit Return to continue
Can you please help , is it because of any port is blocked or something ?
I believe it is related memory issue. What is memory size of machine you are trying to run it on? I think you need to increase it.
cheers,
m./
Post a Comment