Azure / Azure/cyclecloud-pbspro
/etc/profile.d/azpbs_autocomplete.sh is breaking PBS Dataservice restart
- Dominant language
- Python
- Stars
- 16
- Forks
- 30
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 1
Description
## Context
- Standalone Scheduler VM
- OpenPBS 22.05.11
- Ubuntu 20.04
- cyclecloud-pbspro 2.0.21
after executing this
```bash
./initialize_pbs.sh
./initialize_default_queues.sh
./install.sh --install-python3 --venv /opt/cycle/pbspro/venv --cron-method pbs_hook
```
PBS is failing to restart :
```bash
root@scheduler:/etc/profile.d# /opt/pbs/libexec/pbs_init.d stop
Stopping PBS
Shutting server down with qterm.
PBS server - was pid: 103121
PBS sched - was pid: 103025
PBS comm - was pid: 103010
Waiting for shutdown to complete
root@scheduler:/etc/profile.d# /opt/pbs/libexec/pbs_init.d start
Starting PBS
/opt/pbs/sbin/pbs_comm ready (pid=104252), Proxy Name:scheduler.internal.cloudapp.net:17001, Threads:4
PBS comm
PBS sched
-sh: 32: eval: Syntax error: "(" unexpected (expecting "}")
-sh: 32: eval: Syntax error: "(" unexpected (expecting "}")
Failed to start PBS dataservice.
-sh: 32: eval: Syntax error: "(" unexpected (expecting "}")
Failed to start PBS dataservice.
-sh: 32: eval: Syntax error: "(" unexpected (expecting "}")
-sh: 32: eval: Syntax error: "(" unexpected (expecting "}")
Failed to start PBS dataservice.
-sh: 32: eval: Syntax error: "(" unexpected (expecting "}")
Failed to start PBS dataservice.
-sh: 32: eval: Syntax error: "(" unexpected (expecting "}")
-sh: 32: eval: Syntax error: "(" unexpected (expecting "}")
Failed to start PBS dataservice.
^C
root@scheduler:/etc/profile.d#
```
## Workaround
after removing `/etc/profile.d/azpbs_autocomplete.sh` it works again
```bash
root@scheduler:/etc/profile.d# rm azpbs_autocomplete.sh
root@scheduler:/etc/profile.d# /opt/pbs/libexec/pbs_init.d start
Starting PBS
PBS comm already running.
PBS scheduler already running.
/opt/pbs/sbin/pbs_ds_systemd: 43: [: xdegraded: unexpected operator
Connecting to PBS dataservice....connected to PBS dataservice@scheduler.internal.cloudapp.net
PBS server
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.