Heĺlo Inedo team
Is there any way to add a server with ssh connection with implicit sudo ?
I have this case as ssh root login is not allowed on some of our servers.
Best regards
PhilippeC.
Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Posts
-
OT/BM Configure linux server connection with implicit sudo
-
RE: [OTTER 3] Upgrade to 3.0.21 breaks Template variables in Edit Template Details
Hi,
I upgrade again to 3.0.21.
The problem occurs only for the job I wanted to modify.
All the others jobs can be edited.I have to roll back to 3.0.18.
If this pb is too complex to resolve, I will recreate the job. Let me know :)
Best regards
-
RE: [OTTER 3] Upgrade to 3.0.21 breaks Template variables in Edit Template Details
Hello @rhessinger
It happens for all the variables of all the templates jobs.
I did not try to create a new variables as I needed to modify an existing one. -
RE: [OTTER 3] Upgrade to 3.0.21 breaks Template variables in Edit Template Details
Downgrade to 3.0.18 restore the access.
Downgrade to 3.0.20 doesn't -
[OTTER 3] Upgrade to 3.0.21 breaks Template variables in Edit Template Details
Hello
I upgrade to 3.0.21 (build 2) and can't access to Template Variables anymore


Error log :
Details: URL: http://:8626/jobs/templates/edit-variable?templateId=Default::JobTemplate::VMWARE-VM-Creation&variableIndex=0
Referrer: https:///jobs/templates/template?templateId=Default::JobTemplate::VMWARE-VM-Creation
User: Admin
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36
Stack trace: à Inedo.Otter.WebApplication.Pages.Jobs.JobTemplates.EditJobTemplateVariablePage.CreateChildControls()
à Inedo.Otter.WebApplication.Pages.OtterSimplePageBase.<InitializeAsync>d__9.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à Inedo.Web.PageFree.SimplePageBase.<ExecutePageLifeCycleAsync>d__57.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à Inedo.Web.PageFree.SimplePageBase.<ProcessRequestAsync>d__56.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar)
à Inedo.Web.Handlers.AsyncHandlerWrapper.EndProcessRequest(IAsyncResult result)
à System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
à System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
à System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -
RE: BM 6 - Deploy Configuration file with a lot of special characters
Thanks you Rich
it is working !. -
BM 6 - Deploy Configuration file with a lot of special characters
Hello
I am using BM to deploy HAProxy config and I need some help to add the following rules in a configuration file:
# ACL LOG4J https://www.haproxy.com/blog/december-2021-log4shell-mitigation/ option http-buffer-request acl log4shell url,url_dec -m reg \${[^}]*\${ acl log4shell url,url_dec -m reg \${jndi:(?:ldaps?|iiop|dns|rmi):// acl log4shell url,url_dec -i -m reg \${[\w${}\-:]*j[\w${}\-:]*n[\w${}\-:]*d[\w${}\-:]*i[\w${}\-:]*:.*} acl log4shell req.hdrs -m reg \${[^}]*\${ acl log4shell req.hdrs -m reg \${jndi:(?:ldaps?|iiop|dns|rmi):// acl log4shell req.hdrs -i -m reg \${[\w${}\-:]*j[\w${}\-:]*n[\w${}\-:]*d[\w${}\-:]*i[\w${}\-:]*:.*} acl log4shell_form req.body,url_dec -m reg \${[^}]*\${ acl log4shell_form req.body,url_dec -m reg \${jndi:(?:ldaps?|iiop|dns|rmi):// acl log4shell_form req.body,url_dec -i -m reg \${[\w${}\-:]*j[\w${}\-:]*n[\w${}\-:]*d[\w${}\-:]*i[\w${}\-:]*:.*} http-request deny if log4shell http-request deny if { req.fhdr(content-type) -m str application/x-www-form-urlencoded } log4shell_formSpecial characters break the deployment
I tried to add ` in front of $ unsuccessfullyBest regards
Philippe C. -
RE: OTTER 3.0.12 / jobs scheduling add +2H
Hi,
In user preference, I just can select Dark ModeHere are some screenshots on what I did - it not a recuring job


As it is not a recuring job I change your SQL request:
SELECT [Job_Id] ,[Job_Name] ,[LastRun_Date] ,[JobState_Code] ,[Job_Configuration] ,[Recurring_Indicator] ,[TriggeredBy_Template_Name] FROM [Otter3].[dbo].[Jobs] WHERE [Recurring_Indicator] = 'N'
<Inedo.Otter.Jobs.JobConfiguration Assembly="OtterCoreEx"> <Properties JobType="Orchestration" ServerTargeting="Specific" Simulation="False" Async="False"> <ScriptId>Windows::Script::SQL-BackupDatabaseVersTransit.ps1</ScriptId> <ServerNames> <Item>*********************</Item> </ServerNames> <ServerRoleNames /> <EnvironmentNames /> <Variables> <Variable Name="BackupInstance">**************</Variable> <Variable Name="BackupDB">*********</Variable> <Variable Name="BackupDestination">\\*****************$</Variable> </Variables> </Properties> </Inedo.Otter.Jobs.JobConfiguration>Best Regards
PhilippeC. -
OTTER 3.0.12 / jobs scheduling add +2H
Hi,
Just to report that job scheduling is not working as expectedI scheduled a job to run the 09 October 2021 @23:30 but the job is scheduled the 10 October @01:30
My zoneTime is Europe\Paris (French time).
I am using Otter 3.0.12 on Windows / Install using InedoHub -
RE: Otter 3 - Error This operation is only valid when run against an SSH agent.
@gdivis
Thanks for the resolution -
RE: OTTER 3 - Variable at environnement level not found
@atripp
Oups
Sorry about that.
I made other tests since I created the thread.
The data I send you are not correct
I will wait for the 3.0.6 to make a clean test case and update the thread. -
RE: Otter 3 - Error This operation is only valid when run against an SSH agent.
@gdivis
Oh thanks but I will wait for the release.I won't have so much time to test the week. -
RE: Otter 3 - Error This operation is only valid when run against an SSH agent.
@atripp
Hi,
I have made a second test with a second Linux Server with the same result

-
RE: Otter 3 - Error This operation is only valid when run against an SSH agent.
@atripp said in Otter 3 - Error This operation is only valid when run against an SSH agent.:
I have made a test.
I also made a Configuration Plan (Ensure Directory which works).for server VM111021 { SHExec echo hello world; }


-
RE: How to use PSEnsure Module and Custom PSRepository ?
Hi
Good news.About your question, typical PSModule with problem is PSDscResources.
The required version is 2.12.0 according Proget or Powershell Gallery.So if I put 2.21.0 as expected, I have this error msg:
'PSDscResources' matched module 'PSDscResources/2.12.0' from provider: 'PowerShellGet', repository 'public-psm'. 00:00:02.9523782 Calling New() : MethodName = 'ResolvePackageSources' 00:00:02.9574228 ProviderName: PowerShellGet 00:00:02.9588935 Type: Module 00:00:02.9640191 Source: public-psm 00:00:02.9647101 AllowClobber: True 00:00:02.9653443 Force: True 00:00:02.9661637 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString 00:00:02.9665059 Scope: AllUsers 00:00:02.9669827 Verbose: True 00:00:02.9673645 RequiredVersion: 2.12.0 00:00:02.9680437 AllowPrereleaseVersions: True 00:00:02.9685090 Name: PSDscResources 00:00:02.9701497 INVOKING PowerShell Fn Resolve-PackageSource with args that has length 0 00:00:02.9714322 In PowerShellGet Provider - 'Resolve-PackageSource'. Repository details, Name = 'public-psm', Location = 'http://proget.ocapiat.fr/nuget/public-psm'; IsTrusted = 'True'; IsRegistered = 'True'. 00:00:02.9748490 Yielding package source for public-psm at location http://proget.ocapiat.fr/nuget/public-psm 00:00:02.9780498 Done calling powershell «Resolve-PackageSource» «PSModule» 'PSDscResources' matched module 'PSDscResources/2.12.0.0' from provider: 'PowerShellGet', repository 'public-psm'. Unable to install, multiple modules matched 'PSDscResources'. Please specify an exact -Name and -RequiredVersion.If I put 2.12.0.0, I have this error msg.
00:00:00.9132094 Done calling powershell «Resolve-PackageSource» «PSModule» 'PSDscResources' matched module 'PSDscResources/2.12.0' from provider: 'PowerShellGet', repository 'public-psm'. 00:00:00.9191831 Calling New() : MethodName = 'ResolvePackageSources' 00:00:00.9195904 ProviderName: PowerShellGet 00:00:00.9200664 Type: Module 00:00:00.9203234 Source: public-psm 00:00:00.9205802 AllowClobber: True 00:00:00.9210930 Force: True 00:00:00.9217331 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString 00:00:00.9222181 Scope: AllUsers 00:00:00.9227262 Verbose: True 00:00:00.9230757 RequiredVersion: 2.12.0.0 00:00:00.9234290 AllowPrereleaseVersions: True 00:00:00.9237662 Name: PSDscResources 00:00:00.9249879 INVOKING PowerShell Fn Resolve-PackageSource with args that has length 0 00:00:00.9277038 In PowerShellGet Provider - 'Resolve-PackageSource'. Repository details, Name = 'public-psm', Location = 'http://proget.ocapiat.fr/nuget/public-psm'; IsTrusted = 'True'; IsRegistered = 'True'. 00:00:00.9306787 Yielding package source for public-psm at location http://proget.ocapiat.fr/nuget/public-psm 00:00:00.9327326 Done calling powershell «Resolve-PackageSource» «PSModule» 'PSDscResources' matched module 'PSDscResources/2.12.0.0' from provider: 'PowerShellGet', repository 'public-psm'. Unable to install, multiple modules matched 'PSDscResources'. Please specify an exact -Name and -RequiredVersion.As I said, this was an original problem in PSGAllery, I found a trick to overcome it (ie Minimumversion with the DSC PackageManagement)
Now as I am triyng to move to the new ensure-PSModule, I have again the damned problem. -
RE: How to use PSEnsure Module and Custom PSRepository ?
@rhessinger
Thank you for the suggestion I did not think about this.
I did run the Get-PSRepository and there was only the powershell gallery ...As PSRepo can t defined at the server level this behaviour is not a big surprise.
About the version, I had problems with module version month ago as I am using Proget for Powershell Gallery proxy
Due to a known bug made by Microsoft on Powershell Gallery, version was a mess for some modules.
I found that using Minimumversion overcomes the problem in my situation.I think you should add a function to manage PSRepo to complete the Ensure Module function.
As you have Proget it would make sense.
Thanks again.

