Open DonRichards opened 3 years ago
Don, can you try running:
curl -v "https://islandora.traefik.me/"
and let me know what the output is?
Hmmm.. looking at the output more closely, it appears that the first node was actually created, so I assume that workbench explodes when it tries to create the media. To confirm this, can you add nodes_only: true
to your config file and rerun workbench? If all of the nodes are created, it's definitely an issue with how workbench is creating media; in that case, can you confirm that you can create media on that Islandora instance the usual way, via the Drupal GUI?
@DonRichards when you run workbench with --check
what happens? When I run it, I get:
./workbench --config docker.yml --check Error: Workbench cannot detect whether the Islandora Workbench Integration module is enabled on http://localhost. Please ensure it is enabled.
Do you get the same thing?
@mjordan The curl returns a normal response.
After adding the suggested change this is what I see.
❯ ./workbench --config config.yml --check
OK, connection to Drupal at https://islandora.traefik.me verified.
"nodes_only" option in effect. Media files will not be checked/validated.
OK, configuration file has all required values (did not check for optional values).
OK, CSV file input_data/i8_sample_objects_workbench_OBJECTS_2.csv found.
OK, all 3 rows in the CSV file have the same number of columns as there are headers (17).
OK, CSV column headers match Drupal field names.
OK, required Drupal fields are present in the CSV file.
OK, ETDF field values in the CSV file validate.
Warning: Issues detected with validating typed relation field values in the CSV file. See the log for more detail.
Configuration and input data appear to be valid.
And this might be helpful
❯ ./workbench --config config.yml
OK, connection to Drupal at https://islandora.traefik.me verified.
"nodes_only" option in effect. No media will be created.
Node for "Easthampton Town Hall (Large Image)" (record 1) created at https://islandora.traefik.me/islandora/EasthamptonTownHallLargeImage.
Node for "Nehemiah Strong House (Large Image)" (record 2) created at https://islandora.traefik.me/islandora/NehemiahStrongHouseLargeImage.
Node for "Amherst College, Lawrence Observatory (Large Image)" (record 3) created at https://islandora.traefik.me/islandora/AmherstCollegeLawrenceObservatoryLargeImage.
❯ ./workbench --config rollback.yml
OK, connection to Drupal at https://islandora.traefik.me verified.
Node EasthamptonTownHallLargeImage not found or not accessible, skipping delete.
Node NehemiahStrongHouseLargeImage not found or not accessible, skipping delete.
Node AmherstCollegeLawrenceObservatoryLargeImage not found or not accessible, skipping delete.
All signs point to the media REST endpoint. I'm currently not able to get an ISLE-DC environment up and running so can't really troubleshoot, but as soon as I do, I'll investigate.
No rush.
rollback says that the nodes aren't found or accessible. Did they actually get created? The "created" message shouldn't be shown unless Drupal returns the correct response code (201).
They did get created but with no media.
Adding this here although I said this in slack already. I had to run $ python3 -m pip install python-magic
because of another issue with the magic module not install. Removes the errors but I'm not seeing the media. This might be an issue with my environment so I'm going to reboot and check.
The magic library is only used if the files you are ingesting are remote (e.g. paths to them start with http
...). I don't think that's the problem. AFAIK you are the first person to try workbench with ISLE-DC so I assme that the problem is the routing to the REST endpoint that Islandora provides to create media.
One thing that is also puzzling is why rolling back isn't working, if the nodes have in fact been created.
This is probably something I'm doing wrong. I created a super simple CSV (3 rows) and this is the output.
config.yml
How I run it
CSV
Terminal output
stout.txt