Adarsh,
Thanks so much for helping me out. I fixed few things about the files and shared directory and run just the simple Helloworld code. I don’t have an error anymore but the output is not complete. Below is what you requested.
cat /etc/pbs.conf
PBS_SERVER=PiMaster
PBS_START_SERVER=1
PBS_START_SCHED=1
PBS_START_COMM=1
PBS_START_MOM=0
PBS_EXEC=/opt/pbs
PBS_HOME=/var/spool/pbs
PBS_CORE_LIMIT=unlimited
PBS_SCP=/usr/bin/scp
qstat --version
pbs_version = 20.0.0
Script
#!/bin/bash
#PBS -l select=2:ncpus=4
#PBS -l walltime=24:00:00
#PBS -N Helloworld
#PBS -m abe
#PBS -M mazeh01@hotmail.com
cd $PBS_O_WORKDIR
/mnt/nfs/helloworld
error file:
ouput file:
SSH is enabled and the default password for the ‘pi’ user has not been changed.
This is a security risk - please login as the ‘pi’ user and type ‘passwd’ to se$
Hello world from processor Pi01, rank 0 out of 1 processors
pi@PiMaster:/mnt/nfs $ ps -ef | grep pbs_
root 621 1 0 17:56 ? 00:00:00 /opt/pbs/sbin/pbs_comm
root 640 1 0 17:56 ? 00:00:00 /opt/pbs/sbin/pbs_sched
root 714 1 0 17:56 ? 00:00:00 /opt/pbs/sbin/pbs_ds_monitor monitor
postgres 843 738 0 17:56 ? 00:00:00 postgres: postgres pbs_datastore 192.168.0.106(38472) idle
root 895 1 0 17:56 ? 00:00:00 /opt/pbs/sbin/pbs_server.bin
pi 1257 922 0 18:14 pts/0 00:00:00 grep --color=auto pbs_
pi@Pi01:/mnt/nfs $ ps -ef | grep pbs_
root 582 1 0 16:25 ? 00:00:00 /opt/pbs/sbin/pbs_mom
pi 1302 1013 0 18:14 pts/0 00:00:00 grep --color=auto pbs_
pi@Pi02:/mnt/nfs $ ps -ef | grep pbs_
root 588 1 0 16:25 ? 00:00:00 /opt/pbs/sbin/pbs_mom
pi 1151 1019 0 18:15 pts/0 00:00:00 grep --color=auto pbs_
pi@PiMaster:/mnt/nfs $ systemctl start pbs
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start ‘pbs.service’.
Authenticating as: , (pi)
Password:
==== AUTHENTICATION COMPLETE ===
pi@PiMaster:/mnt/nfs $ sudo /etc/init.d/pbs start
Starting PBS
PBS comm already running.
PBS scheduler already running.
PBS Server already running.
On Master
03/05/2021 00:00:00;0002;Server@pimaster;Svr;Log;Log opened
03/05/2021 00:00:00;0002;Server@pimaster;Svr;Server@pimaster;pbs_version=20.0.0
03/05/2021 00:00:00;0002;Server@pimaster;Svr;Server@pimaster;pbs_build=mach=N/A:security=N/A:configure_args=N/A
03/05/2021 00:00:00;0002;Server@pimaster;Svr;Server@pimaster;hostname=pimaster;pbs_leaf_name=N/A;pbs_mom_node_name=N/A
03/05/2021 00:00:00;0002;Server@pimaster;Svr;Server@pimaster;ipv4 interface lo: ip6-loopback
03/05/2021 00:00:00;0002;Server@pimaster;Svr;Server@pimaster;ipv4 interface eth0: PiMaster
03/05/2021 00:00:00;0002;Server@pimaster;Svr;Server@pimaster;ipv6 interface lo: ip6-loopback
03/05/2021 00:00:00;0002;Server@pimaster;Svr;Act;Account file /var/spool/pbs/server_priv/accounting/20210305 opened
03/05/2021 08:12:02;0100;Server@pimaster;Req;;Type 0 request received from root@pimaster, sock=16
03/05/2021 08:12:03;0100;Server@pimaster;Req;;Type 95 request received from root@pimaster, sock=17
03/05/2021 08:12:03;0100;Server@pimaster;Req;;Type 21 request received from root@pimaster, sock=16
03/05/2021 08:12:03;0100;Server@pimaster;Req;;Type 0 request received from root@pimaster, sock=16
03/05/2021 08:12:03;0100;Server@pimaster;Req;;Type 95 request received from root@pimaster, sock=17
03/05/2021 08:12:03;0100;Server@pimaster;Req;;Type 17 request received from root@pimaster, sock=16
03/05/2021 08:12:03;0086;Server@pimaster;Svr;Server@pimaster;Shutdown request from root@pimaster
03/05/2021 08:12:03;0086;Server@pimaster;Svr;Server@pimaster;Starting to shutdown the server, type is Quick
03/05/2021 08:12:03;0001;Server@pimaster;Svr;Server@pimaster;PBS server internal error (15011) in svr_save_db, Failed to save server Execution of Prepare$
server closed the connection unexpectedly
This probably means the server terminated abnormally
On node Pi01
03/05/2021 08:12:03;0002;pbs_mom;Svr;Log;Log opened
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;pbs_version=20.0.0
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;pbs_build=mach=N/A:security=N/A:configure_args=N/A
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;hostname=pi01;pbs_leaf_name=N/A;pbs_mom_node_name=N/A
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;ipv4 interface lo: ip6-loopback
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;ipv4 interface eth0: Pi01
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;ipv6 interface lo: ip6-loopback
03/05/2021 08:12:03;0001;pbs_mom;Svr;pbs_mom;im_eof, Premature end of message from addr 192.168.0.106:15001 on stream 0
03/05/2021 08:12:03;0002;pbs_mom;Svr;im_eof;Server closed connection.
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;HELLO sent to server at PiMaster:15001, stream:1
03/05/2021 08:12:03;0001;pbs_mom;Svr;pbs_mom;im_eof, Premature end of message from addr 192.168.0.106:15001 on stream 1
03/05/2021 08:12:03;0002;pbs_mom;Svr;im_eof;Server closed connection.
03/05/2021 08:12:03;0c06;pbs_mom;TPP;pbs_mom(Thread 0);Connection to pbs_comm PiMaster:17001 down
03/05/2021 08:12:03;0001;pbs_mom;Svr;net_down_handler;net down handler called
03/05/2021 08:12:41;0002;pbs_mom;Svr;pbs_mom;caught signal 15
03/05/2021 08:12:41;0d80;pbs_mom;TPP;pbs_mom(Main Thread);Shutting down TPP transport Layer
03/05/2021 08:12:41;0d80;pbs_mom;TPP;pbs_mom(Thread 0);Thrd exiting, had 1 connections
03/05/2021 08:12:41;0002;pbs_mom;Svr;pbs_mom;Is down
03/05/2021 08:12:41;0002;pbs_mom;Svr;Log;Log closed
on node Pi02
03/05/2021 08:12:03;0002;pbs_mom;Svr;Log;Log opened
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;pbs_version=20.0.0
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;pbs_build=mach=N/A:security=N/A:configure_args=N/A
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;hostname=pi02;pbs_leaf_name=N/A;pbs_mom_node_name=N/A
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;ipv4 interface lo: ip6-loopback
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;ipv4 interface eth0: pi02
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;ipv6 interface lo: ip6-loopback
03/05/2021 08:12:03;0001;pbs_mom;Svr;pbs_mom;im_eof, Premature end of message from addr 192.168.0.106:15001 on stream 0
03/05/2021 08:12:03;0002;pbs_mom;Svr;im_eof;Server closed connection.
03/05/2021 08:12:03;0002;pbs_mom;Svr;pbs_mom;HELLO sent to server at PiMaster:15001, stream:1
03/05/2021 08:12:03;0001;pbs_mom;Svr;pbs_mom;im_eof, Premature end of message from addr 192.168.0.106:15001 on stream 1
03/05/2021 08:12:03;0002;pbs_mom;Svr;im_eof;Server closed connection.
03/05/2021 08:12:03;0c06;pbs_mom;TPP;pbs_mom(Thread 0);Connection to pbs_comm PiMaster:17001 down
03/05/2021 08:12:03;0001;pbs_mom;Svr;net_down_handler;net down handler called
03/05/2021 08:13:23;0002;pbs_mom;Svr;pbs_mom;caught signal 15
03/05/2021 08:13:23;0d80;pbs_mom;TPP;pbs_mom(Main Thread);Shutting down TPP transport Layer
03/05/2021 08:13:23;0d80;pbs_mom;TPP;pbs_mom(Thread 0);Thrd exiting, had 1 connections
03/05/2021 08:13:23;0002;pbs_mom;Svr;pbs_mom;Is down
03/05/2021 08:13:23;0002;pbs_mom;Svr;Log;Log closed