https://dev.arvados.org/https://dev.arvados.org/favicon.ico?15576888422019-05-13T19:47:33ZArvadosArvados - Bug #15225: [API] installation gives error: Creating git_internal_dir ''...mkdir: cannot create directory ‘’: No such file or directoryhttps://dev.arvados.org/issues/15225?journal_id=743532019-05-13T19:47:33ZNico César
<ul></ul><pre>
9tee4:/var/www/arvados-api/current# bundle exec rake config:check
rake aborted!
API.RailsSessionSecretToken cannot be empty
/var/www/arvados-api/current/lib/config_loader.rb:118:in `block in coercion_and_check'
/var/www/arvados-api/current/lib/config_loader.rb:80:in `each'
/var/www/arvados-api/current/lib/config_loader.rb:80:in `coercion_and_check'
/var/www/arvados-api/current/config/arvados_config.rb:222:in `<top (required)>'
/var/www/arvados-api/current/config/application.rb:48:in `require_relative'
/var/www/arvados-api/current/config/application.rb:48:in `<class:Application>'
/var/www/arvados-api/current/config/application.rb:44:in `<module:Server>'
/var/www/arvados-api/current/config/application.rb:43:in `<top (required)>'
/var/www/arvados-api/current/Rakefile:9:in `require'
/var/www/arvados-api/current/Rakefile:9:in `<top (required)>'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `load'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `kernel_load'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:28:in `run'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/lib/bundler/cli.rb:424:in `exec'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/exe/bundle:30:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
/usr/local/rvm/gems/ruby-2.3.5@global/gems/bundler-1.16.1/exe/bundle:22:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.5@global/bin/bundle:22:in `load'
/usr/local/rvm/gems/ruby-2.3.5@global/bin/bundle:22:in `<main>'
/usr/local/rvm/gems/ruby-2.3.5/bin/ruby_executable_hooks2.1:15:in `eval'
/usr/local/rvm/gems/ruby-2.3.5/bin/ruby_executable_hooks2.1:15:in `<main>'
(See full trace by running task with --trace)
</pre> Arvados - Bug #15225: [API] installation gives error: Creating git_internal_dir ''...mkdir: cannot create directory ‘’: No such file or directoryhttps://dev.arvados.org/issues/15225?journal_id=743612019-05-13T20:48:40ZNico César
<ul><li><strong>Project</strong> changed from <i>40</i> to <i>Arvados</i></li><li><strong>Subject</strong> changed from <i>[API] [9tee4] installation gives error: Creating git_internal_dir ''...mkdir: cannot create directory ‘’: No such file or directory</i> to <i>[API] installation gives error: Creating git_internal_dir ''...mkdir: cannot create directory ‘’: No such file or directory</i></li><li><strong>Category</strong> set to <i>API</i></li><li><strong>Target version</strong> set to <i>To Be Groomed</i></li></ul><p>I fixed RailsSessionSecretToken and other missing mandatory configuration</p>
<p>but I still get:</p>
<pre>
apt-get install arvados-api-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
arvados-api-server is already the newest version (1.3.3.20190513140112-8).
0 upgraded, 0 newly installed, 0 to remove and 143 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up arvados-api-server (1.3.3.20190513140112-8) ...
Assumption: nginx is configured to serve Rails from
/var/www/arvados-api/current
Assumption: nginx and passenger run as www-data
Creating symlinks to configuration in /etc/arvados/api ...... done.
Running bundle install... done.
Ensuring directory and file permissions ...... done.
Running db:migrate...Defaulting to memory cache, because /var/www/arvados-api/current/tmp/cache owner (uid=33) is not me (uid=0)
DEPRECATION WARNING: `config.serve_static_files` is deprecated and will be removed in Rails 5.1.
Please use `config.public_file_server.enabled = false` instead.
(called from block in <top (required)> at /var/www/arvados-api/current/config/environments/production.rb:12)
done.
Checking application.yml for completeness...Defaulting to memory cache, because /var/www/arvados-api/current/tmp/cache owner (uid=33) is not me (uid=0)
DEPRECATION WARNING: `config.serve_static_files` is deprecated and will be removed in Rails 5.1.
Please use `config.public_file_server.enabled = false` instead.
(called from block in <top (required)> at /var/www/arvados-api/current/config/environments/production.rb:12)
done.
Precompiling assets... done.
Creating git_internal_dir ''...mkdir: cannot create directory ‘’: No such file or directory
failed.
dpkg: error processing package arvados-api-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
arvados-api-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
</pre>
<p>and this is because of</p>
<pre>
GIT_INTERNAL_DIR=$($COMMAND_PREFIX bundle exec rake config:check 2>&1 | grep git_internal_dir | awk '{ print $2 }')
</pre>
<p>git_internal_dir is not output of rake config:check anymore</p>
<p>why we do this in the postinst script of API server? should arvados-git-httpd handle this?</p> Arvados - Bug #15225: [API] installation gives error: Creating git_internal_dir ''...mkdir: cannot create directory ‘’: No such file or directoryhttps://dev.arvados.org/issues/15225?journal_id=743682019-05-14T14:05:37ZWard Vandewegeward@curii.com
<ul></ul><p>Nico César wrote:</p>
<blockquote>
<p>9tee4:/var/www/arvados-api/current# bundle exec rake config:check<br />rake aborted!<br />API.RailsSessionSecretToken cannot be empty</p>
</blockquote>
<p>...</p>
<p>You just need to specify the rails environment, no? </p>
<pre><code>RAILS_ENV=production bundle exec rake config:check</code></pre> Arvados - Bug #15225: [API] installation gives error: Creating git_internal_dir ''...mkdir: cannot create directory ‘’: No such file or directoryhttps://dev.arvados.org/issues/15225?journal_id=743692019-05-14T14:06:57ZWard Vandewegeward@curii.com
<ul></ul><p>Nico César wrote:</p>
<blockquote>
<p>git_internal_dir is not output of rake config:check anymore</p>
</blockquote>
<p>It looks like the semantics of rake config:check changed, it doesn't generate any output anymore. It used to print out the entire config. Bug?</p>
<p>This happened in <a class="changeset" title="15161: Re-adds API's config:check rake task (as a noop) The unified rails postinst scripts assum..." href="https://dev.arvados.org/projects/arvados/repository/arvados/revisions/0cd5f7190f1c841051a0c950ea3cf74477cf20e7">0cd5f7190f</a> by Lucas</p> Arvados - Bug #15225: [API] installation gives error: Creating git_internal_dir ''...mkdir: cannot create directory ‘’: No such file or directoryhttps://dev.arvados.org/issues/15225?journal_id=743712019-05-14T14:23:51ZWard Vandewegeward@curii.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-6 status-3 priority-4 priority-default closed parent" href="/issues/13996">Idea #13996</a>: [API] Migrate RailsAPI to new cluster config file</i> added</li></ul> Arvados - Bug #15225: [API] installation gives error: Creating git_internal_dir ''...mkdir: cannot create directory ‘’: No such file or directoryhttps://dev.arvados.org/issues/15225?journal_id=743722019-05-14T14:24:44ZWard Vandewegeward@curii.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>Assigned To</strong> set to <i>Ward Vandewege</i></li><li><strong>Target version</strong> changed from <i>To Be Groomed</i> to <i>2019-05-22 Sprint</i></li></ul> Arvados - Bug #15225: [API] installation gives error: Creating git_internal_dir ''...mkdir: cannot create directory ‘’: No such file or directoryhttps://dev.arvados.org/issues/15225?journal_id=743732019-05-14T14:26:33ZWard Vandewegeward@curii.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Fix the api server package postinstall script to use `rake config:dump` to get a value, rather th..." href="https://dev.arvados.org/projects/arvados/repository/arvados/revisions/ab4fabf39c7cb1c48a2ba09ba2f45da45b6c4574">arvados|ab4fabf39c7cb1c48a2ba09ba2f45da45b6c4574</a>.</p> Arvados - Bug #15225: [API] installation gives error: Creating git_internal_dir ''...mkdir: cannot create directory ‘’: No such file or directoryhttps://dev.arvados.org/issues/15225?journal_id=743842019-05-14T15:55:32ZTom Morristfmorris@veritasgenetics.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-3 priority-4 priority-default closed parent" href="/issues/15161">Bug #15161</a>: Dev clusters are failing: uninitialized constant ArInternalMetadatum (NameError)</i> added</li></ul> Arvados - Bug #15225: [API] installation gives error: Creating git_internal_dir ''...mkdir: cannot create directory ‘’: No such file or directoryhttps://dev.arvados.org/issues/15225?journal_id=746912019-05-21T22:27:46ZTom Morristfmorris@veritasgenetics.com
<ul><li><strong>Release</strong> set to <i>15</i></li></ul>