-
Notifications
You must be signed in to change notification settings - Fork 443
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
Trying to Deploy the debian package on Ubuntu AMI #673
Comments
I have a quite similar problem, it seems that play 2.4.3 packaging is not working atm. I think this is a bug in sbt-native-packager |
You have to configure the See the docs how to configure this. Also mentioned on the how to deploy#native-packager docs at the playframework. |
@Daxten running your app as root is never a good idea. Your app can basically compromise your complete system. |
sure, but that doesn't fix the issue that the user doesn't exist and my app can't write to the database file :) |
The |
sudo tail -f /var/log/upstart/<app_name>.log
Oops, cannot start the server.
java.io.FileNotFoundException: /usr/share/app_name/RUNNING_PID (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.io.FileOutputStream.(FileOutputStream.java:162)
at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
at play.core.server.ProdServerStart.main(ProdServerStart.scala)
Oops, cannot start the server.
java.io.FileNotFoundException: /usr/share/app_name/RUNNING_PID (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.io.FileOutputStream.(FileOutputStream.java:162)
at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
at play.core.server.ProdServerStart.main(ProdServerStart.scala)
When I check in terminal
$id <app_name>
uid=999(app_name) gid=999(app_name) groups=999(app_name)
What is the issue it seems like the ustart script does this at the End
exec sudo -u <app_name> bin/<app_name>
Am I missing something?
The text was updated successfully, but these errors were encountered: