NRGI / resourcecontracts.org

Resource Contracts
http://resourcecontracts.org
GNU General Public License v2.0
16 stars 9 forks source link

Error logs: Failed to open stream #1203

Open adinuca opened 5 years ago

adinuca commented 5 years ago

@adinuca commented on Tue Jul 02 2019

Why

RC subsites cannot access files from S3.

What

Notes

Jun 27 11:57:25 20b95ece3c44 ecs-rc-subsite-master-var-www-rc-storage-logs:  [2019-06-27 08:57:25] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-nrgi.s3-us-west-2.amazonaws.com/1802/1802-iraqi-kurdistan-genel-taq-taq-block-psc-annexes-2002.pdf): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden 
Jun 27 11:58:15 20b95ece3c44 ecs-rc-subsite-master-var-www-olc-storage-logs:  [2019-06-27 08:58:15] lumen.ERROR: exception 'ErrorException' with message 'Trying to get property of non-object' in /var/www/olc/app/Http/Services/APIService.php:473
Jun 27 14:30:57 8a6ff3194fcc ecs-rc-subsite-master-var-www-rc-storage-logs:  [2019-06-27 11:30:57] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-nrgi.s3-us-west-2.amazonaws.com/1803/1803-iraqi-kurdistan-genel-taq-taq-block-psa-2004.pdf): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden 
Jun 28 21:27:07 20b95ece3c44 ecs-rc-subsite-master-var-www-rc-storage-logs:  [2019-06-28 18:27:07] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-nrgi.s3-us-west-2.amazonaws.com/1803/1803-iraqi-kurdistan-genel-taq-taq-block-psa-2004.pdf): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden 
Jun 30 17:26:30 8a6ff3194fcc ecs-rc-subsite-master-var-www-rc-storage-logs:  [2019-06-30 14:26:30] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-nrgi.s3-us-west-2.amazonaws.com/1802/1802-iraqi-kurdistan-genel-taq-taq-block-psc-annexes-2002.pdf): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden 
Jul 01 15:46:30 20b95ece3c44 ecs-rc-subsite-master-var-www-rc-storage-logs:  [2019-07-01 12:46:30] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-nrgi.s3-us-west-2.amazonaws.com/1802/1802-iraqi-kurdistan-genel-taq-taq-block-psc-annexes-2002.pdf): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden 

@adinuca commented on Tue Jul 02 2019

PDF does not exist in S3.

adinuca commented 5 years ago

Hi @charlesyoung ,

For this contract: https://www.resourcecontracts.org/contract/ocds-591adf-4251085025/view#/text, the PDF version does not exist. Is it normal for contracts to only have the Text version available?

Thank you, Adina

charlesyoung commented 5 years ago

Thanks @adinuca. All agreements should have an associated PDF document so this is strange. I get below message when trying to download the PDF document from the admin site.

image

adinuca commented 5 years ago

@charlesyoung, you got that error because the documents do not exist, these are the only files that do exist for contracts 1802 and 1803:

Screenshot 2019-07-10 at 16 36 54 Screenshot 2019-07-10 at 16 38 54

I've checked if there are logs to see how they disappeared but there aren't any. Do you have a copy of the PDFs? Can they be added back?

adinuca commented 4 years ago

This is still happening:

Nov 22 00:43:48 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-21 22:43:48] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/156/156-liberia-an-act-ratifying-the-pscs-with-addendum-between-nocol-and-oranto-petroleum-block-lb-11.pdf): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 01:21:53 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-21 23:21:53] lumen.ERROR: File not found:file_get_contents(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2106/2106-bahar-energy-limited-socar-oil-affiliate-bahar-and-gum-deniz-fields-in-the-azerbaijan-sector-of-the-caspian-sea-psa-2009.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 01:58:36 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-21 23:58:36] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/1876/1876-conocophillips-santos-inpex-jpda-03-12-psc-amendment-timor-leste-australia-2003-activity-logs.pdf): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 02:23:05 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 00:23:05] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2262/2262-contrat-dassociation-borj-el-khadra.pdf): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 02:38:40 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 00:38:40] lumen.ERROR: File not found:file_get_contents(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2275/2275-convention-grombalia.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 02:40:17 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 00:40:17] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2189/2189-model-contract-psa-1999.pdf): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 02:46:56 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 00:46:56] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2029/2029-model-contract-societe-nationale-doperations-petroliers-de-la-cote-divoire-psa-1990.pdf): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 03:24:56 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 01:24:56] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2275/2275-convention-grombalia.pdf): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 04:08:48 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 02:08:48] lumen.ERROR: File not found:file_get_contents(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2477/2477-cahier-des-charges-oued-el-ghar.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 04:17:30 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 02:17:30] lumen.ERROR: File not found:file_get_contents(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2559/2559-drc-societe-de-developpement-industriel-et-miniere-du-congo-binzi-limited-first-quantum-minerals-lmited-jva-2000.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 04:39:48 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 02:39:48] lumen.ERROR: File not found:file_get_contents(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2578/2578-avenant-n-2-contrat-associat-conces-baguel.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 04:51:17 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 02:51:17] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2237/2237-convention-ksar-haddada.pdf): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 05:42:31 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 03:42:31] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2586/2586-kamoa-copper-sa-zijin-mining-group-co-limited-kamoa-holding-limited-2016.pdf): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 06:01:34 e1c70a2e6efd ecs-rp2-production-nginx-error.log: 2019/11/22 04:01:34 [crit] 14#14: *293168 connect() to [::1]:7000 failed (99: Address not available) while connecting to upstream, client: 10.0.0.55, server: localhost, request: "GET /dataset/rgi-hydrocarbons-2016-open-data-portal-2 HTTP/1.1", upstream: "http://[::1]:7000/dataset/rgi-hydrocarbons-2016-open-data-portal-2", host: "www.resourceprojects.org"
Nov 22 06:10:17 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 04:10:17] lumen.ERROR: File not found:file_get_contents(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2765/2765-medea-development-limited-cola-natural-resources-ghana-national-petroleum-corporation-east-cape-three-points-concession-agreement-2013.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 06:56:57 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 04:56:57] lumen.ERROR: exception 'ErrorException' with message 'readfile(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2385/2385-ndiouck-wakali-ginde-concession-2016.pdf): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 
Nov 22 07:05:12 374d4a48ee05 ecs-rc-subsite-staging-var-www-rc-storage-logs: [2019-11-22 05:05:12] lumen.ERROR: File not found:file_get_contents(https://resourcecontracts-admin-demo.s3-us-west-2.amazonaws.com/2761/2761-agm-petroleum-ghana-limited-ghana-national-petroleum-corporation-gnpc-exploration-and-production-company-limited-south-deepwater-tano-block-extension-.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found