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

Log Upload Failed #16

Open
skaldarnar opened this issue Feb 3, 2015 · 5 comments
Open

Log Upload Failed #16

skaldarnar opened this issue Feb 3, 2015 · 5 comments

Comments

@skaldarnar
Copy link
Member

skaldarnar commented Feb 3, 2015

I've just got a RuntimeException when hit the "upload to pastebin" button. Is that due to the pastebin limit?

Exception in thread "Upload" java.lang.RuntimeException: Failed to fetch contents from link: java.io.IOException: Server
 returned HTTP response code: 502 for URL: http://pastebin.com/api/api_post.php
        at org.jpaste.utils.web.Web.getContents(Web.java:59)
        at org.jpaste.pastebin.PastebinPaste.paste(PastebinPaste.java:297)
        at org.terasology.crashreporter.pages.UploadPanel$3.run(UploadPanel.java:158)
        at java.lang.Thread.run(Thread.java:745)

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8263562-log-upload-failed?utm_campaign=plugin&utm_content=tracker%2F1626462&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1626462&utm_medium=issues&utm_source=github).
@Cervator
Copy link
Member

Cervator commented Feb 3, 2015

I wonder if we could put our own mini-pastebin somewhere on our infrastructure, locked down somehow to only be usable by the CR. Might help when the pastebin limit is hit, and could go a ways beyond that since it is just text so even high traffic shouldn't be that great a hit (unlike people trying to download game zips from Jenkins)

@msteiger
Copy link
Member

msteiger commented Feb 4, 2015

Hosting that on terasology.org had a few advantages, I agree on that.

I thought about using ownCloud, but there's no proper Java library for managing that. An Android lib exists, but porting it to plain Java isn't straightforward, as it it's tied with Android's account management and networking system.

There's Stikked, which seems to be fairly popular, but we might need to adapt the code to suit that API.

@Cervator
Copy link
Member

Cervator commented Feb 5, 2015

As usual it looks like there are all sorts of options out there. I didn't even realize hastebin is open source: https://github.com/seejohnrun/haste-server - its simplicity is nice. Written in node.js, isn't there something about being able to do more node/javascript stuff in general on Java 8?

Lots of options, little time :-)

@msteiger
Copy link
Member

msteiger commented Feb 5, 2015

I've also been experimenting with Apache Commons FileUpload and had it working in about 30min. A simplistic web-based upload form allows you to browse for files and upload them. The servlet runs on jetty and stores all incoming files in /tmp/upload.

If we add a very security checks (no 47GB BlueRay-Rips please!) and add (email) notifications, it could be a valuable alternative.

@Cervator
Copy link
Member

Cervator commented Sep 5, 2015

Bump. Adding to this issue as it looks like pastebin uploading may either be broken or hitting the quota too readily these days. Reference support thread: http://forum.terasology.org/threads/delta-too-great.1374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants