[ 2014-02-10 13:51:00.0173 22995/7f012fa3b700 Pool2/Implementation.cpp:883 ]: Could not spawn process for group /var/www/rubycas#default: An error occurred while starting up the preloader: it did not write a startup response in time.
in 'void Passenger::ApplicationPool2::SmartSpawner::throwPreloaderSpawnException(const string&, Passenger::SpawnException::ErrorKind, Passenger::ApplicationPool2::Spawner::BackgroundIOCapturerPtr&, const DebugDirPtr&)' (SmartSpawner.h:146)
in 'std::string Passenger::ApplicationPool2::SmartSpawner::negotiatePreloaderStartup(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:566)
in 'void Passenger::ApplicationPool2::SmartSpawner::startPreloader()' (SmartSpawner.h:206)
in 'virtual Passenger::ApplicationPool2::ProcessPtr Passenger::ApplicationPool2::SmartSpawner::spawn(const Passenger::ApplicationPool2::Options&)' (SmartSpawner.h:752)
in 'void Passenger::ApplicationPool2::Group::spawnThreadRealMain(const SpawnerPtr&, const Passenger::ApplicationPool2::Options&, unsigned int)' (Implementation.cpp:804)
[ 2014-02-10 13:51:00.0253 22995/7f0127fff700 agents/HelperAgent/RequestHandler.h:2088 ]: [Client 20] Cannot checkout session.
This is the error i encountered when i'm trying to access rubycas over apache
Rails 2.3.8
Phusion Passenger version 4.0.37
Ruby 1.8
Thanks,
Swaroop
Try taking a look at this troubleshooting page: Debugging startup problems
Related
During Pig HBASE Ingestion from HDFS I am getting Unhandled internal error. Bad type on operand stack as exception while running pig as MR mode.
2017-03-08 04:02:57,329 [main] ERROR
org.apache.pig.tools.grunt.Grunt
- ERROR 2998: Unhandled internal error. Bad type on operand stack Exception Details: Location:
org/apache/pig/backend/hadoop/hbase/HBaseStorage.initScan()V #320:
invokespecial Reason: Type
'org/apache/hadoop/hbase/filter/BinaryComparator' (current frame,
stack[6]) is not assignable to
'org/apache/hadoop/hbase/filter/ByteArrayComparable' Current
Frame: bci: #320 flags: { } locals: {
'org/apache/pig/backend/hadoop/hbase/HBaseStorage', '[B' } stack:
{ 'org/apache/pig/backend/hadoop/hbase/HBaseStorage', uninitialized
298, uninitialized 298, uninitialized 302, uninitialized 302,
'org/apache/hadoop/hbase/filter/CompareFilter$CompareOp',
'org/apache/hadoop/hbase/filter/BinaryComparator' }
I am using pig 0.16.0 with Apache Hadoop 2.7 & Hbase 0.94.27.
I'm using chef_gem "right_aws" version '3.0.5'
https://supermarket.chef.io/cookbooks/aws#changelog
v2.5.0 (2014-10-22)
Got the following error when trying to use aws cookbook in ec2-central-1 region
WARN: Rightscale::HttpConnection : request failure count: 1, exception: #<SocketError: getaddrinfo: Name or service not known>
WARN: Rightscale::HttpConnection : request failure count: 2, exception: #<SocketError: getaddrinfo: Name or service not known>
WARN: Rightscale::HttpConnection : request failure count: 3, exception: #<SocketError: getaddrinfo: Name or service not known>
WARN: Rightscale::HttpConnection : request failure count: 4, exception: #<SocketError: getaddrinfo: Name or service not known>
WARN: Rightscale::HttpConnection : re-raising same error: https://eu-central-1.ec2.amazonaws.com:443 temporarily unavailable: (SocketError: getaddrinfo: Name or service not known) -- error count: 4, error age: 0
From this documentation 'http://docs.aws.amazon.com/general/latest/gr/rande.html',
the endpoint should be 'ec2.eu-central-1.amazonaws.com'
I tried to edit my cookbook under libraries-> ec2.rb, but it doesn't work:
require 'open-uri'
module Opscode
module Aws
module Ec2
...
def ec2
region = instance_availability_zone
region = region[0, region.length-1]
aws_ec2_endpoint = "https://ec2." + region + ".amazonaws.com"
Chef::Log.debug("Using AWS EC2 endpoint: " + aws_ec2_endpoint)
##ec2 ||= create_aws_interface(RightAws::Ec2)
end
Any workarounds anyone can offer?
Thanks!
If you have the same issue, please find all details here:
https://github.com/rightscale/right_aws/issues/190
I have a module as below in a js file
app.js
angular.module( 'app', [ 'ui.bootstrap', 'routes', 'module2', 'ngAnimate', 'ngSanitize' ] );
If i am to write a unit test case then how should i load the modules in my unit test case??
Is it this way
module('app');
Other way
module('ui.bootstrap');
module('routes');
module('module2');
module('ngAnimate');
module('ngSanitize');
Which is right order or the right way to load the module...As am always getting the below error
Error: [$injector:unpr] Unknown provider: deepakProvider <- deepak
http://errors.angularjs.org/1.4.9/$injector/unpr?p0=deepakProvider%20%3C-%20deepak
at C:/jasmine/InformedEnrollment2/src/webapp/informedenrollment2/webclnt/components/angular/angular.js:68:12
at C:/jasmine/project/src/webapp/project/webclnt/components/angular/angular.js:4346:19
at Object.getService [as get] (C:/jasmine/project/src/webapp/project/webclnt/components/angular/angular.js:4494:39)
at C:/jasmine/project/src/webapp/project/webclnt/components/angular/angular.js:4351:45
at Object.getService [as get] (C:/jasmine/project/src/webapp/project/webclnt/components/angular/angular.js:4494:39)
at Object.<anonymous> (C:/jasmine/project/tests/DemoToTheTeam.js:20:47)
at Object.invoke (C:/jasmine/project/src/webapp/project/webclnt/components/angular/angular.js:4535:17)
at Object.workFn (C:/jasmine/project/node_modules/angular-mocks/angular-mocks.js:3071:20)
Error: Declaration Location
at window.inject.angular.mock.inject (C:/jasmine/project/node_modules/angular-mocks/angular-mocks.js:3033:25)
at Suite.<anonymous> (C:/jasmine/project/tests/DemoToTheTeam.js:19:15)
at C:/jasmine/project/tests/DemoToTheTeam.js:2:1
TypeError: Cannot read property 'multiply' of undefined
at Object.<anonymous> (C:/jasmine/project/tests/DemoToTheTeam.js:26:13)
50.0.2661 (Windows 7 0.0.0): Executed 7 of 7 (1 FAILED) (0.182 secs / 0.064 secs)
When I try to install my application generated in Visual Studio 2012 C# I get an "Value does not fall within the expected range." error. I have tried to install it with several users but to no avail.
Following are the details:
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.34209
System.Deployment.dll : 4.0.30319.34244 built by: FX452RTMGDR
clr.dll : 4.0.30319.34209 built by: FX452RTMGDR
dfdll.dll : 4.0.30319.34244 built by: FX452RTMGDR
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : file:///D:/Installer/documentGenerator/docGeni.application
IDENTITIES
Deployment Identity : docGeni.application, Version=4.0.0.10, Culture=en-AU, PublicKeyToken=31f8b94b44056c11, processorArchitecture=x86
APPLICATION SUMMARY
* Installable application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of D:\Installer\documentGenerator\docGeni.application resulted in exception. Following failure messages were detected:
+ Value does not fall within the expected range.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [4/10/2015 9:18:43 AM] : Activation of D:\Installer\documentGenerator\docGeni.application has started.
* [4/10/2015 9:18:43 AM] : Processing of deployment manifest has successfully completed.
ERROR DETAILS
Following errors were detected during this operation.
* [4/10/2015 9:18:43 AM] System.ArgumentException
- Value does not fall within the expected range.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
* Transaction at [4/10/2015 9:18:43 AM]
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Status: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
- HRESULT: 0x0
What does error mean? Which value is not within range?
I solved the issue by creating a brand application in VS and copying all the files from the old application to the new app.
Now I can install the app once again :-)
As far as I am concerned the issue is resolved but I would still like to you know the error means.
Here's my code
import sys
from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtWebKit import *
from encodings import *
from codecs import *
class BrowserWindow( QWidget ):
def __init__( self, parent=None ):
QWidget.__init__( self, parent )
self.Setup()
self.SetupEvent()
def Setup( self ):
self.setWindowTitle( u"Truease Speedy Browser" )
self.addr_input = QLineEdit()
self.addr_go = QPushButton( "GO" )
self.addr_bar = QHBoxLayout()
self.addr_bar.addWidget( self.addr_input )
self.addr_bar.addWidget( self.addr_go )
for attr in [
QWebSettings.AutoLoadImages,
QWebSettings.JavascriptEnabled,
QWebSettings.JavaEnabled,
QWebSettings.PluginsEnabled,
QWebSettings.JavascriptCanOpenWindows,
QWebSettings.JavascriptCanAccessClipboard,
QWebSettings.DeveloperExtrasEnabled,
QWebSettings.SpatialNavigationEnabled,
QWebSettings.OfflineStorageDatabaseEnabled,
QWebSettings.OfflineWebApplicationCacheEnabled,
QWebSettings.LocalStorageEnabled,
QWebSettings.LocalStorageDatabaseEnabled,
QWebSettings.LocalContentCanAccessRemoteUrls,
QWebSettings.LocalContentCanAccessFileUrls,
]:
QWebSettings.globalSettings().setAttribute( attr, True )
self.web_view = QWebView()
self.web_view.load( "http://www.baidu.com" )
layout = QVBoxLayout()
layout.addLayout( self.addr_bar )
layout.addWidget( self.web_view )
self.setLayout( layout )
def SetupEvent( self ):
self.connect(
self.addr_input,
SIGNAL("editingFinished()"),
self,
SLOT("Load()"),
)
self.connect(
self.addr_go,
SIGNAL("pressed()"),
self,
SLOT("Load()")
)
self.connect(
self.web_view,
SIGNAL("urlChanged(const QUrl&)"),
self,
SLOT("SetURL()"),
)
def Load( self, *args, **kwargs ):
url = self.GetCleanedURL()
if url != self.CurrentURL():
self.web_view.load( url )
def SetURL( self, *args, **kwargs ):
self.addr_input.setText( self.CurrentURL() )
def GetCleanedURL( self ):
url = self.addr_input.text().strip()
if not url.startswith("http"):
url = "http://" + url
return url
def CurrentURL( self ):
url = self.web_view.url().toString()
return url
def Main():
app = QApplication( sys.argv )
widget = BrowserWindow()
widget.show()
return app.exec_()
if __name__ == '__main__':
sys.exit( Main() )
I works well when i using python browser.py. but it goes wrong after packaged with pyinstaller -w browser.py.
it doesn't load images
can only display correct text in utf-8
And this is the pyinstaller output:
E:\true\wuk\app2>pyinstaller -w b.py
16 INFO: wrote E:\true\wuk\app2\b.spec
16 INFO: Testing for ability to set icons, version resources...
32 INFO: ... resource update available
32 INFO: UPX is not available.
46 INFO: Processing hook hook-os
141 INFO: Processing hook hook-time
157 INFO: Processing hook hook-cPickle
218 INFO: Processing hook hook-_sre
312 INFO: Processing hook hook-cStringIO
407 INFO: Processing hook hook-encodings
421 INFO: Processing hook hook-codecs
750 INFO: Processing hook hook-httplib
750 INFO: Processing hook hook-email
843 INFO: Processing hook hook-email.message
1046 WARNING: library python%s%s required via ctypes not found
1171 INFO: Extending PYTHONPATH with E:\true\wuk\app2
1171 INFO: checking Analysis
1171 INFO: building because b.py changed
1171 INFO: running Analysis out00-Analysis.toc
1171 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final executable
1171 INFO: Searching for assembly x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww ...
1171 INFO: Found manifest C:\WINDOWS\WinSxS\Manifests\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375.manifest
1187 INFO: Searching for file msvcr90.dll
1187 INFO: Found file C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375\msvcr90.dll
1187 INFO: Searching for file msvcp90.dll
1187 INFO: Found file C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375\msvcp90.dll
1187 INFO: Searching for file msvcm90.dll
1187 INFO: Found file C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375\msvcm90.dll
1266 INFO: Analyzing D:\Applications\Python\lib\site-packages\pyinstaller-2.1-py2.7.egg\PyInstaller\loader\_pyi_bootstrap.py
1266 INFO: Processing hook hook-os
1282 INFO: Processing hook hook-site
1296 INFO: Processing hook hook-encodings
1391 INFO: Processing hook hook-time
1407 INFO: Processing hook hook-cPickle
1468 INFO: Processing hook hook-_sre
1578 INFO: Processing hook hook-cStringIO
1671 INFO: Processing hook hook-codecs
2016 INFO: Processing hook hook-httplib
2016 INFO: Processing hook hook-email
2109 INFO: Processing hook hook-email.message
2312 WARNING: library python%s%s required via ctypes not found
2468 INFO: Processing hook hook-pydoc
2516 INFO: Analyzing D:\Applications\Python\lib\site-packages\pyinstaller-2.1-py2.7.egg\PyInstaller\loader\pyi_importers.py
2609 INFO: Analyzing D:\Applications\Python\lib\site-packages\pyinstaller-2.1-py2.7.egg\PyInstaller\loader\pyi_archive.py
2687 INFO: Analyzing D:\Applications\Python\lib\site-packages\pyinstaller-2.1-py2.7.egg\PyInstaller\loader\pyi_carchive.py
2782 INFO: Analyzing D:\Applications\Python\lib\site-packages\pyinstaller-2.1-py2.7.egg\PyInstaller\loader\pyi_os_path.py
2782 INFO: Analyzing b.py
2796 INFO: Processing hook hook-PySide
2875 INFO: Hidden import 'codecs' has been found otherwise
2875 INFO: Hidden import 'encodings' has been found otherwise
2875 INFO: Looking for run-time hooks
7766 INFO: Using Python library C:\WINDOWS\system32\python27.dll
7796 INFO: E:\true\wuk\app2\build\b\out00-Analysis.toc no change!
7796 INFO: checking PYZ
7812 INFO: checking PKG
7812 INFO: building because E:\true\wuk\app2\build\b\b.exe.manifest changed
7812 INFO: building PKG (CArchive) out00-PKG.pkg
7828 INFO: checking EXE
7843 INFO: rebuilding out00-EXE.toc because pkg is more recent
7843 INFO: building EXE from out00-EXE.toc
7843 INFO: Appending archive to EXE E:\true\wuk\app2\build\b\b.exe
7843 INFO: checking COLLECT
7843 INFO: building COLLECT out00-COLLECT.toc
Use pyinstaller browser.py, and in the console window i got
QFont::setPixelSize: Pixel size <= 0 (0)
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
QFont::setPixelSize: Pixel size <= 0 (0)
I encountered this same problem. It is caused by PyInstaller using incorrect versions of ssleay32.dll and libeay32.dll.
To fix, download and install "Win32 OpenSSL v1.0.1e".
Then create a spec file for your PyInstaller project:
pyi-makespec browser.py
Open your spec file, named browser.spec, and below the a = Analysis(['browser.py']) line, add:
for d in range(len(a.binaries)):
if a.binaries[d][0].lower() == 'ssleay32.dll':
print a.binaries[d]
a.binaries[d] = ('ssleay32.dll', 'C:\\\OpenSSL-Win32\\ssleay32.dll', 'BINARY')
if a.binaries[d][0].lower() == 'libeay32.dll':
print a.binaries[d]
a.binaries[d] = ('libeay32.dll', 'C:\\OpenSSL-Win32\\libeay32.dll', 'BINARY')
This will tell PyInstaller to use the OpenSSL-Win32 dlls instead of the ones your Python installation is using.
When running the Python script, my Python installation preferred the DLLs in my system path to those installed by pyOpenSSL/egenix, but when bundling with PyInstaller, it seems to prefer the pyOpenSSL/egenix ones. This should fix that.