Installed another Rails application on server and existing application stop working - ruby-on-rails

I got below error when install another rails application on server.
App 970 stderr: Cannot execute "/home/ec2-user/.rvm/gems/ruby-2.3.0/gems/passenger-5.1.2/buildout/support-binaries/PassengerAgent": Permission denied (errno=13)
[ 2017-04-19 14:25:36.2735 898/7f6d6a5e4700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /var/www/html/entertainoz: An error occurred while starting up the preloader.
Error ID: 7312b405
Error details saved to: /tmp/passenger-error-S9HJRx.html
Message from application: Cannot execute "/home/ec2-user/.rvm/gems/ruby-2.3.0/gems/passenger-5.1.2/buildout/support-binaries/PassengerAgent": Permission denied (errno=13)
I tried to find the issue but still not get it.

Related

Error: Failed instance creation: Error transferring instance data: migration pre-dump failed

# lxc copy neo:lamp1 lamp1b
Error: Failed instance creation: Error transferring instance data: migration pre-dump failed
(00.000024) Warn (criu/log.c:203): The early log isn't empty
(00.139901) Warn (criu/image.c:134): Failed to open parent directory
(00.290094) Warn (compel/arch/x86/src/lib/infect.c:280): Will restore 1704 with interrupted system call
(00.572902) Warn (compel/arch/x86/src/lib/infect.c:280): Will restore 1715 with interrupted system call
(00.588287) Warn (compel/arch/x86/src/lib/infect.c:280): Will restore 1720 with interrupted system call
(00.695271) Error (criu/proc_parse.c:439): Can't open map_files: Permission denied
(00.695277) Error (criu/proc_parse.c:650): Can't open 1724's mapfile link 55929d9c5000: Permission denied
(00.695286) Error (criu/cr-dump.c:1158): Collect mappings (pid: 1724) failed with -1
(00.699648) Error (criu/cr-dump.c:1546): Pre-dumping FAILED.
I cannot understand this error message. What's going on here?

iOS React Native App/ Build Succeeded but App not getting open in iOS device/ Simulator

iOS App is build successfully but App is not getting open in the Simulator or device.
Getting chmod error for the app path.
Error:
info ** BUILD SUCCEEDED **
info Installing <PATH TO APP>.app
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Could not install at this time.
Failed to chmod /Users/surabhiagrawal/Library/Developer/CoreSimulator/Devices/7A54A41E-006C-4B29-B33A-BE956F715255/data/Bundle/Application/0A68FDA4-1D57-49BB-8377-7BA5AC9BBB46/<AppName> : No such file or directory
Underlying error (domain=MIInstallerErrorDomain, code=4):
Failed to chmod /Users/surabhiagrawal/Library/Developer/CoreSimulator/Devices/7A54A41E-006C-4B29-B33A-BE956F715255/data/Bundle/Application/0A68FDA4-1D57-49BB-8377-7BA5AC9BBB46/<AppName>.app/<AppName> : No such file or directory
info Launching <Package Name>
com.goshopmatic.ShopmaticGoApp: -1
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "App Package name" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application <App_Path_Name> is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. Application "App package name" is unknown to FrontBoard.
Application "App package name" is unknown to FrontBoard.
I fixed this by upgrading XCode.

Exception RuntimeError in Passenger RequestHandler's client socket (can't modify string; temporarily locked)

Receiving below error on rails application hosted on nginx:
Sending 502 response: application did not send a complete response
App 1462 stderr: [ 2015-xx-xx 15:10:29.2082 1494/XXXXXXXXXXXX(Worker 1) utils.rb:85 ]: *** Exception RuntimeError in Passenger RequestHandler's client socket (can't modify string; temporarily locked) (process 1494, thread XXXXXXXXXXXXX(Worker 1)):
App 1462 stderr: from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-5.0.13/lib/phusion_passenger/utils/unseekable_socket.rb:188:in `read'
App 1462 stderr: from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-5.0.13/lib/phusion_passenger/utils/unseekable_socket.rb:188:in `read'
[ 2015-09-09 15:10:29.2083 1423/7fa8af7fe700 age/Cor/Req/Utils.cpp:95 ]: [Client 6-19] Sending 502 response: application did not send a complete response
App 1462 stderr: from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-5.0.13/lib/phusion_passenger/message_channel.rb:177:in `read_scalar'
App 1462 stderr: from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-5.0.13/lib/phusion_passenger/request_handler/thread_handler.rb:217:in `parse_session_request'
App 1462 stderr: from /usr/local/lib/ruby/gems/1.9.1/gems/passenger
Restarted VM and application but receiving same error.
Not sure what exactly causes this error. But as can be found from this link:
http://code.google.com/p/phusion-passenger/issues/detail?id=582
We reuse the same buffer over and over for receiving request data, for performance reasons. If your app is somehow able to use our buffer for receiving I/O data as well, in a different thread, then that would result in a race condition with the reporter error as a result.
One user reports resolution of similar problem here:
http://code.google.com/p/phusion-passenger/issues/detail?id=605
Indeed, I've narrowed it down to rails-master and/or rack-cache 1.0. When removing caching from latest version of rails (so it does not load rack-cache) everything works.
Hope it will be helpful

ERROR: Unable to retrieve device list

I get the following error when I try to user Target IO to run my application. I'm using Windows 7, 64-bit.
[INFO] Installing app on device: is it connected?
[INFO] connect: No error
[INFO] usbmuxd_get_device_list: error opening socket!
[INFO] ERROR: Unable to retrieve device list!
I get the following messages when I try to install my application.
[ERROR] Failed when running C:\...win-ios-install.exe: connect: No error
usbmuxd_get_device_list: error opening socket!
ERROR: Unable to retrieve device list!
Anyone have this error? Any ideas how to resolve it? Thanks.
The problem was that I didn't have iTunes installed. The documentation is here: http://docs.trigger.io/en/v1.4/tools/ios-windows.html#setting-up-forge-to-run-ios-apps
I got the answer from the tigger.io IRC from mib_9fc0ff. Thanks mib_9fc0ff and Amir.

Apache with passenger gives error(Premature end of script headers) in development mode

I'm using Apache + passenger for my rails application, The application is running fine in production mode except when the browser displays error message after every 2-3 clicks in development mode which goes off when i refresh the page.I'm using metal in my rails application which i see could be the reason but not sure if it is the only reason.
Error message on browser:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.16 (Ubuntu) Server at localhost Port 80
Apache log Error:
[Thu Dec 01 16:55:23 2011] [error] [client 127.0.0.1] Premature end of script headers: view_transactions, referer: http://localhost/admin_portal/1014978061/view_transactions
[ pid=660 thr=3078097552 file=ext/apache2/Hooks.cpp:822 time=2011-12-01 16:55:23.563 ]: The backend application (process 796) did not send a valid HTTP response; instead, it sent nothing at all. It is possible that it has crashed; please check whether there are crashing bugs in this application.
[ pid=796 thr=-608495398 file=utils.rb:176 time=2011-12-01 11:25:23.878 ]: *** Exception NoMethodError in application (undefined method `new' for Rails:Module) (process 796, thread #<Thread:0xb77631b4>):
from /home/brijendra/aptana_studio_3_workspace/wantsa/vendor/plugins/newrelic_rpm/lib/new_relic/control.rb:467:in `new_instance'
from /home/brijendra/aptana_studio_3_workspace/wantsa/vendor/plugins/newrelic_rpm/lib/new_relic/control.rb:54:in `instance'
from /home/brijendra/aptana_studio_3_workspace/wantsa/vendor/plugins/newrelic_rpm/lib/new_relic/agent.rb:167:in `logger'
I would be eager to post any other output if required and also suggestions to fix this issue.
I fixed this error by changing cache as true in my development.rb and it worked fine.

Resources