New Sap Instance not working. No instance profiles found - sap

I have installed sap server 7.51 on ubuntu virtual machine (vmware). Installation was sucessful but when I run start I get the following error:
ubuntu:npladm 1> startsap all
No instance profiles found
please send the tracefile /home/npladm/startsap.trc to support
I typed ifconfig and got the following:
ens33: flags=4163 mtu 1500
inet 192.168.234.130 netmask 255.255.255.0 broadcast 192.168.234.255
inet6 fe80::e152:4277:1c5f:3311 prefixlen 64 scopeid 0x20
ether 00:0c:29:9f:48:53 txqueuelen 1000 (Ethernet)
RX packets 1739 bytes 1139138 (1.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1406 bytes 145716 (145.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 5009 bytes 1102113 (1.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5009 bytes 1102113 (1.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I checked that the ip address in the host file is correct as in:
cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 ubuntu
# mapping the Ubuntu loopback IP 127.0.1.1 to ubuntu
192.168.234.130 ubuntu ubuntu.dummy.nodomain
# The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
127.0.0.1 localhost
127.0.1.1 ubuntu
# mapping the Ubuntu loopback IP 127.0.1.1 to vhcalnplci
127.0.1.1 vhcalnplci vhcalnplci.dummy.nodomain
As you can see the ip adress should be correct (192.168.234.130) and is pingable but it is still not working.
Update:
Here is also the trace log file:
Trace of system startup/check of SAP System NPL on Mon Jul 1 01:08:45 PDT 2019
{01:08:45 ## Main() start: #=/usr/sap/NPL/SYS/exe/uc/linuxx86_64/startsap all
#(#) $Id: //bas/749_STACK/src/krn/startscripts/startsap#1 $
BASENAME=startsap
{01:08:45 ## check_user() start: #=npladm
}01:08:45 ## check_user() done
#=1
#=all
{01:08:45 ## setPlatform() start
PLATFORM=linuxx86_64
}01:08:45 ## setPlatform() done
{01:08:45 ## setPing() start
PING=/bin/ping
}01:08:45 ## setPing() done
{01:08:45 ## setIfconfig() start
IFCONFIG=/sbin/ifconfig
}01:08:45 ## setIfconfig() done
{01:08:45 ## setIp() start
IP=/sbin/ip
}01:08:45 ## setIp() done
{01:08:45 ## setRootDir() start: #=
USR_SAP=/usr/sap
USR_SAP_SID=/usr/sap/NPL
PROFILE_DIR=/usr/sap/NPL/SYS/profile
DIR_LIBRARY=/usr/sap/NPL/SYS/exe/run
}01:08:45 ## setRootDir() done
{01:08:45 ## setDbUser() start: #=
}01:08:45 ## setDbUser() done
Argument=all
{01:08:45 ## getarg() start
{01:08:45 ## checkInstance() start: #=all
}01:08:45 ## checkInstance() done: 1
{01:08:45 ## checkTask() start: #=all
_opt=all
}01:08:45 ## checkTask() done: 0
TASK=ALL
}01:08:45 ## getarg() done: 1
{01:08:45 ## setVHostArray() start
_PROFILES=/usr/sap/NPL/SYS/profile/NPL_ASCS01_ubuntu /usr/sap/NPL/SYS/profile/NPL_D00_ubuntu
_nrProfiles=2
{01:08:45 ## pushVHostsFromProfile() start: #=/usr/sap/NPL/SYS/profile/NPL_ASCS01_ubuntu /usr/sap/NPL/SYS/profile/NPL_D00_ubuntu
_DUMMY=NPL_ASCS01_ubuntu
_VHOST=ubuntu
{01:08:45 ## isVHostLocal() start: ubuntu
VHOST=ubuntu
_IS_LOCAL=0
}01:08:46 ## isVHostLocal() done: 0
_DUMMY=NPL_D00_ubuntu
_VHOST=ubuntu
{01:08:46 ## isVHostLocal() start: ubuntu
VHOST=ubuntu
_IS_LOCAL=0
}01:08:46 ## isVHostLocal() done: 0
VHOSTS=
}01:08:46 ## pushVHostsFromProfile() done
VHOSTS=
}01:08:46 ## setVHostArray() done
{01:08:46 ## set_instance() start
NINST=
INSTFOUND=0
NINSTFOUND=0
hasABAP=0
hasJava=0
hasSpecial=0
}01:08:46 ## set_instance() done
No instance profiles found
Exit code 8
Any other ideas about the error and how to resolve it? Thanks.

updating the ip-address of my VM in /etc/hosts helped:
> sudo nano /etc/hosts
..
192.168.1.218 vhcalnplci vhcalnplci.dummy.nodomain
.. then i started server
> startsap ALL
.. and checked that instances are running
> sapcontrol -nr 00 -function GetProcessList

Related

OpenNebula - Bridge VM NIC with Host NIC - take Ip from LAN DCHP

I hope you are doing well,
I start using OpenNebula here, I deploy a basic setup one Opennebula fronend in centos 8
another server as OpenNebula Node,
I download an image from marketplace it's centos image, Then I create a network Under Network >> Virual Network. Bridge it with ens33 (ens3 is the physical interface of my node) in order to give VM access to LAN,
he is my Node net
[centos#host1 ~]$ ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.60 netmask 255.255.255.0 broadcast 192.168.0.255
ether 00:0c:29:68:26:2b txqueuelen 1000 (Ethernet)
RX packets 679155 bytes 994474147 (948.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 41914 bytes 3220552 (3.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 6 bytes 672 (672.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6 bytes 672 (672.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:89:84:b1 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
once I create a VM and attach it to the bridge network I create already, i get status Failed with the bellow log :
Sat May 1 03:50:25 2021 [Z0][VM][I]: New state is ACTIVE
Sat May 1 03:50:25 2021 [Z0][VM][I]: New LCM state is PROLOG
Sat May 1 03:50:38 2021 [Z0][VM][I]: New LCM state is BOOT
Sat May 1 03:50:38 2021 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/14/deployment.0
Sat May 1 03:50:39 2021 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Sat May 1 03:50:40 2021 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vnm/bridge/pre
Sat May 1 03:50:40 2021 [Z0][VMM][E]: pre: Command "sudo ip link add name ens33 type bridge " failed.
Sat May 1 03:50:40 2021 [Z0][VMM][E]: pre: RTNETLINK answers: File exists
Sat May 1 03:50:40 2021 [Z0][VMM][E]: RTNETLINK answers: File exists
Sat May 1 03:50:40 2021 [Z0][VMM][E]:
Sat May 1 03:50:40 2021 [Z0][VMM][I]: ExitCode: 2
Sat May 1 03:50:40 2021 [Z0][VMM][I]: Failed to execute network driver operation: pre.
Sat May 1 03:50:40 2021 [Z0][VMM][E]: Error deploying virtual machine: bridge: RTNETLINK answers: File exists
Sat May 1 03:50:40 2021 [Z0][VM][I]: New LCM state is BOOT_FAILURE
can anyone please explain to me what's wrong here, Im familiar with vsphere esxi/vcenter, I want just to create a VMNetwork and attach it to the node physical NIC then attach the VM to this VMNetwork in order to give it LAN access, on VMware side it's easy simple but with OpenNebula Im not sure how it's work
Thank you
The problem here is that you are using a physical interface instead of using a bridge. If you would like to use bridge networking, you need to create a bridge or let OpenNebula create it for you.
Let me know if this answers your issue, if not, feel free to submit your query on OpenNebula Forum - https://forum.opennebula.io/. :)

Problem with install Redis when make test

I use Debian 10 server at Hetzner dedicated. When i try install redis, and use command make test i received error:
[err]: CONFIG SET bind address in tests/unit/networking.tcl
Expected 'OK' to match '*Failed to bind to specified addresses*' (context: type eval line 4 cmd {assert_match {*Failed to bind to specified addresses*} $e} proc ::start_server)
[err]: Client output buffer soft limit is enforced if time is overreached in tests/unit/obuf-limits.tcl
Expected 102520 >= 100000 && 15 < 6 (context: type eval line 27 cmd {assert {$omem >= 100000 && $time_elapsed < 6}} proc ::test)
*** [err]: CONFIG SET bind address in tests/unit/networking.tcl
Expected 'OK' to match '*Failed to bind to specified addresses*' (context: type eval line 4 cmd {assert_match {*Failed to bind to specified addresses*} $e} proc ::start_server)
*** [err]: Client output buffer soft limit is enforced if time is overreached in tests/unit/obuf-limits.tcl
Expected 102520 >= 100000 && 15 < 6 (context: type eval line 27 cmd {assert {$omem >= 100000 && $time_elapsed < 6}} proc ::test)
At my hosts server file i have:
### Hetzner Online GmbH installimage
# nameserver config
# IPv4
127.0.0.1 localhost.localdomain localhost
#138.2587.126.193 intelligent-yonath.138-628-126-844.plesk.page intelligent-yonath
#
# IPv6
#::1 localhost.localdomain localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
2a01:4f8:172:29d2::2 intelligent-yonath.138-147-532-928.plesk.page intelligent-yonath
In my /etc/resolv.conf i has:
### Hetzner Online GmbH installimage
# nameserver config
nameserver 213.133.99.99
nameserver 213.133.100.100
nameserver 213.133.98.98
nameserver 2a01:4f8:0:1::add:9999
nameserver 2a01:4f8:0:1::add:9898
nameserver 2a01:4f8:0:1::add:1010
How i understand problem with hosts or resolv conf. How i can fix problem and install Redis?

Monit on apache server : why monit log " 'apache' error -- unknown resource ID: [5]" on /var/log/monit

We are monitoring several servers with Monit. We are using the version 5.25.1.
Some are dedicated apache servers. The monitoring is ok.
But the log of monit (/var/log/monit) is like this :
[CET Mar 18 03:12:03] info : Starting Monit 5.25.1 daemon with http interface at [0.0.0.0]:3353
[CET Mar 18 03:12:03] info : Monit start delay set to 180s
[CET Mar 18 03:15:03] info : 'xxxxx.localhost' Monit 5.25.1 started
[CET Mar 18 03:15:03] error : 'apache' error -- unknown resource ID: [5]
[CET Mar 18 03:16:08] error : 'apache' error -- unknown resource ID: [5]
[CET Mar 18 03:17:08] error : 'apache' error -- unknown resource ID: [5]
[CET Mar 18 03:18:08] error : 'apache' error -- unknown resource ID: [5]
The configuration file /etc/monit.conf is like this :
###############################################################################
## Monit control file
###############################################################################
###############################################################################
## Global section
###############################################################################
##
## Start Monit in the background (run as a daemon):
# check services at 2-minute intervals
# with start delay 240 # optional: delay the first check by 4-minutes (by
# # default Monit check immediately after Monit start)
set daemon 60
with start delay 180
### Set the location of the Monit id file which stores the unique id for the
### Monit instance. The id is generated and stored on first Monit start. By
### default the file is placed in $HOME/.monit.id.
#
set idfile /var/.monit.id
## Set the list of mail servers for alert delivery. Multiple servers may be
## specified using a comma separator. By default Monit uses port 25 - it is
## possible to override this with the PORT option.
#
# set mailserver mail.bar.baz, # primary mailserver
# backup.bar.baz port 10025, # backup mailserver on port 10025
# localhost # fallback relay
set mailserver localhost
## By default Monit will drop alert events if no mail servers are available.
## If you want to keep the alerts for later delivery retry, you can use the
## EVENTQUEUE statement. The base directory where undelivered alerts will be
## stored is specified by the BASEDIR option. You can limit the maximal queue
## size using the SLOTS option (if omitted, the queue is limited by space
## available in the back end filesystem).
#
set eventqueue
basedir /var/monit # set the base directory where events will be stored
slots 100 # optionally limit the queue size
## Send status and events to M/Monit (for more informations about M/Monit
## see http://mmonit.com/).
#
# set mmonit http://monit:monit#192.168.1.10:8080/collector
#
#
## Monit by default uses the following alert mail format:
##
##
## You can override this message format or parts of it, such as subject
## or sender using the MAIL-FORMAT statement. Macros such as $DATE, etc.
## are expanded at runtime. For example, to override the sender, use:
#
# set mail-format { from: monit#foo.bar }
#
#
## You can set alert recipients whom will receive alerts if/when a
## service defined in this file has errors. Alerts may be restricted on
## events by using a filter as in the second example below.
#
set alert fake#mail.com not on { instance }
# receive all alerts
# set alert manager#foo.bar only on { timeout } # receive just service-
# # timeout alert
#
mail-format {
from: xxxxxxx#monit.localhost
subject: $SERVICE => $EVENT
message:
DESCRIPTION : $DESCRIPTION
ACTION : $ACTION
DATE : $DATE
HOST : $HOST
Sorry for the spam.
Monit
}
## Monit has an embedded web server which can be used to view status of
## services monitored and manage services from a web interface. See the
## Monit Wiki if you want to enable SSL for the web server.
#
set httpd port 3353 and
use address 0.0.0.0
allow yyyyy:zzzz
###############################################################################
## SeSTART rvices
###############################################################################
##
## Check general system resources such as load average, cpu and memory
## usage. Each test specifies a resource, conditions and the action to be
## performed should a test fail.
#
check system xxxxxx.localhost
if loadavg (1min) > 8 for 5 cycles then alert
if loadavg (5min) > 4 for 5 cycles then alert
if memory usage > 75% for 5 cycles then alert
if cpu usage (user) > 70% for 5 cycles then alert
if cpu usage (system) > 50% for 5 cycles then alert
if cpu usage (wait) > 50% for 5 cycles then alert
check process apache with pidfile /var/run/httpd/httpd.pid
group www
start program = "/etc/init.d/httpd start" with timeout 60 seconds
stop program = "/etc/init.d/httpd stop"
if failed host localhost port 80 then restart
if cpu > 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then restart
if loadavg(5min) greater than 10 for 8 cycles then restart
if 3 restarts within 5 cycles then timeout
###############################################################################
## Includes
###############################################################################
##
## It is possible to include additional configuration parts from other files or
## directories.
#
# include /etc/monit.d/*
#
#
# Include all files from /etc/monit.d/
include /etc/monit.d/*
On ui monit, everything is ok. and the monitoring is 100% useful. We can stop, restart the service like we want.
So I don't understand the sentence 'error : 'apache' error -- unknown resource ID: [5]' we found on the log of monit.
Anyone has an idea about it ?
Thanks for your help.
I had the same problem..
mmonit said that loadavg is for "check system" only. it used to work for apache but not anymore..
"The loadavg statement can be used in "check system" context only (load average is system property, not process'). Please remove the following statement and reload monit"
so disable this line by adding # on the first of:
# if loadavg(5min) greater than 10 for 8 cycles then restart
then restart monit
service monit restart
You will no longer receive the appache error.

Can't connect to localhost after upgrading to El Capitan

After updating to El Capitan I can't access localhost.
Another computer where El Capitan was already at the installation of MAMP everything works fine.
Both Apache and MySQL server start ,but can't get to localhost page
This is what I've tried so far:
1) Uncommented some of the lines on httpd.conf as indicated on some messages
2) Replaced current files with files in private/etc/apache2/original
3) Copied http.conf and extra/ from the other computer (the one where localhost is working)
4) Tried different ports configuration (Apache: 8888 & MySql: 8889)
Since none of the above worked, I put back files to the original state (i.e. before uncommenting or replacing)
Finally, if instead of localhost I type computer_name.local/ on the browser address bar I can see my files.
I am VERY new with all this, any suggestions?
Thanks,
S
Denis, thanks for the suggestion. These are the results from Terminal:
lo0: flags=8049 mtu 16384
options=3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=1
gif0: flags=8010 mtu 1280
stf0: flags=0<> mtu 1280
en1: flags=8823 mtu 1500
ether 88:63:df:cb:a5:39
nd6 options=1
media: autoselect ()
status: inactive
en0: flags=8863 mtu 1500
options=10b
ether ac:87:a3:14:72:1b
nd6 options=1
media: autoselect (none)
status: inactive
en2: flags=963 mtu 1500
options=60
ether 0a:00:00:3c:bc:00
media: autoselect
status: inactive
en3: flags=963 mtu 1500
options=60
ether 0a:00:00:3c:bc:01
media: autoselect
status: inactive
en5: flags=8863 mtu 1500
options=10b
ether 40:6c:8f:38:4f:a5
inet6 fe80::426c:8fff:fe38:4fa5%en5 prefixlen 64 scopeid 0x8
inet 192.168.1.21 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=1
media: autoselect (1000baseT )
status: active
en7: flags=8863 mtu 1460
ether 02:50:f2:00:00:01
nd6 options=1
media: autoselect
status: inactive
p2p0: flags=8802 mtu 2304
ether 0a:63:df:cb:a5:39
media: autoselect
status: inactive
bridge0: flags=8863 mtu 1500
options=63
ether 8a:63:df:bc:63:00
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x2
member: en2 flags=3
ifmaxaddr 0 port 6 priority 0 path cost 0
member: en3 flags=3
ifmaxaddr 0 port 7 priority 0 path cost 0
nd6 options=1
media:
status: inactive
awdl0: flags=8902 mtu 1484
ether 52:4f:2b:35:96:9d
nd6 options=1
media: autoselect
status: inactive

convert pcregrep command in awk or sed

I have a multiline matching pcregrep command that I'd like to convert into an awk or sed command, because I need it on a machine where pcregrep is not available (OS X).
Original command:
ifconfig -a | pcregrep -M '^[a-z].*\n(\t[^\n]+\n)+\t[^\n]+baseTX' | grep -oE "^([a-z]+[^:]+)"
It output the name of the interface that contains the string “baseTX” (only method I found to reliably find out the name of the ethernet interface on a MacBook). In my case, “en4”.
The input text look like this:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=1<PERFORMNUD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether xx:xx:xx:xx:xx:xx
inet6 xxxx::xxxx:xxxx:xxxx:xxx%en0 prefixlen 64 scopeid 0x4
inet 10.xxx.xxx.xx netmask 0xffffff00 broadcast 10.xxx.xxx.255
inet6 xxxx:xxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 128
nd6 options=1<PERFORMNUD>
media: autoselect
status: active
en5: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=60<TSO4,TSO6>
ether xx:xx:xx:xx:xx:xx
media: autoselect <full-duplex>
status: inactive
en6: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=60<TSO4,TSO6>
ether xx:xx:xx:xx:xx:xx
media: autoselect <full-duplex>
status: inactive
en4: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=4<VLAN_MTU>
ether xx:xx:xx:xx:xx:xx
inet6 xxxx::xxxx:xxxx:xxxx:xxxx%en4 prefixlen 64 scopeid 0x7
inet XX.XXX.XXX.XX netmask 0xffffff00 broadcast XX.XXX.XXX.XXX
inet6 xxxx:xxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 128
nd6 options=1<PERFORMNUD>
media: autoselect (100baseTX <full-duplex>)
status: active
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=63<RXCSUM,TXCSUM,TSO4,TSO6>
ether xx:xx:xx:xx:xx:xx
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x2
member: en5 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 5 priority 0 path cost 0
member: en6 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 6 priority 0 path cost 0
nd6 options=1<PERFORMNUD>
media: <unknown type>
status: inactive
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
ether xx:xx:xx:xx:xx:xx
media: autoselect
status: inactive
How can I grap “en4” with awk or sed? I tried for one hour, but I am just bad at sed and awk.
Assuming that spacing is consistent (leading spaces are only on non-header lines) this should work:
awk -F: '/^[[:alpha:]]/ {iface=$1; next} /baseTX/ {print iface; exit}'
perl:
perl -0777 -nE 'say map {/^\w+/ && $&} grep {/baseTX/} split /^(?=\w+:)/m'