GithubHelp home page GithubHelp logo

Comments (13)

janette avatar janette commented on September 25, 2024 1

Todo: surface errors from the harvester transform so that users know to add the $settings['file_public_base_url'] value to their settings file.

sample-content

from dkan.

janette avatar janette commented on September 25, 2024

@fishfree do you see error messages in the dashboard when you go to: /admin/dkan/datastore/status ?

Are you able to create a dataset manually?

from dkan.

fishfree avatar fishfree commented on September 25, 2024

@janette There is no error message in the dashboard:
image
The dataset in the screenshot above was manually created by me, however, when I open it, it shows page not found:
image

There is neither related errors in the recent log messages.

from dkan.

janette avatar janette commented on September 25, 2024

@fishfree the dataset link is taking you to the decoupled frontend, if you are using ddev, you can run

ddev dkan-frontend-install
ddev dkan-frontend-build

to get the frontend working.

Otherwise you will need to do a few more steps, make sure you have Node 16 or higher installed:

cd docroot
git clone https://github.com/GetDKAN/data-catalog-app.git frontend
cd frontend
npm install
npm run build
drush pm-enable dkan_js_frontend -y
drush config-set system.site page.front '/home' -y
drush cr

If you go to the Drupal content view, and click on the dataset node, that will show you the metadata but not the data preview table (yet).

from dkan.

fishfree avatar fishfree commented on September 25, 2024

@janette Thank you! I just explore it out myself with your tips from this issue #3952
However, I run again vendor/bin/drush dkan:sample-content:create, still no datasets created.

from dkan.

janette avatar janette commented on September 25, 2024

@fishfree are you using DDEV or no? Can you list out the commands you are running starting from how you are adding dkan to your site to the point of running the drush dkan:sample-content:create command.

from dkan.

JoshuaSBrown avatar JoshuaSBrown commented on September 25, 2024

I'm getting a similar problem you can reproduce it with the attached compose setup.

dkan_sample_data_build.tar.gz

Untar the file

cd compose/v2
./build_images_for_compose.sh
docker compose up

Then you can get into the container.

docker exec -it v2-web-1 /bin/bash
drush install sample_content
drush dkan:sample-content:create -vvv
[preflight] Config paths: /home/drupal/home/vendor/drush/drush/drush.yml
[preflight] Alias paths: /home/drupal/home/docroot/drush/sites,/home/drupal/home/drush/sites
[preflight] Commandfile search paths: /home/drupal/home/vendor/drush/drush/src
[debug] Bootstrap further to find dkan:sample-content:create [0.03 sec, 8.18 MB]
[debug] Trying to bootstrap as far as we can [0.03 sec, 8.18 MB]
[info] Drush bootstrap phase: bootstrapDrupalRoot() [0.03 sec, 8.18 MB]
[info] Change working directory to /home/drupal/home/docroot [0.03 sec, 8.18 MB]
[info] Initialized Drupal 10.1.5 root directory at /home/drupal/home/docroot [0.03 sec, 8.23 MB]
[info] Drush bootstrap phase: bootstrapDrupalSite() [0.03 sec, 8.67 MB]
[debug] Could not find a Drush config file at sites/default/drush.yml. [0.04 sec, 8.9 MB]
[info] Initialized Drupal site default at sites/default [0.04 sec, 8.9 MB]
[info] Drush bootstrap phase: bootstrapDrupalConfiguration() [0.04 sec, 8.9 MB]
[debug] Add service modifier [0.04 sec, 9.1 MB]
[info] Drush bootstrap phase: bootstrapDrupalDatabase() [0.04 sec, 9.62 MB]
[info] Successfully connected to the Drupal database. [0.04 sec, 9.62 MB]
[info] Drush bootstrap phase: bootstrapDrupalFull() [0.04 sec, 9.62 MB]
[debug] Start bootstrap of the Drupal Kernel. [0.04 sec, 9.62 MB]
[debug] Finished bootstrap of the Drupal Kernel. [0.06 sec, 14.49 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\config\ConfigCommands [0.11 sec, 25.03 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\config\ConfigExportCommands [0.12 sec, 25.06 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\config\ConfigImportCommands [0.12 sec, 25.07 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\BatchCommands [0.12 sec, 25.07 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\CliCommands [0.12 sec, 25.08 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\DrupalCommands [0.12 sec, 25.08 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\DeployHookCommands [0.12 sec, 25.1 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\EntityCommands [0.12 sec, 25.12 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\LinkHooks [0.12 sec, 25.13 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\ImageCommands [0.12 sec, 25.13 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\JsonapiCommands [0.12 sec, 25.15 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\LanguageCommands [0.12 sec, 25.15 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\LocaleCommands [0.12 sec, 25.16 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\MaintCommands [0.12 sec, 25.19 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\MessengerCommands [0.12 sec, 25.2 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\MigrateRunnerCommands [0.12 sec, 25.2 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\QueueCommands [0.12 sec, 25.25 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\RoleCommands [0.12 sec, 25.27 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\StateCommands [0.12 sec, 25.31 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\TwigCommands [0.12 sec, 25.32 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\UserCommands [0.12 sec, 25.33 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\ViewsCommands [0.12 sec, 25.38 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\core\WatchdogCommands [0.12 sec, 25.41 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\field\FieldCreateCommands [0.12 sec, 25.44 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\field\FieldInfoCommands [0.12 sec, 25.45 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\field\FieldDeleteCommands [0.13 sec, 25.46 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\field\FieldBaseOverrideCreateCommands [0.13 sec, 25.47 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\field\FieldBaseInfoCommands [0.13 sec, 25.48 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\field\FieldEntityReferenceHooks [0.13 sec, 25.48 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\pm\PmCommands [0.13 sec, 25.49 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\pm\ThemeCommands [0.13 sec, 25.5 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeCommands [0.13 sec, 25.51 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeCommentsCommands [0.13 sec, 25.52 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeSessionsCommands [0.13 sec, 25.52 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeUserFieldsCommands [0.13 sec, 25.52 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeUserTableCommands [0.13 sec, 25.53 MB]
[debug] Add a commandfile class: Drupal\common\Commands\CommonCommands [0.13 sec, 25.53 MB]
[debug] Add a commandfile class: Drupal\common\Commands\JobStoreCommands [0.13 sec, 25.54 MB]
[debug] Add a commandfile class: Drupal\datastore\Drush [0.13 sec, 25.54 MB]
[debug] Add a commandfile class: Drupal\datastore\Commands\PurgeCommands [0.13 sec, 25.55 MB]
[debug] Add a commandfile class: Drupal\harvest\Commands\HarvestCommands [0.13 sec, 25.56 MB]
[debug] Add a commandfile class: Drupal\metastore\Commands\MetastoreCommands [0.13 sec, 25.6 MB]
[debug] Add a commandfile class: Drupal\metastore_search\Commands\RebuildTrackerCommands [0.13 sec, 25.6 MB]
[debug] Add a commandfile class: Drupal\sample_content\Drush [0.13 sec, 25.6 MB]
[debug] Add a commandfile class: Drupal\search_api\Commands\SearchApiCommands [0.13 sec, 25.6 MB]
[debug] Add a commandfile class: Drupal\views_bulk_operations\Commands\ViewsBulkOperationsCommands [0.13 sec, 25.69 MB]
[debug] Done with bootstrap max in Application::bootstrapAndFind(): trying to find dkan:sample-content:create again. [0.14 sec, 25.76 MB]
[info] Starting bootstrap to none [0.14 sec, 25.82 MB]
[info] Drush bootstrap phase 0 [0.14 sec, 25.82 MB]
[info] Try to validate bootstrap phase 0 [0.14 sec, 25.82 MB]
+----------------+-----------+---------+---------+--------+
| run_id         | processed | created | updated | errors |
+----------------+-----------+---------+---------+--------+
| sample_content | 10        | 0       | 0       | 10     |
+----------------+-----------+---------+---------+--------+

from dkan.

janette avatar janette commented on September 25, 2024

@JoshuaSBrown was is the output of drush dkan:datastore:list?
or visit /admin/dkan/datastore/status

from dkan.

JoshuaSBrown avatar JoshuaSBrown commented on September 25, 2024

There is no output:

$  drush dkan:datastore:list
 --------------- ----------- ------------- ----------- ---------- -----------
  Resource UUID   File Name   FileFetcher   Processed   Importer   Processed
 --------------- ----------- ------------- ----------- ---------- -----------

from dkan.

JoshuaSBrown avatar JoshuaSBrown commented on September 25, 2024

Screenshot (933)

from dkan.

grugnog avatar grugnog commented on September 25, 2024

@janette thanks for noting this! Documenting this in the install instructions would be great also.

I wonder if there is a way to adjust the code so that this setting doesn't need to be explicitly set - it seems like we must be doing something somewhat unusual/non-Drupally to need this?

from dkan.

janette avatar janette commented on September 25, 2024

@grugnog agree

from dkan.

dafeder avatar dafeder commented on September 25, 2024

@janette doing a bit of an issue cleanup sweep here... looks like this has been addressed, can you close if so?

from dkan.

Related Issues (20)

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.