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

PURL server login fails if PURL servers are behind Cloudflare #119

Open
jvendetti opened this issue Jun 24, 2021 · 2 comments
Open

PURL server login fails if PURL servers are behind Cloudflare #119

jvendetti opened this issue Jun 24, 2021 · 2 comments

Comments

@jvendetti
Copy link
Member

This problem was discovered in our staging environment. The staging PURL server was put behind Cloudflare. After doing so, attempts to create ontologies and submissions at stage.bioontology.org started failing with 500 errors. Tracked the underlying exception down in the unicorn.std.err file on ncbostage-rest2.stanford.edu:

2021-06-23 13:43:02 - NoMethodError - undefined method `split' for nil:NilClass:
	/srv/ncbo/ontologies_api/shared/bundle/ruby/2.6.0/bundler/gems/ontologies_linked_data-71a5ca8f7574/lib/ontologies_linked_data/purl/purl_client.rb:17:in `purl_server_login'
	/srv/ncbo/ontologies_api/shared/bundle/ruby/2.6.0/bundler/gems/ontologies_linked_data-71a5ca8f7574/lib/ontologies_linked_data/purl/purl_client.rb:27:in `create_purl'
	/srv/ncbo/ontologies_api/shared/bundle/ruby/2.6.0/bundler/gems/ontologies_linked_data-71a5ca8f7574/lib/ontologies_linked_data/models/ontology.rb:409:in `save'
	/srv/ncbo/ontologies_api/releases/20210619061350/controllers/ontologies_controller.rb:148:in `create_ontology'
	/srv/ncbo/ontologies_api/releases/20210619061350/controllers/ontologies_controller.rb:49:in `block (2 levels) in <class:OntologiesController>'
@jvendetti
Copy link
Member Author

This change to the infrastructure was reverted, i.e., the staging PURL server is no longer behind Cloudflare. New ontology and submission creation is working again in staging. The desire is to address this issue at some point in the future.

@alexskr
Copy link
Member

alexskr commented Sep 13, 2023

relates to #169

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

2 participants