go to post Eduard Lebedyuk · Jul 25, 2019 By default Ensemble service is run under System account, which does not have user environment variables.You can either specify system variables or run Ensemble service from a user account.
go to post Eduard Lebedyuk · Jul 21, 2019 This really helps when you have several running containers simultaneously and don't know what port of Management Portal relates to a certain terminal.Wouldn't help, as terminals would report internal container port, which is always 52773.
go to post Eduard Lebedyuk · Jul 20, 2019 For general approaches check Debugging Web articles: Part 1, Part 2.
go to post Eduard Lebedyuk · Jul 19, 2019 Check this post to see how you can access all levels of dynamic object.
go to post Eduard Lebedyuk · Jul 18, 2019 I suggest you contact the WRC for this problem.I think the problem is in the command escaping.
go to post Eduard Lebedyuk · Jul 18, 2019 Try C:\InterSystems\Cache\bin\cache.exe -s C:\InterSystems\Cache\mgr -U %%SYS C:\Users\Zdenda\Desktop\run.script
go to post Eduard Lebedyuk · Jul 18, 2019 Well, show your cmd script (as text) and ObjectScript script.
go to post Eduard Lebedyuk · Jul 18, 2019 ObjectScript script I guess. Just a file with ObjectScript commands.Here's a sample.
go to post Eduard Lebedyuk · Jul 18, 2019 You need to either escape your command or use a separate file for a script. I recommend a file.
go to post Eduard Lebedyuk · Jul 18, 2019 I've got minimal security settingsThen you don't need to provide user and password. I can use this method right Login(Username As %String, Password As %String)?No. First line of script - user, second line - password. After that - ObjectScript.Do $system.OBJ.Load("Installer.xml", "c") I dont know why. Try full path. Also this method returns status, check it: Set sc = $system.OBJ.Load("/path/to/Installer.xml", "c") Write:('sc) $System.Status.GetErrorText(sc)
go to post Eduard Lebedyuk · Jul 18, 2019 First two lines of your script should probably be user and password, unless you're running a minimal security install or enabled OS authentication.ObjectScript code after that, yes, sothis looks correct do ##class(User.Installer).setup() Maybe you need to load User.Installer beforehand? Use $system.OBJ.Load(file, "c") to load and compile class(es) you need.
go to post Eduard Lebedyuk · Jul 18, 2019 Sure csession {INSTANCE} -U{NAMESPACE} < {SCRIPT} Script contains code you want to execute, in your case the call to installer manifest. It could be a file or just the code itself. Example. A series of articles about automating CI/CD.
go to post Eduard Lebedyuk · Jul 17, 2019 Fixed some issues in REST, but you have license problem. ClassMethod CreateCoffee() As %Status { s json = {}.%FromJSON(%request.Data) s CoffeeProp = ##class(User.PropertyName).%New() s CoffeeProp.CoffeeName= json.CoffeeName s CoffeeProp.CoffeeColor=json.CoffeeColor s CoffeeProp.CoffeePrice= json.CoffeePrice s Status = CoffeeProp.%Save() }
go to post Eduard Lebedyuk · Jul 17, 2019 Use ccontrol qlist to get structured information about available instances.ccontrol qlist [<instance>] [nodisplay > outputfile]Display a quick list of information about all installed instances, in a format suitable for parsing in command scripts.The record for an instance contains fields separated by "^" (carats):Field 1: instance nameField 2: instance directoryField 3: version identifierField 4: current status for the instanceField 5: configuration file name last usedField 6: SuperServer port numberField 7: WebServer port numberField 8: JDBC Gateway port numberField 9: Instance status (e.g., ok, warn, alert)Field 10: Product name of the instanceField 11: Mirror Member Type (e.g., Failover, Disaster Recovery)Field 12: Mirror Status (e.g., Primary, Backup, Connected)
go to post Eduard Lebedyuk · Jul 17, 2019 How is it valid JSON?1. JSON accepts only double quotes. Single quotes are not valid.2. Property names must be quoted (in double quotes). error/txt are not quoted.Here's JSON standard.
go to post Eduard Lebedyuk · Jul 17, 2019 Should be If glo["ABC",type="K" Set restmode=0 /*except if a kill on ^ABC*/ Instead of If glo["^ABC",type="K" Set restmode=0 /*except if a kill on ^ABC*/
go to post Eduard Lebedyuk · Jul 17, 2019 Globals can't have duplicate keys.After I execute your code and call zw ^Data I get this output: ^Data("Athens")=7 ^Data("Boston")=3 ^Data("Cambridge")=1 ^Data("London")=4 ^Data("New York")=2
go to post Eduard Lebedyuk · Jul 17, 2019 Please post CROSRestAPI as text.Can you get InterSystems IRIS or a complete version of Cache/Ensemble?Service Unavailable error is because of license limitations on TRYCACHE.
go to post Eduard Lebedyuk · Jul 16, 2019 Create a response wrapper and use it. %ListOfObjects is serial, not persistent. Class MyResponse Extends %Persistent { Property Snapshots As List Of EnsLib.SQL.Snapshot; }