Project

General

Profile

Actions

Bug #7233

closed

[Documentation] API script create_superuser_token.rb has trouble on Ubuntu

Added by Brett Smith over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
Documentation
Target version:
-
Story points:
-

Description

The Git install guide tells you to run this command from the API server:

sudo -u webserver-user RAILS_ENV=production `which rvm-exec` default bundle exec ./script/create_superuser_token.rb

We have multiple reports that this doesn't work on Ubuntu—one precise, one trusty.

Actions #1

Updated by Brett Smith over 10 years ago

  • Target version set to Arvados Future Sprints
Actions #2

Updated by Brett Smith over 10 years ago

  • Target version deleted (Arvados Future Sprints)

I had trouble reproducing this. I took the current ubuntu:trusty Docker image, and built it up following the API server install guide. After I finished that, I was able to run the line without any issues (except the usual .git warnings).

One person suggested that the ownerships of /var/www/arvados-api needed to be set to www-data; and www-data needed a real shell (it's nologin on trusty). However, my Docker container has root ownership on that directory, and nologin as the shell, and the line still works.

Actions #3

Updated by Joshua Randall over 10 years ago

Just as a note - Emyr had this issue on Precise, not Trusty.

Actions #4

Updated by Brett Smith over 10 years ago

  • Subject changed from [Documentation] API script create_superuser_token.rb has trouble on Ubuntu 14.04 to [Documentation] API script create_superuser_token.rb has trouble on Ubuntu
  • Description updated (diff)
Actions #5

Updated by Peter Amstutz about 6 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF