- Flexera Community
- :
- FlexNet Manager
- :
- FlexNet Manager Forum
- :
- PowerShell error when upgrading to 2020 R2 "Access to Message Queuing system is denied."
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am completing the configure part of the upgrade and getting error related to MSMQ. I have also raised a case.
Running ".\Config.ps1 "Config\FNMS Windows Authentication Config.xml" updateconfig"
Getting error:
Completed step Configure BusinessReportingAuthentication virtual directory.
Executing step Create MSMQ queues.
MSMQ is already installed
MSMQ-Services is already installed
MSMQ-Server is already installed
Queue exists but its transactional state () is different to the expected (True). The queue will be recreated.
ExecuteCustomScripts : System.Management.Automation.MethodInvocationException: Exception calling "Delete" with "1" argument(s): "Access to Message Queuing system is denied." ---> System.Messaging.MessageQueueException: Access to Message
Queuing system is denied.
at System.Messaging.MessageQueue.Delete(String path)
at CallSite.Target(Closure , CallSite , Object , String )
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
at System.Management.Automation.CommandProcessorBase.Complete()
At C:\temp\FNMSDownloads\FNMS 2020 R2\FlexNet Manager Suite\support\ConfigHelper.ps1:1146 char:11
+ $ret = ExecuteCustomScripts $configMode $serverStep
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,ExecuteCustomScripts
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
It sounds like the message queues might have been created with another user. The FNMS config script sets the service account as "Full Control". Please check the queues in Computer Management and see if you can change the user permissions.
Adding permission afterwards can be tricky (if your current account doesn't have rights). Maybe uninstalling the message queuing from the server does the trick? The script should automatically re-install the feature.
Best regards,
Markward
This thread has been automatically locked due to inactivity.
To continue the discussion, please start a new thread.
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
It sounds like the message queues might have been created with another user. The FNMS config script sets the service account as "Full Control". Please check the queues in Computer Management and see if you can change the user permissions.
Adding permission afterwards can be tricky (if your current account doesn't have rights). Maybe uninstalling the message queuing from the server does the trick? The script should automatically re-install the feature.
Best regards,
Markward
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I then reran the script, this time it recreated the queues but failed. I reran the script again and it worked.
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I agree with @mfranz , either your service account should have Full Control/Access to MSMQ
or uninstall the MSMQ by browsing > Server Manager > Manage > Remove roles or features
Then re-run power shell scripts, it should create MSMQ without any errors
