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

Installation Hands on #2128

Open
Frazer-Nyambe opened this issue Jul 4, 2022 · 12 comments
Open

Installation Hands on #2128

Frazer-Nyambe opened this issue Jul 4, 2022 · 12 comments

Comments

@Frazer-Nyambe
Copy link

i'm currently stuck on the step: Installing the Required Karaf Features

when i run the code below:
frazer@frazer-Islandora:~$ sudo /opt/karaf/bin/client feature:install activemq-blueprint

i get the output below:
Logging in as karaf
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=activemq-blueprint; type=karaf.feature; version="[5.15.11,5.15.11]"; filter:="(&(osgi.identity=activemq-blueprint)(type=karaf.feature)(version>=5.15.11)(version<=5.15.11))" [caused by: Unable to resolve activemq-blueprint/5.15.11: missing requirement [activemq-blueprint/5.15.11] osgi.identity; osgi.identity=activemq; type=karaf.feature; version="[5.15.11,5.15.11]"]

@flummingbird
Copy link

I'm not quite sure what's up here, the build instructions do say to use a version of Karaf 4.2.x so they may be out of date with this Karaf version

but can you check contents.

cat /opt/karaf/etc/org.pos4j.pax.logging.cfg

Just want to make sure it matches what's expected.

@Frazer-Nyambe
Copy link
Author

I get the output below:

frazer@frazer-Islandora:~$ cat /opt/karaf/etc/org.pos4j.pax.logging.cfg

Root logger

log4j.rootLogger=INFO, out, osgi:*
log4j.throwableRenderer=org.apache.log4j.OsgiThrowableRenderer

File appender

log4j.appender.out=org.apache.log4j.RollingFileAppender
log4j.appender.out.layout=org.apache.log4j.PatternLayout
log4j.appender.out.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %X{bundle.id} - %X{bundle.name } - %X{bundle.version} | %m%n
log4j.appender.out.file=/var/log/karaf/karaf.log
log4j.appender.out.append=true
log4j.appender.out.maxFileSize=1MB
log4j.appender.out.maxBackupIndex=10

Camel Logger

log4j.appender.camel=org.apache.log4j.RollingFileAppender
log4j.appender.camel.layout=org.apache.log4j.PatternLayout
log4j.appender.camel.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %X{bundle.id} - %X{bundle.na me} - %X{bundle.version} | %m%n
log4j.appender.camel.file=/var/log/karaf/camel.log
log4j.appender.camel.append=false
log4j.appender.camel.maxFileSize=1MB
log4j.appender.camel.maxBackupIndex=10

log4j.logger.org.apache.camel=INFO, camel

Islandora Logger

log4j.appender.islandora=org.apache.log4j.RollingFileAppender
log4j.appender.islandora.layout=org.apache.log4j.PatternLayout
log4j.appender.islandora.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %X{bundle.id} - %X{bundl e.name} - %X{bundle.version} | %m%n
log4j.appender.islandora.file=/var/log/karaf/islandora.log
log4j.appender.islandora.append=false
log4j.appender.islandora.maxFileSize=1MB
log4j.appender.islandora.maxBackupIndex=10

log4j.logger.ca.islandora.camel=INFO, islandora
frazer@frazer-Islandora:~$

@flummingbird
Copy link

Ok that wasn't it. Your file looks fine.

This part of the error I think is the most important now:
Unable to resolve activemq-blueprint/5.15.11: missing requirement

When I was last installing activemq I found the documentation a little lacking:
Try checking this

I have a few other things to try.

can you tell me the output of:
cat /etc/systemd/system/activemq.service

It should be:

[Unit]
Description=Apache Active
After=network.target
[Service]
Type=forking
User=activemq
Group=activemq

ExecStart=/opt/activemq/bin/activemq start
ExecStop=/opt/activemq/bin/activemq stop

[Install]
WantedBy=multi-user.target

If it's the same as the above, I think you might just want to try and re-install activemq.
Cheers,

@Frazer-Nyambe
Copy link
Author

The code below outputs:

frazer@frazer-Islandora:$ cat /etc/systemd/system/activemq.service
cat: /etc/systemd/system/activemq.service: No such file or directory
frazer@frazer-Islandora:
$

@Frazer-Nyambe
Copy link
Author

frazer@frazer-Islandora:~$ cat /etc/systemd/system/activemq.service
cat: /etc/systemd/system/activemq.service: No such file or directory

@Frazer-Nyambe
Copy link
Author

Using the suggested trying options i'm getting the below output:

frazer@frazer-Islandora:/tmp$ /opt/activemq/bin/activemq status
INFO: Loading '/etc/default/activemq'
INFO: Using java '/usr/bin/java'
ActiveMQ not running

@flummingbird
Copy link

If that's the case I think you need to go back to this step https://islandora.github.io/documentation/installation/manual/installing_karaf_and_alpaca/#activemq-5
If you're able to successfully install activemq I think the step you're on with karaf will resolve.

I think maybe we should ask @seth-shaw-unlv about how we could update the current documentation to reflect the change he mentioned where the build may not need karaf. Seth if I'm incorrect or misrepresenting what you said on the other issue please let me know.

@Frazer-Nyambe
Copy link
Author

Frazer-Nyambe commented Jul 9, 2022 via email

@Frazer-Nyambe
Copy link
Author

This issue still remains unresolved....
Kindly assist me with the instructions for installing Alpaca 2, which does not need karaf.

@flummingbird
Copy link

If that's the case I think you need to go back to this step https://islandora.github.io/documentation/installation/manual/installing_karaf_and_alpaca/#activemq-5
If you're able to successfully install activemq I think the step you're on with karaf will resolve.

I think maybe we should ask @seth-shaw-unlv about how we could update the current documentation to reflect the change he mentioned where the build may not need karaf. Seth if I'm incorrect or misrepresenting what you said on the other issue please let me know.

@flummingbird
Copy link

Frazer, Are you aware of the google group? I think we may be better off getting help there.

https://groups.google.com/g/islandora

@Frazer-Nyambe
Copy link
Author

Frazer-Nyambe commented Jul 18, 2022 via email

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

No branches or pull requests

2 participants