Bug 1299028

Summary: /sbin/runuser: cannot set user id: Resource temporarily unavailable error
Product: OpenShift Online Reporter: romach007
Component: ImageAssignee: Rory Thrasher <rthrashe>
Status: CLOSED NOTABUG QA Contact: Wang Haoran <haowang>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 2.xCC: aos-bugs, jokerman, mmccomas, rthrashe, wzheng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-18 14:54:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description romach007 2016-01-15 17:48:50 UTC
Description of problem:

I have an Application with "WildFly Application Server 10" carteidge. URL - http://itevents2-romach.rhcloud.com/ . 

I see "500 - Internal Server Error"

When I try to make "rhc force-stop-app -a itevents2" command I get error:

Resources unavailable for operation. You may need to run 'rhc force-stop-app -a itevents2' and retry.
/sbin/runuser: cannot set user id: Resource temporarily unavailable

How can I stop or delete application?

Comment 1 Rory Thrasher 2016-01-15 22:43:12 UTC
Hi there,

Our operations team has looked at your gear and stopped some processes that were still running.  You should be able to use the gear again.  Can you access your app and run rhc commands now?

I'm not sure what gear size you've been using, but we've seen similar problems with the Wildfly cartridge on small size gears.  Wildfly is an Enterprise Java application, which means it can use quite a bit of memory.  I believe the recommendation is to use a medium or large gear in order to avoid memory issues.  If you're using a small gear, then these problems may occur again.

Rory

Comment 2 romach007 2016-01-16 09:40:27 UTC
> Can you access your app and run rhc commands now?

Yes, I can use my gear now.

> I'm not sure what gear size you've been using...

Yes, I have small gear.

Thank you? problem solved.

Comment 3 Rory Thrasher 2016-01-18 14:54:09 UTC
Glad your gear is working!  Unfortunately with a small gear size, similar issues may happen again.  I would recommend upgrading to a medium or large gear size if you're looking to use the WildFly cartridge (you can see more information here: https://developers.openshift.com/en/wildfly-getting-started.html).

I'm going to go ahead and close this bug as it looks like the issue has been fixed.