What is xo-server-log?
-
@julien-f That's what I was implying to ask - how I am supposed to run it I run it from a command line when I connect to the XO VM via SSH. Am I doing something wrong?
-
@Ascar If you installed XO yourself (following our documentation), you should know how to start XO.
I cannot help you if you don't know how XO was installed on your machine.
-
@julien-f I installed XO myself. The documentation you shared the link for is quite quite helpful. Reading. Thanks.
-
@julien-f Well, I know how to start XO, in fact I don't need to start it as it is always running. I can access XO from browser and everything is good there.
My original question was how to remove entries from backup logs and I did not (and still don't) understand how to issue the
xo-server-logs --delete namespace=jobs
command while I am in the shell. Can you guide me like I am 1st-grade student? -
@Ascar Let me retry my previous question: how do you make
xo-server
start in your install? -
@julien-f Well, I made a Debian virtual machine, updated it and then followed the instructions on how to build XO from sources. After that I was accessing XO through browser and XO started automatically on VM boot. Until now there was no need for me do anything special in the command line on XO VM. After receiving your previous message I went to /opt/xo/xo-server and executed yarn start and I saw the message saying that the TCP port is already occupied which means that I basically invoked the startup procedure which happens automatically when my VM starts.
-
@Ascar Ok, this is not installing from the sources following the official documentation!! This information would have been useful sooner.
xo-server-logs
is available directly in the directory wherexo-server
is compiled under the name./dist/logs-cli.mjs
.For more information, please ask directly on the repo you linked.
-
-
-
Sure. @Ascar the executable you’re looking for is not called
xo-server-logs
for the installation done with XenOrchestraInstallerUpdater script. As mentioned above it’s installed beside xo-server aslogs-cli.mjs
and can be found here (assuming you didn’t change default install location).$ sudo /opt/xo/xo-server/dist/logs-cli.mjs -h xo-server-logs --help, -h …
Help shows command examples as
xo-server-logs
, but you need to use above executable instead.You can also easily make
xo-server-logs
command to work if you wish by running:sudo ln -s /opt/xo/xo-server/dist/logs-cli.mjs /usr/local/bin/xo-server-logs
But i wouldn’t recommend it if this is needed only once.
-
@ronivay So happy to see you here. Thank you for clarifying my confusion. I did not modify installation paths and I found what I was looking for.
logs-cli.mjs
does not run by itself and needsnode
to be prepended. Is this correct? However I made a symlink as you explained and it runs asxo-server-logs
directly. -
That script has a shebang pointing to node (first line), so no need to define it separately, just execute the script directly.