Skip to content

modify PIDFILE location#321

Open
loneavon wants to merge 1 commit into
yahoo:masterfrom
loneavon:patch-1
Open

modify PIDFILE location#321
loneavon wants to merge 1 commit into
yahoo:masterfrom
loneavon:patch-1

Conversation

@loneavon

@loneavon loneavon commented Nov 7, 2016

Copy link
Copy Markdown

Install Kafka-manager through RPM, to start service will be fail(but the script return OK) using /etc/init.d/kafka-manager.
First, check error message, see below:
java.io.FileNotFoundException: /var/run/kafka-manager.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)

the daemon user have not permission to write file in directory '/var/run'.

Second, it's already to create'/var/run/kafka-manager'in boot script('/etc/init.d/kafka-manager'), but not use it.

Install Kafka-manager through RPM, to start service will be fail(but the script return OK) using /etc/init.d/kafka-manager.
First, check error message, see below:
java.io.FileNotFoundException: /var/run/kafka-manager.pid (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(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)

the daemon user have not permission to write file in directory '/var/run'.

Second, it's already to create'/var/run/kafka-manager'in boot script('/etc/init.d/kafka-manager'), but not use it.
@yahoocla

yahoocla commented Nov 7, 2016

Copy link
Copy Markdown

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! 😄

@loneavon

Copy link
Copy Markdown
Author

I have already apply CLA.

@patelh

patelh commented Apr 12, 2017

Copy link
Copy Markdown
Collaborator

please close and open request to trigger CLA check

@martinhynar

Copy link
Copy Markdown

This would be nice to have merged as vanilla rpm package built from source will not start.

@loneavon loneavon closed this Jun 13, 2017
@loneavon loneavon reopened this Jun 13, 2017
@loneavon

Copy link
Copy Markdown
Author

68c7972
@patelh I found this commit, but I don‘t know why to cut down dir before pid file. This problem still open,please check it and merge it. Thanks

@patelh

patelh commented Dec 22, 2018

Copy link
Copy Markdown
Collaborator

Is this still an issue? Can anyone else chime in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants