Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Issue when trying to establish a connection to bika API #67

Open
benletchford opened this issue Nov 1, 2019 · 2 comments
Open

Issue when trying to establish a connection to bika API #67

benletchford opened this issue Nov 1, 2019 · 2 comments

Comments

@benletchford
Copy link

benletchford commented Nov 1, 2019

Hi,

I'm currently in the process of looking at migrating our Bika Lims (Bika LIMS 3.1.5) data to senaite via the senaite.sync tool. I'm getting an error stipulating that we need to have installed senaite.jsonapi on the source system.

Could you please outline how to correctly connect this sync tool to the Bika API?

Notes:
The sync tool is looking at the base URL of @@API/senaite/v1 as per:

API_BASE_URL = "@@API/senaite/v1"

Steps to reproduce

docker run --rm -e ADDONS="senaite.sync Products.AdvancedQuery<4" -p 9080:8080 ramonski/senaite

Navigate to senaite/sync_add and fill out required details and click "Save and Fetch"

Current behavior

I receive the following error

Please install senaite.jsonapi on the source system

Expected behaviour

Being able to successfully establish a connection to our bika API (http://bika:8081/bikatest/@@API).

Screenshot (optional)

senaite-error

@xispa
Copy link
Member

xispa commented Nov 2, 2019

To install senaite.jsonapi in the "source" system, you need to add the package in buildout's egg section from source and run bin/buildout thereafter.

senaite.sync has been successfully used for the migration from Bika 3.1.5 to earlier versions of Senaite (<v1.2), but I'd say it has not been used for migrations to newest versions. Thus, you might consider to install an earlier version of Senaite in destination first, use senaite.sync to import from source and then keep upgrading Senaite to successive versions until you reach the current one (1.3.2).

Migrations that involve bika or earlier versions of senaite, are like "projects" by themselves, specially when the source contains large amounts of data and/or when you have your own add-on with it's own functionalities. Hiring professional services will save you from headaches.

@benletchford
Copy link
Author

Hi @xispa ,

Thanks for your reply and notes. I've sent you guys an email to info(at)naralabs.com to further the conversation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants