GridProtectionAlliance / openPDC

Open Source Phasor Data Concentrator
MIT License
128 stars 59 forks source link

register-openPDC.sh Fails with error: line 52 -m:openPDC: command not found #26

Closed ajstadlin closed 8 years ago

ajstadlin commented 8 years ago

Versions: openPDC 2.2.70.0, mono 4.2.2.11, Raspbian Jessie, Raspberry Pi 3

I am testing a Raspbian example and it works for running openPDC in -RunAsConsole mode. However, when I run the service registration script, it fails with the error:

/opt/openPDC/openPDC: line 52: -m:openPDC: command not found

The procedure I am following is documented in the following link. This error occurs at step 11.

Running openPDC on a Raspberry Pi - Example Pi 3B, Raspbian Jessie (full desktop)

The register-openPDC.log does not show any errors.

openPDC service registration
Thu 25 Aug 02:53:32 UTC 2016
Linux operating system assumed...
‘openPDC.sh’ -> ‘/etc/init.d/openPDC’
mode of ‘/etc/init.d/openPDC’ changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x)
‘/opt/openPDC/openPDC’ -> ‘/etc/init.d/openPDC’
openPDC service registration

I already tried uninstalling openPDC and re-installing it with the same results. I have not tried to debug the /etc/init.d/openPDC registration file.

Any help or troubleshooting advice is greatly appreciated. //AJ

ajstadlin commented 8 years ago

I am not able to repeat this issue in my Rapsian Jessie-Lite procedures. This may be either a mistake in my Raspbian Jessie procedure. I will retry the procedure to determine if the issue is repeatable.

ajstadlin commented 8 years ago

I re-ran through the procedure again on the same Pi 3B hardware and Raspbian Jessie full desktop OS and was not able to repeat the problem. Since I can successfully repeat the procedure, but not the problem, I am closing this issue. //AJ