Skip to content
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

I can't connect the package explorer to my localhost server #186

Open
Jorgecanetemartin opened this issue Oct 2, 2023 · 17 comments
Open
Assignees
Labels
help wanted Extra attention is needed

Comments

@Jorgecanetemartin
Copy link

I created my AASX server(OPC UA and rest) with two AAS and i can succesfully connect to it from URL, but when I try to connect from AASX Package explorer connecting HTTP/REST repository with the URL http://localhost:51310?asp.net or http://localhost:51310 i receive this error:
image

I tried to connect by the connect via rest option but i obtain another error:
image

@Yasuhito-Yoshida-3
Copy link

Have you checked issue #183?
It seems that the port has been changed to 5001.
But no matter what I changed it didn't work.

@Yasuhito-Yoshida-3
Copy link

I checked AasxServerBlazor port 5001 is worked.
But AasxServerCore did not work.

@Jorgecanetemartin
Copy link
Author

I checked AasxServerBlazor port 5001 is worked. But AasxServerCore did not work.

I already changed the ports and i tried to connect with different ports and it happens the same, it is about OPC UA, because when i create a rest server without the --opc it works.

@Yasuhito-Yoshida-3
Copy link

My condition seems to be working well. OPC UA option is successful.
aasx-package-explorer.2023-09-12.alpha.zip
AasxServerBlazor.2023-09-13.alpha.zip
serverstart.bat "AasxServerBlazor.exe --opc --rest --no-security --data-path aasxs"

PackageExplorer boot.
image
image
"Conenet via REST" connected successfully. Diaglog button press "OK" step by step.
Dialog message "/server/getaasx2/0" is appeared. it was OK.

Other connect "Connect HTTP/REST repository"
image
image

Red line square part is appeared.
image

@Jorgecanetemartin
Copy link
Author

I have just downloaded the two versions for starting from zero, i repeat your steps but i get this error and i can't connect to the server
image
image

@juileetikekar
Copy link
Contributor

Hi @Jorgecanetemartin,

Are you looking for OPC UA client or Server in AASX Server?

@Jorgecanetemartin
Copy link
Author

Hello, i want to create a server which contains one or more aasx files and access it from Ua Expert.

@aorzelskiGH
Copy link
Contributor

Maybe you need to switch security off: --no-security

Please also look into the beginning of the updated readme.

I am not sure if V3 server already works again with OPC UA.

@EmilAlipiev
Copy link

how do you exactly run the blazor App? i get an exception at ParseSecurityMetamodel function after cloning and trying to run it. is there any specific set up needed before?

@aorzelskiGH
Copy link
Contributor

Please take a look into the beginning of the README.MD:
https://github.com/admin-shell-io/aasx-server
Especially "--no-security"

@EmilAlipiev
Copy link

@aorzelskiGH but this is for the already compiled dlls right? how to achieve it for locally debugging using VS ? should i comment out some code? and X509Store does this work only under windows? is it possible to achieve running also on Mac?

@juileetikekar
Copy link
Contributor

Hi @EmilAlipiev ,

if the problem still persists, could you please share the exception at ParseSecurityMetamodel that you mentioned before?

@aorzelskiGH
Copy link
Contributor

aorzelskiGH commented Oct 30, 2023 via email

@EmilAlipiev
Copy link

Hi @juileetikekar,

I get the following exception that Program.env is always returned null. Not sure what to set up here? if you will have time, we can also have a short call. thanks for you help.

image

@EmilAlipiev
Copy link

EmilAlipiev commented Oct 30, 2023

@juileetikekar @aorzelskiGH just a quick update. I have solved my problem.
indeed on windows VS there are 2 options to run blazor UI and IIS-express was the selected one, i was trying to run with IIS express and in the UI launch settings as shown below, IIS-express doesnt include, no-security option. When choosing the other one, it works fine.
But on Mac, IIS-express is not exist, so there is the another issue using <StoreType>X509Store</StoreType>. That wont work I believe. So should we only use "Mono" option on Mac and Linux with <StoreType>Directory</StoreType>

image

@aorzelskiGH
Copy link
Contributor

I have just checked it in the code.
X509Store is only used by the OPC UA sample client in case of ApplicationCertificate.
But in the code only username and password is used and supported. During runtime it will not be used.

@EmilAlipiev
Copy link

I come back to this issue because it only works for me on the windows machine. I am trying to start BlazorServer Ui but this certificate error is throwing. it starts as
aasx-server/src/AasxServerBlazor/bin/Debug/net6.0/AasxServerBlazor.dll --no-security --aasx-in-memory 1000 --data-path "C:\Development\Safety3" --edit --external-blazor http://localhost:5001

image

What should we do run the source code on mac or linux?

@juileetikekar juileetikekar added question Further information is requested help wanted Extra attention is needed and removed question Further information is requested labels Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants