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

Get it to work with proxies #488

Closed
balupton opened this issue Apr 18, 2013 · 24 comments
Closed

Get it to work with proxies #488

balupton opened this issue Apr 18, 2013 · 24 comments

Comments

@balupton
Copy link
Member

http://stackoverflow.com/q/15942403/130638

Current workaround, agree to the TOS manually by filling in your ~/.docpad.cson or ~/Dropbox/.docpad.cson file yourself:

{
  name: "Your name"
  email: "Your email"
  username: "Your username"
  subscribed: true
  subscribeTryAgain: null
  tos: true
  identified: true
}

HOWEVER

Please post a comment below on whether or not you use sudo with node. If you do, it means node is installed globally and probably shouldn't be, you can use the install intructions here http://learn.bevry.me/node/install to avoid permission issues. If these better install instructions fix it, let us know.


Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

@esteinborn
Copy link

When adding this to a docpad.cson in the ROOT of my docpad site, when running docpad run it still prompts me to accept ToS, so I know its not working correctly.

It's supposed to be docpad.cson not .docpad.cson right? (second is a dotfile)

I'm behind a pretty nasty firewall and cannot run this without this feature working.

@balupton
Copy link
Member Author

Hey mate, perhaps I wasn't that clear. ~ is your user directory not your project directory, so for me because I have dropbox installed that file is located at /Users/balupton/Dropbox/.docpad.cson however if I didn't have dropbox installed it would be at /Users/balupton/.docpad.cson - this file is different from your typical project configuration file, as it applies to all your projects, or rather, it applies to you.

@esteinborn
Copy link

OOOOOOOOH.

I forgot that I had dropbox installed on my work machine previously. So I copied the file there and it worked! Brilliant!

Thanks for the super quick reply!

+1 for auto-detecting dropbox.

@jjagoda
Copy link

jjagoda commented Apr 22, 2013

@balupton Your last comment clears a lot. Now it works. Thanks!

@balupton
Copy link
Member Author

Awesome. Glad the workaround works :) 👍 I wonder what the proper fix for this is... In about 2 weeks would one of you be willing to let me remote in so I can debug? That would be amazing. Alternatively, if someone can submit a pull request on this, that would be grand. Cheers everyone.

@balupton
Copy link
Member Author

I've also added mention of this to the troubleshoot guide http://docpad.org/docs/troubleshoot and added mention of the global configuration file to the config guide http://docpad.org/docs/config#global-configuration-file :)

@s2zaman
Copy link

s2zaman commented Sep 19, 2013

That one works.......and is OK 👍

@thegreatsunra
Copy link

Just experienced this issue while behind a proxy and trying to run DocPad for the first time. Running docpad would trigger the TOS message, but any response would quit DocPad and return to the command prompt with no message about what happened.

I got lucky finding this thread, as I had no idea it was being triggered by a proxy issue.

As an interim fix, perhaps DocPad should fire a message with the URL of this thread if the remote TOS query fails.

The good news is, the workaround works flawlessly!

@brandon-arnold
Copy link

I just required the same fix on Fedora 20. Is it because I had a ~/Dropbox before installing docpad, and it doesn't know to automatically put .docpad.cson there?

Anywho, FYI.

@greduan
Copy link
Contributor

greduan commented Jun 24, 2014

@brandon-arnold well if the Dropbox folder was already there then I don't see why it would be a problem. You need to accept the ToS once before with the Dropbox folder, or your home folder if there's no Dropbox, so that it is not repeated next time.

@twoolf
Copy link

twoolf commented Jul 8, 2014

just a note that this resolved for me on a Macbook when I added the .docpad.cson as mentioned above --

@balupton
Copy link
Member Author

balupton commented Jul 9, 2014

I restarted the helper service the other day.

For all those reporting errors with the TOS, do you usually use "sudo" with either npm, node, or docpad? Perhaps it's a permissions issue.

@twoolf
Copy link

twoolf commented Jul 9, 2014

That could be the problem on my end. I initially re-installed npm/node on
reading about the possibility of permission issues in your start guide.
But, its entirely possible that it didn't resolve all the permissions
issues.

On Tue, Jul 8, 2014 at 8:54 PM, Benjamin Arthur Lupton <
notifications@github.com> wrote:

I restarted the helper service the other day.

For all those reporting errors here, do you usually use "sudo" with either
npm, node, or docpad? Perhaps it's a permissions issue.


Reply to this email directly or view it on GitHub
#488 (comment).

@arafalov
Copy link

Just had this happen with a new install under Vagrant and hashicorp/precise32. Global installs for node/npm. The ~/.docpad.cson work around worked.

Not sure how it could be proxy given that things worked fine from inside VM to install Node, etc.

Edit: also happened on Centos8 droplet on DigitalOcean.

@insanity54
Copy link

Had this happen on my chunkhost vps running debian. docpad run would bring up the TOS prompt then silently exit. Workaround did it's thing.

This was referenced Aug 20, 2014
@bdenham
Copy link

bdenham commented Sep 9, 2014

Just wondering if I have a deeper install issue....For me, the .docpad.cson file was never created anywhere. Is this the case for others? I will create one at my user root folder ~ to see if that solves the issue and report back. I'm running OSX 10.9.4 and had to use sudo for updating/installing npm.

@bdenham
Copy link

bdenham commented Sep 9, 2014

Well, apparently, my installations of node.js or something else is fubar. Adding the missing .docpad.cson file did not work. I think I'll just uninstall node.js completely and try from scratch again.

@greduan
Copy link
Contributor

greduan commented Sep 9, 2014

Suggest installing it using NVM. :) https://github.com/creationix/nvm

@guaka
Copy link

guaka commented Feb 16, 2015

I am NOT behind a proxy. Still this issue helped me get further.

I suggest giving DocPad a --verbose option to allow people to see what's going on.

@marcusstenbeck
Copy link

No sudo, this was the only thing that worked.

@balupton
Copy link
Member Author

@guaka would --verbose be different than the already existent --debug flag?

@balupton
Copy link
Member Author

@marcusstenbeck interesting... what was the precise issue you were facing?

@marcusstenbeck
Copy link

@balupton I was getting the perpetual TOS statement.

@balupton
Copy link
Member Author

Closing due to age. Ecosystem has likely fixed this. Try again with v6.80 or later.

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