Errors while starting CQ server - osgi

I've noticed these errors while starting cq instances on my box. Everything seems to run fine, I'm just curious what I can do to help resolve seeing these errors on startup. The bundles vary.
ERROR: [Thread[OsgiInstallerImpl,5,main]] Waited too long to acquire lock for bundle com.day.cq.cq-polling-importer [168] owned by null (lockcount=0); giving up.
ERROR: [Thread[OsgiInstallerImpl,5,main]] Waited too long to acquire lock for bundle com.day.cq.cq-jobs-core [169] owned by null (lockcount=0); giving up.
ERROR: [Thread[OsgiInstallerImpl,5,main]] Waited too long to acquire lock for bundle com.day.cq.cq-rewriter [170] owned by null (lockcount=0); giving up.
ERROR: [Thread[OsgiInstallerImpl,5,main]] Waited too long to acquire lock for bundle com.day.cq.cq-mailer [171] owned by null (lockcount=0); giving up.
ERROR: [Thread[FelixDispatchQueue,5,main]] Waited too long to acquire the global lock own by Thread[FelixStartLevel,5,main]; giving up.
thank you

Update: Adobe tech support has told me that the message is harmless and the result of a known bug. The issue, and the message, are fixed as of CQ version 5.6. You can safely ignore the message.
Original answer:
My belief is that this is the FelixDispatchQueue waiting for the lock to be released, and it keeps attempting to get the lock until it is successful. The timeout appears to be when it tosses another line in the log before trying again.
In my system I always see these messages, yet Felix is always operating properly.
I've found nothing else on the interwebs to indicate that this is anything other than a somewhat scary looking, but entirely normal, information message.

Goto OSGI console and check if the bundle is active.
I've noticed these errors on my machine as well, my guess is that there are dependencies which are not getting resolved within the specified time.
In my case, it got auto resolved after sometime.

Related

Couldn’t acquire exclusive lock on DB at ‘/eventstore/db’

I’m trying to install eventstore on ubuntu 20.04 but everytime I run evenstored --what-if (as root or as simple user, or as sudo) I get the following error message : Couldn't acquire exclusive lock on DB at '/eventstore/db'..
I tried many things :
I tried ensuring that eventstore user and group were owner of the folder.
reinstalling eventstore
rebooting server
stop process with systemctl stop eventstore and starting it back again
I also tried launching service first (as root / sudo or simple user) before using eventstored --what-if.
I can’t figure out why I keep getting this message as if many instance of eventstore where launched at the same time.
EDIT :
Here is my config file (/etc/eventstore/eventstore.conf)
# Paths
Db: /eventstore/db
Index: /eventstore/index
Log: /eventstore/logs
# Certificates configuration
CertificateFile: /etc/eventstore/certs/cert.crt
CertificatePrivateKeyFile: /etc/eventstore/certs/privkey.key
TrustedRootCertificatesPath: /etc/ssl/certs
CertificateReservedNodeCommonName: "*.mathob-jehanno.com"
# Network configuration
IntIp: 37.187.2.103
ExtIp: 37.187.2.103
IntHostAdvertiseAs: mathob-jehanno.com
ExtHostAdvertiseAs: mathob-jehanno.com
HttpPort: 2113
IntTcpPort: 1112
EnableExternalTcp: false
EnableAtomPubOverHTTP: false
# Projections configuration
RunProjections: None
It happened to me previously. I was running v20 without supplying the necessary settings like the certificates were missing. The server crashed because of this, but the last message you see is this Couldn't acquire exclusive lock on DB at '/eventstore/db'. You might look close and see if it's a warning, and the real reason for the crash is mentioned earlier in the stack trace of the original error.
Ok so
First of all, comments helped a lot :
this error message is following another one which give more detail about what the problem is.
One thing to know is that eventstored --what-if is supposed to be run while service is not running so user need to stop the service before (systemctl stop eventstore).
I then changed the path to db, index and logs file to match the default value (it prevented me some permissions error).

Talend ESB deployment on runtime

I'm on Talend ESB Runtime.
I encountered problems while starting ./trun. Nothing on the screen appeared after start. The process is launched but I can't get anything else...
Anyway I tryed to deployed a job, and there is something weird in the log about org.osgi.framework.bundleException in tesb.log.
And Karaf.log is OK
Here tesb.log :
tesb.log
karaf.log :
karaf.log
log in repository data :
timestamplog
I don't know how to investigate, because logs are poor and JVM is equal between Talend ESB and the runtime...
Can you help me please?
You only showed a small snippet of the log. From this I can already see that at least one bundle can not be resolved. This means that this bundle can not be used. In the snippet the bundle seems to be a user bundle but I am pretty sure you have other such log messages that show that one of the main bundles of karaf can not be loaded.
If you want to check for the cause of the problem look into these messages and search for non optional package that are not resolved. Usually this leads to a missing bundle.
If you simply want to get your system running again you can simply reset karaf by using
./trun clean
Remember though that you then have to reinstall all features again.

[Error]: Failed to run command with error: Error Domain=Parse Code=428

I get this error sometimes when trying to save things to Parse or to fetch data from it.
This is not constant and appear once in a while making the operation to fail.
I have contacted Parse for that. Here is their answer:
Starting on 4/28/2016, apps that have not migrated their database may see a "428" error code if the request cannot be handled by the remaining shared pool of resources. If you see this error in your logs, we highly recommend migrating the database for your app without delay.
Means this happens because of starting this date all apps are on low priority but those who started DB migration. So, Migration of the DB should resolve that.

Laravel 3 APC session lifetime is ignored

I have a Laravel 3 project, running on a plesk 11.5 CentOS 4(dedicated). It used to be on an IIS server, but i had to migrate it to plesk, since the company i'm working for is dumping the IIS server. Everything seemed to be running smoothly, until i logged out from my application, at first i got a WSOD (white screen of death), then i enabled php error reporting, and this is the error that was displayed:
Fatal error: Cannot override final method Laravel\Database\Eloquent\Model::sync()
This is a very strange error, since i have no method called Sync in any of my classes, and needless to say that there was no such error while the project was running on IIS.
I tried several different combinations of session/cache drivers, the only one that seems to be working is the APC driver.
When i have the APC driver enabled for cache and session, the above Fatal error is not displayed and everything works correctly. The PROBLEM is that i have given the Session Lifetime a value of 60(minutes) but it is completely ignored, meaning that the user is logged out after 2 or 3 minutes.
I've been to the Laravel IRC channel with this issue, some people kindly suggested to tweak the APC memory and ttl (time to leave) settings, but with no luck unfortunately :(.
Here are some APC settings from my server configuration:
apc.gc_ttl 3600
apc.shm_size 1024M
apc.shm_strings_buffer 32M
I desperately need help if anyone has any to offer! This is for a live running project and i need to find a solution asap.
I had the exact same issue and couldn't find a solution. I was going round in circles trying to figure out what on earth was going wrong.
I finally came across this post:
Fatal error: Cannot override final method
You need to make sure that the apc.include_once_override setting is set to 0. In your apc.ini file set like so:
apc.include_once_override=0
This error seems to be caused by caching of included classes.
I solved the problem after looking around the plesk panel.
The problem was that i had "Run PHP as FastCGI application" selected.
I switched to "Run PHP as CGI application" and everything works perfectly.
I'm not sure what the exact source of the problem was, only that FastCGI triggered the error.

Mac: sandbox creation failed: 1002 (operation couldn't be completed 13)

Trying to migrate an app to sandbox and receiving this error on first launch. Subsequent launches are successful but nothing is migrated from prior data file locations.
xpchelper reply message validation: sandbox creation failed: 1002
Container object initialization failed: The operation couldn’t be completed. (Cocoa error 13.)
Have tried repairing permissions but no luck so far.
Any info would be great. Thanks.
This is the same bug referenced in other places whereby symlinks in any user directory cause container creation to fail.
I had the same issue after doing the following things:
- Upgraded to 10.9
- Changes the affected account from standard user to
admin.
After reviewing the access rights to user's folder, the read flag for user was not set. I can't imaging that I remove it. But set the read flag solved the issue.

Resources