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

Could not connect to session even tho the local app is launched [BUG] #4291

Open
1 of 3 tasks
Enzawdo opened this issue Apr 19, 2024 · 1 comment
Open
1 of 3 tasks
Labels
bug Bug fixes

Comments

@Enzawdo
Copy link

Enzawdo commented Apr 19, 2024

Instructions

Thank you for submitting an issue. Please refer to our
issue policy
for information on what types of issues we address.

  1. Please fill in this template to ensure a timely and thorough response
  2. Remove the section instructions but leave the section header
  3. Place an "x" between the brackets next to an option if it applies. For
    example:
    • Selected option
  4. Please delete everything above this line before submitting the issue

Describe the problem

Describe the problem clearly here. Include descriptions of the expected
behavior and the actual behavior.

Code to reproduce issue

I have installed mongodb on my namespace in kubernetes.
To connect to it i use:

export FIFTYONE_DATABASE_URI=mongodb://root:root@mongodb_url

#dataset1 = fo.Dataset("my_first_dataset")
    # A name for the dataset
    # The directory containing the source images
    data_path = "img/images"
    
    # The path to the COCO labels JSON file
    labels_path = "img/annotations/instances_default.json"
    
    # Import the dataset
    dataset = fo.Dataset.from_dir(
        dataset_type=fo.types.COCODetectionDataset,
        data_path=data_path,
        labels_path=labels_path,
    )
    session = fo.launch_app(dataset= dataset,port=5151)
    session.wait(-1)

This is the output
App launched. Point your web browser to http://localhost:5151

Could not connect session, trying again in 10 seconds

** And i get this in the webbrowser**

System information

  • Openshift
  • OS Platform and Distribution Linux Ubuntu 22.04:
  • Python version 3.11.8
  • FiftyOne version 0.23.5:
  • FiftyOne installed from pip:
  • Mongodb version 7.0.8 bitnami helmchart

Other info/logs

When i look at the localhost page i see that i get a 403 error. I can see that it's hosting fiftyone app but the data is missing.

I see this:

Welcome to FiftyOne!
It looks like you are not connected to a session
Local sessions
Remote sessions
Local sessions
Here's how to connect to a local session from Python:

import fiftyone as fo

# Load your FiftyOne dataset
dataset = fo.load_dataset(...)

# Launch the app
session = fo.launch_app(dataset, port=NaN)

Willingness to contribute

The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?

  • Yes. I can contribute a fix for this bug independently
  • Yes. I would be willing to contribute a fix for this bug with guidance
    from the FiftyOne community
  • [X ] No. I cannot contribute a bug fix at this time
@Enzawdo Enzawdo added the bug Bug fixes label Apr 19, 2024
@benjaminpkane
Copy link
Contributor

benjaminpkane commented Apr 19, 2024

Hi @Enzawdo. Based in the information you've provided, it sounds like you are trying to connect to your session through a proxy. We have documentation for that here.

There may also be an issue with the dataset you are trying to launch. Does launching the session without dataset resolve the issue?

session = fo.launch_app() #no dataset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fixes
Projects
None yet
Development

No branches or pull requests

2 participants