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.

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.

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:


Try DigitalOcean for free

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

Sign up