Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PM2 not working without user "pi" #128

Open
thoschneider opened this issue May 4, 2020 · 1 comment
Open

PM2 not working without user "pi" #128

thoschneider opened this issue May 4, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@thoschneider
Copy link
Contributor

thoschneider commented May 4, 2020

In my Raspi-setup I added user "thomas" and deleted user "pi" including /home/pi for security reasons. Automatic installation worked fine except for autostart with PM2 (which I enabled during the installation process). PM2 was looking for the (startup-) script /home/pi/TeleFrame/tools/tf_wfi.sh which obviously could not be found. The folder TeleFrame was correctly installed under /home/THOMAS/ though.
I just wanted to mention, that this problem occurs, when installing without the user "pi". I could not track down, where this configuration for PM2 resides. After running manually "PM2 startup" -> tf_wfi.sh -> "PM2 save" everything works fine again!

@LukeSkywalker92 LukeSkywalker92 added the bug Something isn't working label Jul 27, 2020
@KateiRen
Copy link
Contributor

The user pi is hardcoded in the install script tools/install_raspberry.sh as well as the tools/pm2_TeleFrame.json and tools/pm2_TeleFrame_waitForInternet.json.

Manually changing it and executing the steps in tools/install_raspberry.sh step by step worked in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants