Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote Administration (rmiregistry) causes App/Prcs boots to hang on Windows #61

Open
iversond opened this issue Nov 23, 2017 · 3 comments

Comments

@iversond
Copy link
Contributor

If Remote Administration is enabled on an app or prcs domain, psadmin will spawn an rmiregistry window that prevents psadmin from exiting the subshell. If running psa on the server, you will see a new cmd window that is running rmiregistry. If you disable Remote Administration, the psa start app and psa start prcs commands run to success.

@iversond
Copy link
Contributor Author

@iversond
Copy link
Contributor Author

Currently not supporting this. To get around the issue, disable Remote Administration in your psappsrv.cfg and psprcs.cfg files.

@kbens
Copy link
Member

kbens commented Feb 1, 2021

The issue appears to be ruby trying to capture STDOUT and assigning it to a variable. We really don't need the STDOUT in a variable for psadmin start commands. So, adding an additional argument to do_cmd, which defaults to output = true. Goal would be to update the do_cmd call from the do_start methods and pass in false for output argument. When that is done, out = #{cmd} becomes system("#{cmd}"). Ruby still prints the STDOUT and waits for it to finish, but now it doesn't hang on the end, waiting for child processes like rmiregistry to finish.

# from do_start method
 do_cmd(start_app_cmd,true,true,false)
# from do_cmd method
when "windows"
        case powershell
        when true
            case "#{PS_PSA_DEBUG}"
            when "true"
                p "Command: powershell -NoProfile -Command \"#{cmd}\""
            end
            if output
				out = `powershell -NoProfile -Command "#{cmd}"`						
			else
				system("powershell -NoProfile -Command \"#{cmd}\"")
			end

@kbens kbens self-assigned this Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants