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

Deliver package to DG for last article #220

Open
eliselavy opened this issue Apr 4, 2024 · 8 comments
Open

Deliver package to DG for last article #220

eliselavy opened this issue Apr 4, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@eliselavy
Copy link
Collaborator

Need to update this before

Screenshot 2024-04-04 at 14 13 38

@eliselavy eliselavy self-assigned this Apr 4, 2024
@eliselavy eliselavy added the bug Something isn't working label Apr 4, 2024
@eliselavy
Copy link
Collaborator Author

Now watermark is added only for article not with status == PUBLISHED
Need to fix XML related issues:
#191
#192
#193
#194

eliselavy added a commit that referenced this issue Apr 18, 2024
* #205

* Feature/pdf (#213)

New Celery task allowing to generate the pdf of an article
Use of nbconvert --to pdf
Use of citeproc to insert reference

* subprocess- stderr - #209

* add pandoc / #209

* remove extra line

* Update Dockerfile

* add debug + texlive

* FROM pandoc/core:latest

* comment lxml / psycopg2-binary

* revert changes

* #209

* #209

* #209

* Update notebook_with_ref.ipynb

* check json

* #209

tag hermeneutics for markdown cell / code cell

* jdh_statistics

* jdh stats

* Update jdh_statistics.ipynb

* #216

* add filter API / #19

* ordering pid / #19

* addition article_status in watermak only if not published yet / #220

* condition on contrib-id-type="orcid" / #193

* remove journal code in the elocation ID / #192

* addition open-issue attribute / #191
@eliselavy
Copy link
Collaborator Author

eliselavy commented Apr 18, 2024

https://journalofdigitalhistory.org/prerendered/en/article/4ZDXFXQwhoA8

https://journalofdigitalhistory.org/prerendered/en/article/dg/4ZDXFXQwhoA8

https://journalofdigitalhistory.org/prerendered/en/package/4ZDXFXQwhoA8

2024/04/18 15:13:52 [error] 37#37: *150 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 10.244.9.63, server: , request: "GET /prerendered/en/package/4ZDXFXQwhoA8 HTTP/1.1", upstream: "http://172.30.0.4:8000/package/4ZDXFXQwhoA8/", host: "journalofdigitalhistory.org"

@eliselavy
Copy link
Collaborator Author

Need to add: proxy_read_timeout 600s; # Increase the timeout to 600 seconds
in https://github.com/C2DH/journal-digital-history-docker-stack/blob/master/nginx/default.conf.template

part :

location ~ ^/prerendered/en/ {
rewrite /prerendered/en/(.*)/? /$1/ break;
proxy_pass http://backend;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_cache api_cache;
proxy_cache_lock on;
proxy_cache_valid 200 302 10m;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
add_header X-Cache-Status $upstream_cache_status;
proxy_redirect off;
}

@eliselavy
Copy link
Collaborator Author

Timeout more on the puppeter.
No timeout this morning

@eliselavy
Copy link
Collaborator Author

eliselavy commented Apr 30, 2024

Still need to aligned the package on the open issue requirements: http://backstage.c2dh.uni.lux/display/DDRI/Publication

structure package has the old requirements

see issue #166

eliselavy added a commit that referenced this issue May 2, 2024
@eliselavy
Copy link
Collaborator Author

@eliselavy
Copy link
Collaborator Author

From DG:
Thank you for reminding me. Yes, ideally, we would find a way that you can register the secondary URLs (if only so you can update them should something change in the URL structure for your platform / for an article). For now, I have to write an IT-support ticket every time secondary URLs need to be added. I will write one for the two articles now.

TO DO: to check when it will be done

@eliselavy eliselavy reopened this Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant