-
Notifications
You must be signed in to change notification settings - Fork 149
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
Error: fopen(httpseek://): failed to open stream ... #713
Comments
@parajbs It would help greatly if you could provide a minimal test case/repository demonstrating the issue. It's hard to debug any issues without one. Based on the details you provided, it sounds like your issue might be related to the PHP you're running. None of the error messages you provided originate from s3rver. |
@leontastisch CLIENT (Nextcloud21)
############################################
s3rver_index.js: const corsConfig = require.resolve('./cors.xml'); const instance = new S3rver({ cors.xml: curl -I https: //S3domain1/test-bucket HTTP/1.1 200 OK NO Error (Client Netxcloud21): apache2-log(Client Netxcloud21 ): apache2-log S3rver (2.2.6): ##############################################################
s3rver_index.js: const corsConfig = require.resolve('./cors.xml'); const instance = new S3rver({ const s3Events = fromEvent(instance, 'event'); cors.xml: * PUT POST DELETE HEAD 3000 Authorization Content-Type *curl -I https://S3domain2/test-bucket HTTP / 1.1 200 OK Error (Client Netxcloud21): see post 1 check: The file is ok (have text) via "CloudBerry Explorrer"! I think the error is here, but I'm not quite sure how to fix it: apache2-log(Client Netxcloud21 ) apache2-log S3rver (3.6.2_main): I think the error is here, but I'm not quite sure how to fix it: |
@parajbs I would really like to understand what your issue is, but I'm having a hard time interpreting what exactly you are trying to do which causes the regression to appear, and exactly what the regression is. If you'd like help on this, please provide brief answers to these questions:
Please exclude any references to your own application or other software. I don't know anything about Nextcloud21 or Cloudberry Explorer so I can't really interpret output from these applications. Dumping logs from these applications is very confusing and unhelpful. The best way you can ask for help is by creating a new repository with a Minimal Reproducible Example of your problem that I can test on my own machine with |
Sorry that it took so long, but I had to find my way around the S3rver code first! I'm not sure how the questions can be answered!
Problem: file.txt is opened in the browser, but no text "hello world" is displayed! When I test the same process with S3rver (version 2.2.6) / minio-server or filebase.com, file.txt is opened and the text "hello world" can be seen! So the client (Nextcloud21 / aws-sdk-php 1.7.1) is OK!
[The error message from post1 means that Nextcloud wants to create a preview of the file.txt, but cannot open the file.txt or does not understand it!]
|
I test Nextcloud21 with s3rver version 2.2.6 - 2.2.9, there is no error message (see below), when opening and editing (streaming) files!
From version 3.0.0 - 3.6.1-master the error message appears when opening and editing:
Error: fopen(httpseek://): failed to open stream: "OC\Files\Stream\SeekableHttpStream::stream_open" call failed at /var/www/html/lib/private/Files/Stream/SeekableHttpStream.php#67
When I download the file via Nextcloud, the error from above comes first and then the error message:
Sabre\DAV\Exception\ServiceUnavailable: Could not open file
I looked through both codes of the different versions, but haven't found the bug yet!
In the older version of s3rver the open / streaming / (seeking) and downloading works OK!
But in the new version I have problems with understanding koa, so it is difficult to find and correct errors!
Can any of you help!
It is important to fix the bugs in the newer version!
The text was updated successfully, but these errors were encountered: