-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Starting creoson when Creo starts causing "run file 'creoson_run.bat' does not exist" #60
Comments
I'm guessing the problem is that CreosonSetup needs to be run in the
CreosonSetup folder, so that it can find that .bat file. When you're
running it from the parametric.psf file, the current working folder is
probably the Creo startup folder.
One solution might be to create your own .bat file that a) does a "cd" to
the C:|CreosonServerWithSetup-2.7.0-win64 directory, b) executes
CreosonSetup.exe, then add a RUN statement to parametric.psf that calls
that .bat file instead.
…On Sat, Jan 30, 2021 at 5:30 PM stekicar ***@***.***> wrote:
I have placed CreosonSetup.exe with its full path into parametric.psf as:
RUN="C:\CreosonServerWithSetup-2.7.0-win64\CreosonSetup.exe"
Creoson starts with Creo but when I click "Start Creoson"button, error
"run file 'creoson_run.bat' does not exist" shows up.
If I start Creoson server manually everything works just fine.
What should I do to start Creoson server correctly?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#60>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANPKPEENBUP4OGB3KSUVDTS4SB7BANCNFSM4W2XBUFQ>
.
|
Thank you for reply.
And added this line to the end in parametric.psf:
And it works like charm! Thank you! |
If you don't need the JS API and the doc, you can launch only Creoson with |
Very true. Though one benefit of having CreosonSetup come up is that it
will show you whether the creoson server is already running or not (the
button will say "Stop Creoson" instead of "Start").
Adam
…On Tue, Feb 2, 2021 at 5:32 AM Zepmanbc ***@***.***> wrote:
If you don't need the JS API and the doc, you can launch only Creoson with
creoson_run.bat in the Creoson folder
(you need to run CreosonSetup.exe 1 time to create the config files)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANPKPHY6IT3CNXIDNJZRBLS47ICHANCNFSM4W2XBUFQ>
.
|
Is it possible to start creoson without pressing start button? |
That's what the creoson_run.bat file is for -- essentially, pressing the
Start button just calls that .bat file and waits 3 seconds to make sure it
started.
…On Tue, Feb 2, 2021 at 6:06 PM stekicar ***@***.***> wrote:
Is it possible to start creoson without pressing start button?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANPKPAUFYJ2UEYCAOVJ2C3S5CAQNANCNFSM4W2XBUFQ>
.
|
Note that like CreosonSetup.exe, creoson_run.bat also has to be run from its install directory. |
Ok. Got it. |
I just tried to run creoson_run.bat. DOS window pops up and message says "connecting to server, port 9056" and it just sits there. No connection to server is made. |
Mine reports:
Starting server, listening on port 9056.
The connection happens in the code you write, I believe.
From: stekicar <notifications@github.com>
Sent: Tuesday, February 2, 2021 6:00 PM
To: SimplifiedLogic/creoson <creoson@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: Re: [SimplifiedLogic/creoson] Starting creoson when Creo starts causing "run file 'creoson_run.bat' does not exist" (#60)
I just tried to run creoson_run.bat. DOS window pops up and message says "connecting to server, port 9056" and it just sits there. No connection to server is made.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#60 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHDCYQF6WZ2PLINBEQJBBOTS5CGWVANCNFSM4W2XBUFQ>.
|
If I run by pressing open button, it works just fine. |
The "Starting server" message is normal.
All the lines after that are an error that says it couldn't find Creo when
you called the "creo.pwd" function in creoson. Was Creo running?
Normally you don't see all this, because when you start creoson from
CreosonSetup.exe this DOS window is hidden in the background.
…On Tue, Feb 2, 2021 at 7:14 PM stekicar ***@***.***> wrote:
If I run by pressing open button, it works just fine.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANPKPDQHDPUUAVDOWK6DE3S5CIMVANCNFSM4W2XBUFQ>
.
|
I start creoson with "start_creoson_with_creo.bat" so Creo is running. If I change my bat to "START C:\0_CREO_CONFIGURATION_FILES_OLD\CREO_PYTHON\CreosonServerWithSetup-2.7.0-win64\CreosonSetup.exe" everything works without problem. |
I'll admit I've never used the RUN option in a .psf file. If you comment that line out and just run your "start_creoson_with_creo.bat" from the command line, does it work then or not? |
I just tested it. It works ok when run from creoson_run.bat without running it in psf. |
Okay, so maybe it's a timing issue. Maybe starting it from the .psf means
it tries to run before Creo has fully finished loading, a problem that
doesn't happen when you have to start creoson manually from the dialog.
…On Tue, Feb 2, 2021 at 8:31 PM stekicar ***@***.***> wrote:
I just tested it. It works ok when run from creoson_run.bat without
running it in psf.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANPKPB2JSZHWKK3HTR7EQLS5CRPFANCNFSM4W2XBUFQ>
.
|
But that would also be the case when I run creoson.exe from .psf (actually, I start .bat in .pfs file that then starts creoson). And everything is fine. Issue is only when I start creoson thru creoson_run.bat thru my .bat file. |
I'll try placing sleep 10 second before I run creoson in my .bat file. |
setvar.bat:
|
setvars.bat is created when you run CreosonSetup.exe and fill in the Creo
location and the port number, then press the Start button. It should
remain there forever after that.
My first thought is that if it can't find setvars.bat, it's because you
haven't done a "cd" to the CreosonSetup directory like you need to.
…On Tue, Feb 2, 2021 at 9:21 PM stekicar ***@***.***> wrote:
setvar.bat:
set PROE_COMMON=C:\Program Files\PTC\Creo 5.0.6.0\Common Files
set PROE_ENV=x86e_win64
set JAVA_HOME=jre
set JSON_PORT=9056
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANPKPHCD4GC25AEQFVM2QLS5CXMFANCNFSM4W2XBUFQ>
.
|
I start creoson from a script, not with Creo because sometimes Creoson crashes and i can detect if Creoson is up or not and if it's down I can reload it in my script Tips to set Creoson's directory and start Creoson with Python:
|
Problem solved. I somehow deleted "p" from pushd when I was testing creoson_run.bat. I am trying to remove any involvement of Creo user around creoson. This is why I want to start it when Creo starts. |
I have placed CreosonSetup.exe with its full path into parametric.psf as:
Creoson starts with Creo but when I click "Start Creoson"button, error "run file 'creoson_run.bat' does not exist" shows up. creoson_run.bat does exist in folder.
If I start Creoson server manually everything works just fine.
What should I do to start Creoson server correctly?
The text was updated successfully, but these errors were encountered: