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

I can't reliably upload files. #1876

Closed
holdengreen opened this issue Dec 14, 2021 · 6 comments
Closed

I can't reliably upload files. #1876

holdengreen opened this issue Dec 14, 2021 · 6 comments
Labels
area/screen/files Issues related to Files screen kind/stale kind/support A question or request for support need/author-input Needs input from the original author P3 Low: Not priority right now status/blocked Unable to be worked further until needs are met

Comments

@holdengreen
Copy link

holdengreen commented Dec 14, 2021

I'm trying to use the webui to upload batches of files into a folder/directory but that fails red X's.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a folder.
  2. Click on '+Import'
  3. Pick 'File'
  4. Select multiple files and confirm

Expected behavior
I expect that the files will take a short time to upload to the server and I should receive visual confirmation.

Firefox console output:

Error: Promised response from onMessage listener went out of scope chrome.js:92:30
This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://firefox-source-docs.mozilla.org/performance/scroll-linked_effects.html for further details and to join the discussion on related tools and features! bafybeihcyruaeza7uyjd6ugicbcrqumejf6uf353e5etdkhotqffwtguva
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:5001/api/v0/stats/bw. (Reason: CORS request did not succeed).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:5001/api/v0/swarm/peers?verbose=true&timeout=10000ms. (Reason: CORS request did not succeed).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:5001/api/v0/add?stream-channels=true&pin=false&wrap-with-directory=false&progress=false. (Reason: CORS request did not succeed).

Uncaught (in promise) HTTPError: 
    Babel 3
        o
        t
        exports
    n error.js:24
    e core.js:91
    l runtime.js:63
    _invoke runtime.js:293
    x runtime.js:118
    Babel 6
    O core.js:73
    e http.js:147
    l runtime.js:63
    _invoke runtime.js:293
    x runtime.js:118
    Babel 6
    value 5.46be50cc.chunk.js:2
    fetch core.js:192
    value http.js:175
    t add-all.js:36
    l runtime.js:63
    _invoke runtime.js:293
    x runtime.js:118
    Babel 6
    e index.js:9
    l runtime.js:63
    _invoke runtime.js:293
    x runtime.js:118
    Babel 4
    a index.js:9
    R actions.js:603
    n actions.js:278
    l runtime.js:63
    _invoke runtime.js:293
    x runtime.js:118
    Babel 4
    e utils.js:87
    l runtime.js:63
    _invoke runtime.js:293
    x runtime.js:118
    Babel 4
construct.js:19:20

And I'm getting some weirder and maybe more useful output in Chrome.

Desktop

  • OS: Manjaro Linux, kernel 5.10
  • Browser Firefox
  • Version 94

Additional context

I'm using a remote web server and forwarding the ports '5001', '8080' (which isn't working correctly), '3000' and '4001' to my laptop.

The daemon is running on a 500GB Storage VPS from Time4VPS and it's running Debian 9 with an ancient 2.6.32 kernel on OpenVZ 6.

@holdengreen holdengreen added the need/triage Needs initial labeling and prioritization label Dec 14, 2021
@holdengreen
Copy link
Author

holdengreen commented Dec 14, 2021

If this isn't a good place I can post on discuss.ipfs.io

I'm likely doing something wrong

@SgtPooki SgtPooki added area/screen/files Issues related to Files screen kind/support A question or request for support need/author-input Needs input from the original author P3 Low: Not priority right now status/blocked Unable to be worked further until needs are met and removed need/triage Needs initial labeling and prioritization labels Feb 10, 2022
@SgtPooki
Copy link
Contributor

SgtPooki commented Feb 10, 2022

@holdengreen Thanks for the detailed information about your remote server and daemon.

You say that you're forwarding ports, but you say "(which isn't working correctly)." Can you clarify what you mean by this? Also, I see CORS errors in the output. Did you follow the instructions at https://github.com/ipfs/ipfs-webui#configure-ipfs-api-cors-headers ?

@lidel
Copy link
Member

lidel commented Feb 10, 2022

Also: what is the URL you use in your browser to load the webui itself?

  • http://127.0.0.1:5001/webui ? (ℹ️ this one should not require CORS, as you load safelisted version from API port)
  • https://webui.ipfs.io or http://webui.ipfs.io.ipns.localhost:8080 ? (ℹ️ this one requires CORS setup because of different origin than port :5001)

@holdengreen
Copy link
Author

holdengreen commented Feb 17, 2022

I remember only needing to forward the web port, yes I go to http://127.0.0.1:5001/webui.
I'll get back to this.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 20, 2022

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 30 days.

@ipfs ipfs deleted a comment from welcome bot Mar 21, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Apr 21, 2022

This issue was closed because it is missing author input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/screen/files Issues related to Files screen kind/stale kind/support A question or request for support need/author-input Needs input from the original author P3 Low: Not priority right now status/blocked Unable to be worked further until needs are met
Projects
None yet
Development

No branches or pull requests

3 participants