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

RPM Installation Issues #278

Closed
bijugs opened this issue Apr 23, 2015 · 13 comments
Closed

RPM Installation Issues #278

bijugs opened this issue Apr 23, 2015 · 13 comments
Labels

Comments

@bijugs
Copy link
Member

bijugs commented Apr 23, 2015

Tried to install version 249 rpm on a CentOS VM.

  • According to installation document the jmxtrans init.d script should be available under /etc/init.d and it seems to be missing after the install. Instead there is a jmxtransd script available.
  • Also the installation fails if the user jmxtrans is already on the system which is not the case with the debian package. If the user is already existing can we skip the user creation logic instead of failing the installation process?
@gehel gehel added the bug label Apr 23, 2015
@gehel
Copy link
Member

gehel commented Apr 23, 2015

This seems to be 2 separate issues. I'll fix the daemon name right now, new snapshot should be available by tomorrow. I want to run some more tests for the user creation (if you want to send a PR for this one, I'll be happy to accept it. my bash-fu is rusty ...)

@hgomez
Copy link
Member

hgomez commented Apr 23, 2015

I worked on initial rpm but things changed over the years.
I could review specfile PR :)

@hgomez
Copy link
Member

hgomez commented Apr 23, 2015

About jmxtrans user already existing, it shouldn't
user is create in %pre and removed in %postun
By not creating jmxtrans user, we may have different uid than expected by rpm

@gehel
Copy link
Member

gehel commented Apr 23, 2015

Code is always misleading, but it seems that jmxtrans user is created in pre and removed in postrun (around https://github.com/jmxtrans/jmxtrans/blob/master/pom.xml#L1098). And it does not seem that there are any dependencies on the UID. So conditionally creating the user should be fine (RPM is really not my thing, I might be completely wrong ...)

gehel added a commit that referenced this issue Apr 23, 2015
@hgomez
Copy link
Member

hgomez commented Apr 23, 2015

I was looking in original spec file : https://github.com/jmxtrans/jmxtrans/blob/master/rpm/SPECS/jmxtrans.spec :)

@bijugs
Copy link
Member Author

bijugs commented Apr 23, 2015

Another suggestion is to publish SHA256 checksum for the files so that tools like Chef can perform the verification. Chef uses SHA256 for checksum verification. Let me know if a new item need to be created.

@hgomez
Copy link
Member

hgomez commented Apr 23, 2015

It will better to 3 create different issues/requests.
Easier to track and fix

@gehel
Copy link
Member

gehel commented Apr 23, 2015

MD5, SHA1 and GPG signatures are generated (http://central.maven.org/maven2/org/jmxtrans/jmxtrans/249/). Feel free to send a PR if you want additional signatures ...

@gehel
Copy link
Member

gehel commented Apr 23, 2015

@hgomez I moved the generation of RPMs to Maven to make it easier to automate the build on travis and to upload everything to Maven central. That might or might not have been a mistake ... but at least RPMs are published with each snapshot now. I have probably broken a few things in the process. All my apologies...

@hgomez
Copy link
Member

hgomez commented Apr 23, 2015

No problem.
Do you want me to check pom vs spec ?

@gehel
Copy link
Member

gehel commented Apr 23, 2015

I'd be really grateful !

@hgomez
Copy link
Member

hgomez commented Apr 23, 2015

👍

@gehel
Copy link
Member

gehel commented Apr 24, 2015

Closing this as more specific issues have been opened (#280, #281, #282 and #283)

@gehel gehel closed this as completed Apr 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants