Running CLI with a conflicting service on port 9000 #622
-
Describe the bug
I have an existing process that I can't change already running on port 9000. I wasn't able to see an option in the documentation to be able to launch using a port other than 9000. |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
Hello @mattyindustries Thanks for the great suggestion! We’re definitely considering adding a CLI option for users to control the port. In the meantime, here are some ways to work around the port 9000 error:
|
Beta Was this translation helpful? Give feedback.
-
Thanks @milindmore22 In this case I'm working on a corporate laptop with a Zscalar proxy service running on port 9000. I'm unable to change this or stop the service so until I can select a different port I can't use this tool. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the inconvenience, but you will need to do a small code change in 2 files and re-build CLI to make it work on your laptop with custom ports. Note While adding a custom port, please consider using a 4 digit port, as most 2-3 digit ports are often used by admin/root access on the system.
Once you save changes, run the following command
Now you can run and check PSAT CLI for analysis
Please let me know if you need further assistance. |
Beta Was this translation helpful? Give feedback.
-
Thanks @milindmore22 That gets me past the conflicted port but then I'm having an issue where the -u isn't being understood.
I'm not quite sure why that is happening |
Beta Was this translation helpful? Give feedback.
-
@mattyindustries Thanks for letting us know about the issue! We reviewed the output you provided and noticed that the logged command was missing the
While we were able to run the command successfully on our end, we suspect the difference might be due to varying character encoding on your system. E.g.: if we try putting
We can replicate your issue. |
Beta Was this translation helpful? Give feedback.
-
Thanks @milindmore22. I'm running this on a Windows 11 laptop using Microsoft Terminal. Do you want me to log a seperate bug for this issue? |
Beta Was this translation helpful? Give feedback.
-
@mattyindustries Thank you for letting us know about your OS, When we tried on Windows 11 (with port change) we were able to run commands successfully. We have also logged an issue #574 to validate CLI options and URL in CLI command, so it will show a warning when user enters wrong input. I will recommend re-clone the repo and re-try it, also check on different machines that have non-restrictive environment (non-corporate laptop). |
Beta Was this translation helpful? Give feedback.
-
Hey @mattyindustries! We're thrilled to announce the release of version 0.7.0 this update brings you more control over your application with a new CLI option for choosing a custom port to avoid conflicts. To get started:
Now you can use the new For example, to run the app on port 9009 and access BBC News, you'd use:
Please check our updated wiki for detailed information. I will be converting this issue to support forum discussion, For future reference, please create support discussion if you have any question about the PSAT. |
Beta Was this translation helpful? Give feedback.
-
Hey @mattyindustries I noticed your previous comment (#574 (comment)) on GitHub https://github.com/sourcegraph/sourcegraph/pulls #issuecomment-2065536950. To keep all our communication organized, I'd like to continue this discussion here.
The issue with missing CLI options is consistent on your machine, can you please run the This information will help us investigate further. |
Beta Was this translation helpful? Give feedback.
-
Hello @mattyindustries, I'm thrilled to announce the release of PSAT version 0.9.0 #732! This new version brings a significant improvement: PSAT reports are now generated as HTML files. This eliminates the need for ports, preventing conflicts and making it easier to use PSAT. To get started with PSAT v0.9.0:
For more details on using the PSAT CLI, refer to our updated wiki page. If you have any questions or require further assistance, please don't hesitate to ask us on support forums |
Beta Was this translation helpful? Give feedback.
Hey @mattyindustries!
We're thrilled to announce the release of version 0.7.0 this update brings you more control over your application with a new CLI option for choosing a custom port to avoid conflicts.
To get started:
git pull
in your terminal.npm i
thennpm run cli:build
Now you can use the new
-po
or--port
flagFor example, to run the app on port 9009 and access BBC News, you'd use:
npm run cli -- -po 9009 -u https://bbc.com
Please check our updated wiki for detailed information.
I will be converting this issue to support forum discussion, For future reference, please create support discussion if you have any question about t…