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

Issues with restart after update #3371

Open
mcbts opened this issue Apr 19, 2024 · 0 comments
Open

Issues with restart after update #3371

mcbts opened this issue Apr 19, 2024 · 0 comments

Comments

@mcbts
Copy link

mcbts commented Apr 19, 2024

Not sure if this is the right place to ask but couldn't find elsewhere. I tried updating my set up a sit has been a long time since I first installed. Followed the instructions at https://github.com/huginn/huginn/blob/master/doc/manual/update.md but had to change the ruby download part as it was a 3.2 snapshot which was not bzip.

Seemed to go fine until I finally ran the last line to get it going again and got this spat out:

malc@zoostorm:/home/huginn/huginn$ sudo bundle exec rake production:export
Stopping huginn ...
Exporting new services ...
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/base.rb:86:in `rescue in chown': undefined method `exists?' for File:Class (NoMethodError)

    error("Could not chown #{dir} to #{user}") unless File.writable?(dir) || ! File.exists?(dir)
                                                                                   ^^^^^^^^
Did you mean?  exist?
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/base.rb:83:in `chown'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/base.rb:50:in `export'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/runit.rb:9:in `export'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/cli.rb:62:in `export'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/vendor/thor/lib/thor/command.rb:27:in `run'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/vendor/thor/lib/thor.rb:369:in `dispatch'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/vendor/thor/lib/thor/base.rb:444:in `start'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/bin/foreman:7:in `<top (required)>'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bin/foreman:25:in `load'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bin/foreman:25:in `<main>'
/usr/local/lib/ruby/3.2.0/fileutils.rb:2231:in `chown': No such file or directory @ apply2files - /var/run/huginn (Errno::ENOENT)
        from /usr/local/lib/ruby/3.2.0/fileutils.rb:2231:in `chown'
        from /usr/local/lib/ruby/3.2.0/fileutils.rb:1917:in `block in chown'
        from /usr/local/lib/ruby/3.2.0/fileutils.rb:1916:in `each'
        from /usr/local/lib/ruby/3.2.0/fileutils.rb:1916:in `chown'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/base.rb:84:in `chown'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/base.rb:50:in `export'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/export/runit.rb:9:in `export'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/cli.rb:62:in `export'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/vendor/thor/lib/thor/command.rb:27:in `run'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/vendor/thor/lib/thor.rb:369:in `dispatch'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/lib/foreman/vendor/thor/lib/thor/base.rb:444:in `start'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bundler/gems/foreman-a5f9b78fa5cf/bin/foreman:7:in `<top (required)>'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bin/foreman:25:in `load'
        from /home/huginn/huginn/vendor/bundle/ruby/3.2.0/bin/foreman:25:in `<main>'
rake aborted!
'foreman export runit -a huginn -l /home/huginn/huginn/log /etc/service' exited with a non-zero return value:
/home/huginn/huginn/lib/tasks/production.rake:85:in `run'
/home/huginn/huginn/lib/tasks/production.rake:60:in `block (2 levels) in <main>'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `load'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `kernel_load'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:23:in `run'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:492:in `exec'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:34:in `dispatch'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:28:in `start'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/exe/bundle:45:in `block in <top (required)>'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
/home/huginn/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.12/exe/bundle:33:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Tasks: TOP => production:export
(See full trace by running task with --trace)
malc@zoostorm:/home/huginn/huginn$ sudo bundle exec rake production:status
malc@zoostorm:/home/huginn/huginn$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
malc@zoostorm:/home/huginn/huginn$ sudo bundle exec rake production:status --trace
** Invoke production:status (first_time)
** Invoke production:check (first_time)
** Execute production:check
** Execute production:status

Now it isnt running in the browser and I have no idea where to start in getting it going again. Anyone have any tips on what might have gone wrong along the way? Or if this is the wrong place to ask a pointer to the right place. TIA

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

1 participant