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

Update module produces errors when checking for new versions of DKAN modules #2537

Closed
boabjohn opened this issue May 26, 2018 · 8 comments
Closed
Assignees
Milestone

Comments

@boabjohn
Copy link

boabjohn commented May 26, 2018

Howdy all, similar to other reports, but just adding the most recent.
Pantheon provides a list of custom upstream builds here:
https://pantheon.io/docs/start-state/

That link fires off a new DKAN build, which (after a lot of building) gives this for a homepage:
Error message Warning: in_array() expects parameter 2 to be array, null given in DBObject->__set() (line 63 of /srv/bindings/c7c353dff2244e6fa56e9b21a8501b54/code/profiles/dkan/modules/contrib/eck/eck.classes.inc). Warning: in_array() expects parameter 2 to be array, null given in DBObject->__set() (line 63 of /srv/bindings/c7c353dff2244e6fa56e9b21a8501b54/code/profiles/dkan/modules/contrib/eck/eck.classes.inc). PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pantheon.t' doesn't exist: SELECT t.* FROM {} t WHERE (name = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => visualization ) in DBObject->load() (line 133 of /srv/bindings/c7c353dff2244e6fa56e9b21a8501b54/code/profiles/dkan/modules/contrib/eck/eck.classes.inc).

I am not gear-headed enough to know what to do next...hoping that there may be a reasonable solution recipe I can follow along?
Thanks!

Connects #2445

@janette
Copy link
Member

janette commented Jun 26, 2018

1.15.2 tag

dkan-drop-1-15-2___pantheon_dashboard

@acouch
Copy link
Contributor

acouch commented Jun 27, 2018

@boabjohn Can you try the following steps? https://acouch.github.io/dkan-site/pantheon/ Maybe we should add this to the docs.

@boabjohn
Copy link
Author

boabjohn commented Jul 7, 2018

G'Day @acouch ,
Thanks for the encouragement to have another go. I am quite keen to get a DKAN instance up and rolling because we've just been contacted by one of the NCRIS networks asking if we can expose a CKAN/DKAN endpoint to their researchers.
Exciting times for our little project!
And the DKAN delpoy on Pantheon seems to go smoother. However, I'm still hitting hitches.
1: I'm running the Ubuntu bash on Win10 Pro which is pretty good, but some configs are a bit tricky. Eg, I have drush running fine and a git repo for all my other Pantheon sites. But Terminus refused to install properly (could not create a cache directory)
2: I tried running the drush si method from my home directory, but got a "drush needs a more functional environment to run" message
3. So I finished the profile install via Pantheon, by directly loading the site and allowing the Drupal UI to run through the installation. All seemed to go smoothly enough. HOwever, going straight to Reports>Available updates, I get:

Notice: Undefined index: dkan in dkan_sitewide_update_status_alter() (line 209 of /srv/bindings/b3c6909aa9a64e6a89aed177bb07e40b/code/profiles/dkan/modules/dkan/dkan_sitewide/dkan_sitewide.module).
Notice: Undefined index: existing_major in dkan_sitewide_update_status_alter() (line 224 of /srv/bindings/b3c6909aa9a64e6a89aed177bb07e40b/code/profiles/dkan/modules/dkan/dkan_sitewide/dkan_sitewide.module).
Notice: Undefined index: existing_major in dkan_sitewide_update_status_alter() (line 224 of /srv/bindings/b3c6909aa9a64e6a89aed177bb07e40b/code/profiles/dkan/modules/dkan/dkan_sitewide/dkan_sitewide.module).
Notice: Undefined index: existing_version in dkan_sitewide_update_status_alter() (line 249 of /srv/bindings/b3c6909aa9a64e6a89aed177bb07e40b/code/profiles/dkan/modules/dkan/dkan_sitewide/dkan_sitewide.module)
  1. I turned off "All notices" and just focused on Warnings and Errors and got this:
Warning: Invalid argument supplied for foreach() in theme_update_report() (line 53 of /srv/bindings/b3c6909aa9a64e6a89aed177bb07e40b/code/modules/update/update.report.inc).
Warning: sort() expects parameter 1 to be array, null given in theme_update_report() (line 182 of /srv/bindings/b3c6909aa9a64e6a89aed177bb07e40b/code/modules/update/update.report.inc).
Warning: implode(): Invalid arguments passed in theme_update_report() (line 193 of /srv/bindings/b3c6909aa9a64e6a89aed177bb07e40b/code/modules/update/update.report.inc).

There are no actual errors yet...but I'd just like a bit of reassurance that this level of noise is expected and manageable?

There is one module with a security update pending and several with pending updates. Not sure if I should first try to update all modules before getting stuck into configurations.

Your advice or guidance much appreciated!

Kind regards....

@jjalcolea
Copy link

Hi all. Just installed DKAN on Pantheon following the DKAN docs (using Terminus, this provided link doesn't seem to work), and got the same messages in the final "Drupal installation complete" screen:

Notice: Undefined index: dkan in dkan_sitewide_update_status_alter() (line 209 of /srv/bindings/fa641fd6e2284b9ea9a3da8c8fe6abba/code/profiles/dkan/modules/dkan/dkan_sitewide/dkan_sitewide.module).
Notice: Undefined index: existing_major in dkan_sitewide_update_status_alter() (line 224 of /srv/bindings/fa641fd6e2284b9ea9a3da8c8fe6abba/code/profiles/dkan/modules/dkan/dkan_sitewide/dkan_sitewide.module).
Notice: Undefined index: existing_major in dkan_sitewide_update_status_alter() (line 224 of /srv/bindings/fa641fd6e2284b9ea9a3da8c8fe6abba/code/profiles/dkan/modules/dkan/dkan_sitewide/dkan_sitewide.module).
Notice: Undefined index: existing_version in dkan_sitewide_update_status_alter() (line 249 of /srv/bindings/fa641fd6e2284b9ea9a3da8c8fe6abba/code/profiles/dkan/modules/dkan/dkan_sitewide/dkan_sitewide.module).

As @boabjohn above, just wanted to know if everything is OK and the messages can safely be ignored...

Thanks in advance.

@janette
Copy link
Member

janette commented Aug 22, 2018

@jjalcolea that is a faulty check for version info, so yes you can ignore those warnings, or apply #2637 as a patch until the next release.

@jjalcolea
Copy link

Thanks @janette. Please note that the link provided in the documentation to launch a DKAN site in Pantheon doesn't seem to work either (https://dashboard.getpantheon.com/products/dkan/spinup)

Best,

Juanje.

@janette janette removed their assignment Aug 27, 2018
@kimwdavidson kimwdavidson added this to the Sprint 4 milestone Aug 27, 2018
@kimwdavidson kimwdavidson modified the milestones: Sprint 4, Sprint 5 Aug 27, 2018
@dafeder
Copy link
Member

dafeder commented Aug 28, 2018

@jjalcolea just tested the link and it worked for me. What are you seeing?

@dafeder
Copy link
Member

dafeder commented Aug 30, 2018

I'm going to rename this issue as its focus has narrowed quite a bit. There are clearly issues with pantheon installs beyond the version check but those will be addressed in other tickets.

@dafeder dafeder changed the title Fresh Pantheon build fails Update module produces errors when checking for new versions of DKAN modules Aug 30, 2018
@dafeder dafeder assigned janette and unassigned dafeder Aug 30, 2018
@janette janette assigned dafeder and unassigned janette Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants