Giter VIP home page Giter VIP logo

copy-project-between-instances's Introduction

Copy Project Between Supervisely Instances

Overview โ€ข How To Use

GitHub release (latest SemVer) views runs

Overview

Illustrative Use Case: Enterprise Customer with private Supervisely Instance would like to share project with labeling provider that also has his own private Supervisely Instance. This app is useful especially when projects are huge (several gigabytes +).

How To Use

  1. Create new team on source instance. Copy project to this team. Let's call this project: project_to_share.
  2. Create and invite user to this team. This new User has access only to projects in special team, all data in other teams is private.
  3. Share id of project_to_share and user's api_token with your labeling provider.
  4. Labeling provider has to run app and in modal window define SERVER_ADDRESS, id of project that should be copied and API_TOKEN.

  1. Project (images/annotations/images metadata) is copied to current team/workspace with the same name.

copy-project-between-instances's People

Contributors

annasupervisely avatar cxnt avatar mkolomeychenko avatar nikolaipetukhov avatar peixed351 avatar tdionis avatar

Watchers

 avatar  avatar

copy-project-between-instances's Issues

400 Bad Request when trying to run.

Hi Supervisely team,

We are currently trying to use copy project between instance but encounter some error. The information is as followed.

  • Copy Target instance : https://app.supervisely.com/
  • Destination Instance : our current instance which can be publicly accessed.
    I also attach the log file along with troubleshoot archive.

Here is the log

[{"level":"info","message":"TASK LOG LEVEL: INFO (20)","fields":{},"timestamp":"2023-07-19T08:48:38.226Z","task_id":7},{"level":"info","message":"TASK_START","fields":{},"timestamp":"2023-07-19T08:48:38.241Z","task_id":7},{"level":"info","message":"TASK_MSG","fields":{"task_type":"app","state":"{\"apiToken\":\"***\",\"projectId\":\"247570\",\"serverAddress\":\"https://app.supervisely.com/\"}","appInfo":"{\"id\":50,\"version\":\"v1.0.9\",\"githubUrl\":\"https://github.com/supervisely-ecosystem/copy-project-between-instances\",\"moduleId\":179,\"configDir\":\"\",\"logLevel\":\"info\",\"baseUrl\":\"/net/e7aQG1s3R5SiKHV0TvmrW9WppBkLHzordNbVi-hXsDKnpW_6cmCk89HLOZAixqiyVYi-CPuoVA==\"}","context":"{\"teamId\":1,\"workspaceId\":1,\"userId\":1,\"userLogin\":\"admin\",\"apiToken\":\"***\",\"spawnUserId\":1,\"spawnUserLogin\":\"admin\",\"spawnApiToken\":\"***\"}","instanceVersion":"6.8.9","folderToMount":"null","instance_type":"enterprise","server_address":"http://supervisely.deeplake.app","api_token":"***","agent_info":"{\"agent_id_from_storage_path\":1,\"hardware_info\":{\"psutil\":{\"cpu\":{\"count\":{\"logical_cores\":4,\"physical_cores\":2}},\"memory_B\":{\"physical\":16714018816,\"swap\":0}},\"platform\":{\"uname\":[\"Linux\",\"b9d60d1f7adf\",\"5.15.0-1041-azure\",\"#48-Ubuntu SMP Tue Jun 20 20:34:08 UTC 2023\",\"x86_64\",\"x86_64\"]},\"cpuinfo\":{\"models\":[\" Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz\"],\"count\":{\"logical_cores\":4,\"physical_cpus\":1}},\"meminfo\":{\"memory_B\":{\"physical\":16714018816,\"swap\":0}},\"nvidia-smi\":null,\"gpuinfo\":{\"is_available\":false}},\"agent_image\":\"docker.enterprise.supervise.ly/rc2/agent:6.7.20\",\"agent_version\":\"agent:6.7.20\",\"agent_image_digest\":\"sha256:a4acd4c47d2b9728ff40f89b8e302c698e0dc244ff4fc1d6b598f0d0c41e3993\",\"environ\":{\"SUPERVISELY_AGENT_FILES\":\"/root/supervisely/agent-1\",\"DOCKER_NET\":\"supervisely-net-***\"}}","agent_version":"agent:6.7.20"},"timestamp":"2023-07-19T08:48:38.241Z","task_id":7},{"level":"info","message":"Git repo will be downloaded","fields":{},"timestamp":"2023-07-19T08:48:38.242Z","task_id":7},{"level":"warn","message":"TASK_END","fields":{"exit_status":"400 Client Error: Bad Request for url: https://supervisely.deeplake.app/public/api/v3/ecosystem.file.download ({\"error\":\"Validation error\",\"details\":[{\"message\":\"\\\"moduleId\\\" is required\",\"path\":[\"moduleId\"],\"type\":\"any.required\",\"context\":{\"key\":\"moduleId\",\"label\":\"moduleId\"}},{\"message\":\"\\\"value\\\" must contain at least one of [filePath, isArchive]\",\"path\":[],\"type\":\"object.missing\",\"context\":{\"peers\":[\"filePath\",\"isArchive\"],\"peersWithLabels\":[\"filePath\",\"isArchive\"],\"label\":\"value\"}}]})"},"timestamp":"2023-07-19T08:48:38.743Z","task_id":7},{"level":"info","message":"WAIT_FOR_TASK_LOG","fields":{},"timestamp":"2023-07-19T08:48:38.744Z","task_id":7},{"level":"info","message":"REMOVE_TASK_TEMP_DATA IF NECESSARY","fields":{"exit_status":"<TaskApp name='TaskApp-8' pid=48 parent=7 stopped exitcode=1 daemon>","exit_code":1},"timestamp":"2023-07-19T08:48:39.354Z","task_id":7},{"level":"info","message":"TASK_REMOVED","fields":{"exit_status":"<TaskApp name='TaskApp-8' pid=48 parent=7 stopped exitcode=1 daemon>","exit_code":1},"timestamp":"2023-07-19T08:48:39.354Z","task_id":7}]

And here is the troubleshoot archive.

supervisely_troubleshoot_2023_07_19_08_52_23.tar.gz

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.