-
Notifications
You must be signed in to change notification settings - Fork 13
Unable to create Sender. Could not access custom SpeckleServer. #13
Comments
Hello @htlcnn , i think this might be related to speckleworks/SpeckleUi#7 - is your local server https? |
@didimitrie no, my server is not https. Is https required? |
I'm afraid so - we will try to remove this limitation, or at least allow for localhost:xxxx urls. |
Thanks. I'll add https to my server using |
@didimitrie I've added a self-signed certificate to my SpeckleServer. This time SpeckleRevit fails to find the server at the first step. It says Here's api response from
|
Sometimes the debouncer that sends the test request is out of sync, and causes the button to be disabled. If you add a space, or add If not, the response seems correct, and it probably means there's a problem with self signed certs - I would debug that by capturing the requests with fiddler and seeing if any problems are evident there... |
Adding a space or |
This is the first time I used fiddler. SpeckleRevit still fails until I enable HTTPS debugging in fiddle and click |
Can you post a screenshot of the errors/logs form the console from the revit plugin? To open it click on the |
Simplest solution to get stuff going: deploy the server on DigitalOcean on a $5/month VM, you'll get some free credit when you start to keep it going for 5 months i think :) Otherwise, more complicated answer: seems like there might be something else hogging port based on the last error... |
Another quick question (should've asked first!): does it work with the public test server? If so, then I can most definitively point the finger at the self signed SSL cert. I'll close the issue for now, as it's not a problem with the revit client per se, but let's keep talking here, and maybe we figure your config out... |
Yes, choosing hestia works. I have DO instances up and running some production apps. I just want to test on my VM first, and also see if sending data and loading viewer would be faster than using hestia server. The image saying about port 5050 conflict was my mistake. I added the same server after it was added successfully into SpeckleRevit. I deleted all servers and added it again (still had to keep fiddler on and accept certificate manually). This is my overall Server config:
|
Ducking around, I found this issue: Navigating to URL with self-signed certificate shows empty screen I searched SpeckleUi and found this line: Please tell me how could I rebuild SpeckleRevit and test these proposals. |
Speckle Revit is a little PITA when it comes to building and testing. For reference, it's using CefSharp < 75, as Revit comes by default with version 57, so we can't force a newer version from the client side. Make sure that cefsharp 57 is being used! Otherwise things break. Building and testing it: you'll need to replace the SpeckleUIBase nuget reference in the SpeckleRevit solution with a local clone of SpeckleUi, which you can modify and test. There's also a quite a few flags that cef can be initialised with, not sure if this will be a better solution - probably not. |
@didimitrie I tried rebuilding SpeckleUi after adding I tried another method and managed to install Let's Encrypt certificate to my server. I created a subdomain and point it (A record) to my Virtual machine's VPN IP (Let's Encrypt cert was issued to my local server successfully using DNS challenge): But SpeckleRevit still Could not access that server. Chrome-devtools screenshot: |
Using something like Postman or Insomnia. There's some instructions here: https://speckle.systems/docs/developers/api-specs |
I used Postman and used Speckle OpenApi Specs. I edited baseUrl and added my token to Header (key: Authorization, value: JWT... - my token I got from SpeckleAdmin). |
I must have done something that messed the SpeckleServer up, so it didn't accept some types of request. The first time, I installed SpeckleServer and setup smtp info. Unfortunately, smtp info was incorrect (I used password instead of app-password for gmail account), so the first register user (also admin user) never received verification email. I thought maybe non-verified user was not allow to create Senders, and I couldn't find resend verification email endpoint in SpeckleServer, so I fixed smtp info and registered another user, login to first user and set 2nd user Admin. The second time, I removed SpeckleServer folder WITHOUT dropping mongodb database. My efforts weren't succeeded, with all the images above. The third time, I stop SpeckleServer, drop mongodb database, npm install and run again. Now I'm able to create sender and send data to SpeckleServer. Thank you very much for your help! |
No worries @htlcnn! I didn't do much, was more acting like a sounding board. Happy things worked out :) As a suggestion as to what potentially went wrong when redeploying the speckle server and then getting For the future/if you have time: it would be great to share or summarise your issue on the forum as it's more visible there, and more people can benefit :) |
I'll make a thread on the forum. |
Theoretically yes. Checking the server code, I was wrong: password salting is handled by bcrypt, as it should be. Only JWT tokens for the api are affected. Logging in the admin works as you get a fresh api token each time. The client side are not regenerated on logins, so removing then adding the account again would have not worked... |
Forum thread created: https://discourse.speckle.works/t/speckleserver-deployment-notes-on-ubuntu-18-04/532 |
I'm running a custom SpeckleServer on my virtual machine. I'm able to login to Web UI and create Projects, Streams there.
I installed SpeckleRevit and use it with Revit 2018. I was able to create Sender and sent data to hestia server.
For my custom SpeckleServer, I logged in successfully in SpeckleRevit, but when I added a new sender and choose that server, SpeckleRevit said
Could not access that server (is it online?) or no server Selection
.Is there any specific configuration to be able to send data to custom SpeckleServer?
The text was updated successfully, but these errors were encountered: