About the "Oops VFS connection does not exist" error and solution in AWS Cloud9

Introduction

** About the error occurrence situation of "Oops VFS connection does not exist" that occurred during the development of Chapter 1 ** of Rails Tutorial 4th Edition and its solution.

Development environment

error contents

Start Rails server on Cloud9 and display the default page from the preview When I try to display it, the following image is displayed. Error message: "Oops VFS connection does not exist" スクリーンショット 2020-12-27 19.05.34.png

Cause

Cookies are not required to launch Could9IDE itself, but it seems that ** cookies must be enabled to use the preview function of apps and files **. (Actually, the error message "Third-party cookies disabled" appeared when I first previewed it. You have to look closely at the error message.)

[reference] AWS User Guide Application Preview or File Preview Notification: "Disabled third-party cookies" https://docs.aws.amazon.com/ja_jp/cloud9/latest/user-guide/troubleshooting.html#troubleshooting-preview (January 2, 2021)

solution

In Safari's Preferences> Privacy tab, uncheck ** "Prevent cross-site tracking" **. The default is "on (enabled)". By the way, Safari's "Prevent cross-site tracking" default setting is from version 11.0. スクリーンショット 2021-01-02 10.26.20.png

Summary

I felt that it was difficult to find the cause of this time from the error message "Oops VFS connection does not exist", so I wrote this article. When developing on a cloud basis, you also need to pay attention to your browser settings.

Recommended Posts

About the "Oops VFS connection does not exist" error and solution in AWS Cloud9
I stumbled while learning Rails on Cloud9 ~ Oops VFS connection does not exist ~
About error PG :: UndefinedTable: ERROR: relation "XXXXXX" does not exist
[AWS S3] AWS Access Key Id you provided does not exist in our records error [Rails AWS EC2]
operator does not exist: handling the error timestamp without time zone ~~ unknown
[Rails] About the error that the image is not displayed in the production environment
[JPA] Compare table1 and table2 to get and update data that does not exist in table2.
Processing when an ID that does not exist in the database is entered in the URL
The story when the container does not start up with docker-compose up and an error occurs
After introducing Better_errors, the error screen does not change
About the difference between classes and instances in Ruby
error: src refspec main does not match any solution
[Error] The app is not displayed in the production environment