Question

Webbrowser open() fails on Rust server

I have an Ubuntu droplet for my Rocket (Rust) application that works fine. However as this application uses Google oauth2 workflow, I have a webbrowser::open() function to open a url automatically for authentication. This function never gets called in my droplet but works appropriately locally. I use Nginx as a proxy server and would love if anyone can help me.

Please let me know if you need any more information.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
December 18, 2022

Hi @hannydevelopdolphin,

What error you do see when loading the application? Have you checked the Nginx error log, it should provide more detailed information on the issue that you are experiencing. You can check the application’s log as well.

I’m not sure on the application’s log however you can check the Nginx log in the /var/log/nginx folder.

alexdo
Site Moderator
Site Moderator badge
December 18, 2022

Hello @hannydevelopdolphin

Have you examined the Nginx access/error_log files on the droplet to check for any error messages or status codes?

We have a tutorial on NGINX Access Logs and Error Logs which you can check here:

https://www.digitalocean.com/community/tutorials/nginx-access-logs-error-logs

Regards

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel