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

'Failed to load plugins' when running as simple user #278

Closed
nicocube opened this issue Nov 17, 2013 · 7 comments
Closed

'Failed to load plugins' when running as simple user #278

nicocube opened this issue Nov 17, 2013 · 7 comments
Milestone

Comments

@nicocube
Copy link

Hi,

I just installed Strider 1.4.0 and it works very well as long as I am running it as root:

# strider
17 Nov 21:19:27 - info: Using MongoDB URL: mongodb://localhost/strider-foss
17 Nov 21:19:27 - warn: connect.multipart() will be removed in connect 3.0
17 Nov 21:19:27 - warn: visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
17 Nov 21:19:27 - warn: connect.limit() will be removed in connect 3.0
17 Nov 21:19:27 - warn: No SMTP creds - forgot password flow will not work
17 Nov 21:19:28 - info: RUNNER INIT
17 Nov 21:19:28 - info: loaded templates
17 Nov 21:19:29 - info: initalized webapps
17 Nov 21:19:29 - info: [job plugins]
17 Nov 21:19:29 - info: - custom
17 Nov 21:19:29 - info: - env
17 Nov 21:19:29 - info: - heroku
17 Nov 21:19:29 - info: - node
17 Nov 21:19:29 - info: - python
17 Nov 21:19:29 - info: - sauce
17 Nov 21:19:29 - info: - webhooks
17 Nov 21:19:29 - info: [runner plugins]
17 Nov 21:19:29 - info: - simple-runner
17 Nov 21:19:29 - info: [provider plugins]
17 Nov 21:19:29 - info: - bitbucket
17 Nov 21:19:29 - info: - git
17 Nov 21:19:29 - info: - github
17 Nov 21:19:29 - info: initalized static directories
17 Nov 21:19:29 - info: loaded config pages
17 Nov 21:19:29 - info: loaded account config pages
17 Nov 21:19:29 - info: loaded plugin status blocks
17 Nov 21:19:29 - info: loaded plugins
17 Nov 21:19:29 - info:    info  - socket.io started
17 Nov 21:19:29 - info: Express server listening on port 3000 in development mode
17 Nov 21:19:29 - info: Marking zombie jobs as finished...
17 Nov 21:19:29 - info: 0 zombie jobs marked as finished

But it fails if I try to run as a simple user:

$ strider
17 Nov 21:18:10 - info: Using MongoDB URL: mongodb://localhost/strider-foss
17 Nov 21:18:10 - warn: connect.multipart() will be removed in connect 3.0
17 Nov 21:18:10 - warn: visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
17 Nov 21:18:10 - warn: connect.limit() will be removed in connect 3.0
17 Nov 21:18:10 - warn: No SMTP creds - forgot password flow will not work
17 Nov 21:18:11 - info: RUNNER INIT
17 Nov 21:18:11 - info: loaded templates
17 Nov 21:18:12 - info: initalized webapps
17 Nov 21:18:12 - info: [job plugins]
17 Nov 21:18:12 - info: - custom
17 Nov 21:18:12 - info: - env
17 Nov 21:18:12 - info: - heroku
17 Nov 21:18:12 - info: - node
17 Nov 21:18:12 - info: - python
17 Nov 21:18:12 - info: - sauce
17 Nov 21:18:12 - info: - webhooks
17 Nov 21:18:12 - info: [runner plugins]
17 Nov 21:18:12 - info: - simple-runner
17 Nov 21:18:12 - info: [provider plugins]
17 Nov 21:18:12 - info: - bitbucket
17 Nov 21:18:12 - info: - git
17 Nov 21:18:12 - info: - github
17 Nov 21:18:12 - info: initalized static directories
17 Nov 21:18:12 - error: Failed to load plugins
17 Nov 21:18:12 - info: Marking zombie jobs as finished...
17 Nov 21:18:12 - info: 0 zombie jobs marked as finished

It worked in 1.3.x.

Sorry for the inconvenience. :(

@jaredly
Copy link
Member

jaredly commented Nov 17, 2013

Ah yes, thanks for the bug report. I know what's going on; the plugin
aggregation tries to write to the /public directory within strider. If you
make that writable it will work.
But I think I'm going to change the way it works so it doesn't need to be
writable.

Jared

On Sun, Nov 17, 2013 at 1:26 PM, nicocube notifications@github.com wrote:

Hi,

I just installed Strider 1.4.0 and it works very well as long as I am
running it as root:

strider

17 Nov 21:19:27 - info: Using MongoDB URL: mongodb://localhost/strider-foss
17 Nov 21:19:27 - warn: connect.multipart() will be removed in connect 3.0
17 Nov 21:19:27 - warn: visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
17 Nov 21:19:27 - warn: connect.limit() will be removed in connect 3.0
17 Nov 21:19:27 - warn: No SMTP creds - forgot password flow will not work
17 Nov 21:19:28 - info: RUNNER INIT
17 Nov 21:19:28 - info: loaded templates
17 Nov 21:19:29 - info: initalized webapps
17 Nov 21:19:29 - info: [job plugins]
17 Nov 21:19:29 - info: - custom
17 Nov 21:19:29 - info: - env
17 Nov 21:19:29 - info: - heroku
17 Nov 21:19:29 - info: - node
17 Nov 21:19:29 - info: - python
17 Nov 21:19:29 - info: - sauce
17 Nov 21:19:29 - info: - webhooks
17 Nov 21:19:29 - info: [runner plugins]
17 Nov 21:19:29 - info: - simple-runner
17 Nov 21:19:29 - info: [provider plugins]
17 Nov 21:19:29 - info: - bitbucket
17 Nov 21:19:29 - info: - git
17 Nov 21:19:29 - info: - github
17 Nov 21:19:29 - info: initalized static directories
17 Nov 21:19:29 - info: loaded config pages
17 Nov 21:19:29 - info: loaded account config pages
17 Nov 21:19:29 - info: loaded plugin status blocks
17 Nov 21:19:29 - info: loaded plugins
17 Nov 21:19:29 - info: info - socket.io started
17 Nov 21:19:29 - info: Express server listening on port 3000 in development mode
17 Nov 21:19:29 - info: Marking zombie jobs as finished...
17 Nov 21:19:29 - info: 0 zombie jobs marked as finished

But it fails if I try to run as a simple user:

$ strider
17 Nov 21:18:10 - info: Using MongoDB URL: mongodb://localhost/strider-foss
17 Nov 21:18:10 - warn: connect.multipart() will be removed in connect 3.0
17 Nov 21:18:10 - warn: visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
17 Nov 21:18:10 - warn: connect.limit() will be removed in connect 3.0
17 Nov 21:18:10 - warn: No SMTP creds - forgot password flow will not work
17 Nov 21:18:11 - info: RUNNER INIT
17 Nov 21:18:11 - info: loaded templates
17 Nov 21:18:12 - info: initalized webapps
17 Nov 21:18:12 - info: [job plugins]
17 Nov 21:18:12 - info: - custom
17 Nov 21:18:12 - info: - env
17 Nov 21:18:12 - info: - heroku
17 Nov 21:18:12 - info: - node
17 Nov 21:18:12 - info: - python
17 Nov 21:18:12 - info: - sauce
17 Nov 21:18:12 - info: - webhooks
17 Nov 21:18:12 - info: [runner plugins]
17 Nov 21:18:12 - info: - simple-runner
17 Nov 21:18:12 - info: [provider plugins]
17 Nov 21:18:12 - info: - bitbucket
17 Nov 21:18:12 - info: - git
17 Nov 21:18:12 - info: - github
17 Nov 21:18:12 - info: initalized static directories
17 Nov 21:18:12 - error: Failed to load plugins
17 Nov 21:18:12 - info: Marking zombie jobs as finished...
17 Nov 21:18:12 - info: 0 zombie jobs marked as finished

It worked in 1.3.x.

Sorry for the inconvenience. :(


Reply to this email directly or view it on GitHubhttps://github.com//issues/278
.

@niallo
Copy link
Member

niallo commented Nov 17, 2013

Yes I think if possible it should use same dir as cache and data under
$HOME/.strider

On Sunday, November 17, 2013, Jared Forsyth wrote:

Ah yes, thanks for the bug report. I know what's going on; the plugin
aggregation tries to write to the /public directory within strider. If you
make that writable it will work.
But I think I'm going to change the way it works so it doesn't need to be
writable.

Jared

On Sun, Nov 17, 2013 at 1:26 PM, nicocube <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>>
wrote:

Hi,

I just installed Strider 1.4.0 and it works very well as long as I am
running it as root:

strider

17 Nov 21:19:27 - info: Using MongoDB URL:
mongodb://localhost/strider-foss
17 Nov 21:19:27 - warn: connect.multipart() will be removed in connect
3.0
17 Nov 21:19:27 - warn: visit
https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
17 Nov 21:19:27 - warn: connect.limit() will be removed in connect 3.0
17 Nov 21:19:27 - warn: No SMTP creds - forgot password flow will not
work
17 Nov 21:19:28 - info: RUNNER INIT
17 Nov 21:19:28 - info: loaded templates
17 Nov 21:19:29 - info: initalized webapps
17 Nov 21:19:29 - info: [job plugins]
17 Nov 21:19:29 - info: - custom
17 Nov 21:19:29 - info: - env
17 Nov 21:19:29 - info: - heroku
17 Nov 21:19:29 - info: - node
17 Nov 21:19:29 - info: - python
17 Nov 21:19:29 - info: - sauce
17 Nov 21:19:29 - info: - webhooks
17 Nov 21:19:29 - info: [runner plugins]
17 Nov 21:19:29 - info: - simple-runner
17 Nov 21:19:29 - info: [provider plugins]
17 Nov 21:19:29 - info: - bitbucket
17 Nov 21:19:29 - info: - git
17 Nov 21:19:29 - info: - github
17 Nov 21:19:29 - info: initalized static directories
17 Nov 21:19:29 - info: loaded config pages
17 Nov 21:19:29 - info: loaded account config pages
17 Nov 21:19:29 - info: loaded plugin status blocks
17 Nov 21:19:29 - info: loaded plugins
17 Nov 21:19:29 - info: info - socket.io started
17 Nov 21:19:29 - info: Express server listening on port 3000 in
development mode
17 Nov 21:19:29 - info: Marking zombie jobs as finished...
17 Nov 21:19:29 - info: 0 zombie jobs marked as finished

But it fails if I try to run as a simple user:

$ strider
17 Nov 21:18:10 - info: Using MongoDB URL:
mongodb://localhost/strider-foss
17 Nov 21:18:10 - warn: connect.multipart() will be removed in connect
3.0
17 Nov 21:18:10 - warn: visit
https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
17 Nov 21:18:10 - warn: connect.limit() will be removed in connect 3.0
17 Nov 21:18:10 - warn: No SMTP creds - forgot password flow will not
work
17 Nov 21:18:11 - info: RUNNER INIT
17 Nov 21:18:11 - info: loaded templates
17 Nov 21:18:12 - info: initalized webapps
17 Nov 21:18:12 - info: [job plugins]
17 Nov 21:18:12 - info: - custom
17 Nov 21:18:12 - info: - env
17 Nov 21:18:12 - info: - heroku
17 Nov 21:18:12 - info: - node
17 Nov 21:18:12 - info: - python
17 Nov 21:18:12 - info: - sauce
17 Nov 21:18:12 - info: - webhooks
17 Nov 21:18:12 - info: [runner plugins]
17 Nov 21:18:12 - info: - simple-runner
17 Nov 21:18:12 - info: [provider plugins]
17 Nov 21:18:12 - info: - bitbucket
17 Nov 21:18:12 - info: - git
17 Nov 21:18:12 - info: - github
17 Nov 21:18:12 - info: initalized static directories
17 Nov 21:18:12 - error: Failed to load plugins
17 Nov 21:18:12 - info: Marking zombie jobs as finished...
17 Nov 21:18:12 - info: 0 zombie jobs marked as finished

It worked in 1.3.x.

Sorry for the inconvenience. :(


Reply to this email directly or view it on GitHub<
https://github.com/Strider-CD/strider/issues/278>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/278#issuecomment-28663150
.

Niall O'Higgins
W: http://niallohiggins.com
E: n@niallo.me
T: @niallohiggins

@nicocube
Copy link
Author

I tried this

# chmod -R 777 /usr/lib/node_modules/strider/public/

And it's starting now. :)

@niallo
Copy link
Member

niallo commented Nov 18, 2013

Great. This is still quite bad that the directory needs to be world-writable in a global install. Many people will be trying to install this way.

@niallo
Copy link
Member

niallo commented Nov 18, 2013

@jaredly could we make the plugin aggregation a route instead which serves it dynamically? With a cache if necessary.

@jaredly
Copy link
Member

jaredly commented Nov 18, 2013

yup I think that makes the most sense. It doesn't really need to be cached.

On Mon, Nov 18, 2013 at 10:31 AM, niallo notifications@github.com wrote:

@jaredly https://github.com/jaredly could we make the plugin
aggregation a route instead which serves it dynamically? With a cache if
necessary.


Reply to this email directly or view it on GitHubhttps://github.com//issues/278#issuecomment-28719139
.

@niallo
Copy link
Member

niallo commented Nov 18, 2013

Cool - created a specific issue in the 1.4.1 milestone and assigned it to you @jaredly :)

pgte pushed a commit to BrowserSwarm/strider that referenced this issue Nov 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants