poltergeist: apple window server permission error - phantomjs

I am using poltergeist to execute tests, recently this has stopped working. The first spec that tries using it fails with this error:
phantomjs[37617] <Error>: Set a breakpoint at CGSLogError to catch errors as they are logged.
phantomjs[37617] <Error>: On-demand launch of the Window Server is allowed for root user only.
phantomjs[37617] <Warning>: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (268435459)
phantomjs[37617] <Error>: On-demand launch of the Window Server is allowed for root user only.
phantomjs[37617] <Warning>: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (268435459)
phantomjs[37617] <Error>: This user is not allowed access to the window system right now.
phantomjs[37617] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
phantomjs[37617] <Warning>: Invalid Connection ID 0
phantomjs[37617:3258922] Could not rendezvous with font server (error 268435459)
phantomjs[37617:3258922] XType: unable to make a connection to the font daemon!
phantomjs[37617:3258922] registering /System/Library/Fonts/*, /System/Library/Fonts/Base/*, and /Library/Fonts/* locally
Reinstalling phantomjs, as well as poltergeist had no effect.
Googling this brings me far away from my known rubyverse.
I am guessing this is a permissions issue, but have no clue where to start looking.
I'd greatly appreciate a pointing in the right direction.

Related

Red5 demo apps showing error

I am getting following while connecting to red5 demo apps :
NetConnection.Connect.Closed
[WARN] [ConnectionChecker-1] org.red5.server.net.rtmp.RTMPConnManager - Connection GN0PSGBZE63TF has exceeded the max inactivity threshold of 60000 ms
[INFO] [NioProcessor-5] org.red5.server.net.rtmp.RTMPMinaConnection - Connection is closed:
[WARN] [NioProcessor-5] org.red5.server.net.rtmp.RTMPMinaIoHandler - Connection was not found for GN0PSGBZE63TF
[ERROR] [RTMPConnectionExecutor-3] org.red5.server.service.ServiceInvoker - Method getApplicationList with parameters [] not found in org.red5.server.Context#4989fa8
[WARN] [RTMPConnectionExecutor-3] org.red5.server.service.ServiceInvoker - Service not found: installer
[WARN] [ConnectionChecker-1] org.red5.server.net.rtmp.RTMPConnManager - Connection Q6TFXYIXBD4T4 has exceeded the max inactivity threshold of 60000 ms
[INFO] [NioProcessor-9] org.red5.server.net.rtmp.RTMPMinaConnection - Connection is closed:
[WARN] [NioProcessor-9] org.red5.server.net.rtmp.RTMPMinaIoHandler - Connection was not found for Q6TFXYIXBD4T4
[root#vps red5]# ^C
A few things are happening here:
Your client connection is timing out
The method you attempted to call doesn't exist
The installer service isn't installed or running
Obviously I dont know what happened before the first line "NetConnection.Connect.Closed" so I can't assume much about that missing section. To fix 1-3, you probably just need to add the installer app to your install. Grab all the stuff in this location and put it in your red5/webapps/installer directory: https://github.com/Red5/red5-server/tree/master/src/main/server/webapps/installer

Weblogic Admin Server Start issue - DataSource passwords got exparied

We are trying to use one of the existing weblogic 12c domain and It's DataSource passwords been expired.
Since AdminServer is not responding correctly I tried to re-start AdminServer as well, Now I have changed the DB passwords and wanted to set the new passwords starting the AdminServer, but I cant start AdminServer it's failing complaining passwords are expired. (I could have get a way with this issue if i keep the admin server running and set the new passwords)
I can see DataSources are targeted to Admin Server and I thought if I untarget DS from AdminServer I could start AdminServer correctly. hence I removed the AdminServer as a target from config.xml and tried o start the Admin but it's still failing complaining passwords are expired. Is Config cached anywhere , looks like I am Admin is still using the old config file ? by the way I have tried removing the tmp folder as well.
Also, I tried encrypting the new password and placing on JDBC config files, Probably the way I encrypted was wrong. These are the steps I used to encrypt
1. Connect to WLST offline ( because Admin is not up)
2. Read domain
3. Call encrypt function for new password
4. Print the encrypt password
Anything wrong ? Appreciate any suggestion to resolve this issue.
Error is starting like this ,
Jun 22, 2015 4:38:04 PM oracle.security.jps.JpsStartup start
INFO: Jps initializing.
Jun 22, 2015 4:38:07 PM org.hibernate.validator.util.Version <clinit>
INFO: Hibernate Validator 12.1.3.0.0
Jun 22, 2015 4:38:07 PM org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
[EL Severe]: ejb: 2015-06-22 16:38:11.173--ServerSession(143991231)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
Error Code: 1017
Jun 22, 2015 4:38:11 PM oracle.security.jps.internal.common.config.AbstractSecurityStore getSecurityStoreVersion
WARNING: Unable to get the Version from Store returning the default oracle.security.jps.service.policystore.PolicyStoreException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
Error Code: 1017
at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.processJPAException(JpsDBDataManager.java:2180)
at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.init(JpsDBDataManager.java:1028)
at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.jpsObjectBaseQuery(JpsDBDataManager.java:3089)
at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.queryBaseObjects(JpsDBDataManager.java:5761)
at oracle.security.jps.internal.common.config.AbstractSecurityStore.getSecurityStoreVersion(AbstractSecurityStore.java:211)
at oracle.security.jps.internal.common.config.AbstractSecurityStore.getSecurityStoreVersion(AbstractSecurityStore.java:195)
at oracle.security.jps.internal.common.config.AbstractSecurityStore.<init>(AbstractSecurityStore.java:99)
at oracle.security.jps.internal.credstore.AbstractCredentialStore.<init>(AbstractCredentialStore.java:104)
at oracle.security.jps.internal.credstore.ldap.LdapCredentialStore.<init>(LdapCredentialStore.java:130)
at oracle.security.jps.internal.credstore.ldap.LdapCredentialStoreProvider.getInstance(LdapCredentialStoreProvider.java:235)
at oracle.security.jps.internal.credstore.rdbms.DbmsCredentialStoreProvider.getInstance(DbmsCredentialStoreProvider.java:101)
at oracle.security.opss.internal.runtime.ServiceContextManagerImpl.createContextInternal(ServiceContextManagerImpl.java:432)
Thanks.
First take backup of complete config folder inside domain.It looks like you are using rdbms policy store inside domain.So check for security-realm tag in config.xml there you will able to find encrypted password change the same using newly encrypted password and your admin server should start.

ERR_EMPTY_RESPONSE When trying to access phpmyadmin

When accessing http://domain.com/phpmyadmin
I get the following error (this one is in chrome, but it is not working in any other browser either):
No data received
ERR_EMPTY_RESPONSE
When trying to access, apache's error log shows:
apache2: /build/buildd/xcache-1.3.2/stack.c:47: xc_stack_count: Assertion `stack != ((void *)0)' failed.
[Sat Apr 18 23:41:18 2015] [notice] child pid 31027 exit signal Aborted (6)
All worked well a week ago, can't figure out what went wrong.
Rebooted, reinstalled, reconfiugured phpmyadmin, nothing works :(
Working under Ubuntu 10.04,
Any ideas?
Was facing same error. Fixed it by removing a php module: php5-xcache
Received same error in browser.
Apache's error_log shows:
/usr/sbin/httpd: symbol lookup error: /usr/lib64/libnsssysinit.so: undefined symbol: PR_GetEnvSecure
Fixed by restarting Apache via stop and start (apachectl restart is not sufficient).

The 'Rate Controlled' connection 'appm' access to protected services is denied

We are now deploying our application to production. But an issue of Rate Controlled show up? How can we solve this one? Any steps might solve this issue.The issue is connecting to *** using a adapter that uses a java.
We are getting the error from ipad device.
<Warning>: DEBUG: Submitting credentials to Worklight
<Warning>: DEBUG: Checking for authRequired attribute in responseJSON
<Warning>: DEBUG: authRequired attribute is present in responseJSON true
<Warning>: DEBUG: authrequired === true? true
<Warning>: DEBUG: authRequired is true, calling onShowLogin
<Warning>: DEBUG: do login [object Object]
<Error>: HID: The 'Rate Controlled' connection 'appme' access to protected services is denied.
<Warning>: void SendDelegateMessage(NSInvocation *): delegate (webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode
<Warning>: ERROR: Failed to submit credentials to worklight
We are fetching credentials to ***. The adapter use jars and java classes to access the credentials.
Does not appear to be MobileFirst Platform-related.
Read through these threads, as it looks like you have some native code written by you here that is involved:
https://discussions.apple.com/thread/6074570
http://forums.coronalabs.com/topic/47830-hid-the-passive-connection-appname-access-to-protected-services-is-denied/
From these threads it seems that the real issue not the "HID ... access denied", but something else in your code that affects the network requests.
Note that you are also printing "[object object]"...
If this is working in the development environment but not in your production environment, then indeed you need to verify your network for anything potential who may cause delays or block requests.

apache mod_proxy error os10060 and returning 503?

Can't get to my site. Apache gives the following error message:
[Fri Sep 05 08:47:42 2008] [error] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : proxy: HTTP: attempt to connect to 10.10.10.1:80 (10.10.10.1) failed
Can you connect to the proxied host (10.10.10.1) directly? Is it functioning normally?
http://www.checkupdown.com/status/E503.html
Your Web server is effectively 'closed for repair'. It is still functioning minimally because it can at least respond with a 503 status code, but full service is impossible i.e. your Web site is simply unavailable. There are a myriad possible reasons for this, but generally it is because of some human intervention by the operators of your Web server machine. You can usually expect that someone is working on the problem, and normal service will resume as soon as possible.
You need to restart the webserver then figure out why it shut it self down.