Manual Installation Issue in Ruby

TLDR Rishabh17 encountered a permission error during manual installation. v_shnu provided a solution in a GitHub discussion.

Photo of Rishabh17
Rishabh17
Tue, 15 Nov 2022 06:31:50 UTC

I am doing the manual installation and after some time it shows me the error and in the logs it is showing me this. Afterall i am doing the fresh installation. How to fix this issue. Please consider i am new to Ruby. <@4K2156> <@4K2288> sojan_official

Photo of Rishabh17
Rishabh17
Tue, 15 Nov 2022 08:58:18 UTC

This is the log file.

Photo of Rishabh17
Rishabh17
Tue, 15 Nov 2022 10:42:55 UTC

Using /usr/local/rvm/gems/ruby-3.0.4 fatal: could not create work tree dir 'chatwoot': Permission denied /usr/local/rvm/scripts/extras/bash_zsh_support/chpwd/function.sh: line 5: cd: chatwoot: No such file or directory fatal: not a git repository (or any of the parent directories): .git Could not locate Gemfile yarn install v1.22.19 warning Skipping preferred cache folder "/home/chatwoot/.cache/yarn" because it is not writable. warning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-1001". info No lockfile found. [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... error Could not write file "/home/chatwoot/yarn-error.log": "EACCES: permission denied, open '/home/chatwoot/yarn-error.log'" error An unexpected error occurred: "EACCES: permission denied, mkdir '/home/chatwoot/node_modules'". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. cp: cannot stat '.env.example': No such file or directory sed: can't read .env: No such file or directory sed: can't read .env: No such file or directory sed: can't read .env: No such file or directory sed: can't read .env: No such file or directory sed: can't read .env: No such file or directory sed: can't read .env: No such file or directory -bash: line 19: .env: Permission denied rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /usr/local/rvm/gems/ruby-3.0.4/gems/rake-13.0.6/exe/rake:27:in `' /usr/local/rvm/gems/ruby-3.0.4/bin/ruby_executable_hooks:22:in `eval' /usr/local/rvm/gems/ruby-3.0.4/bin/ruby_executable_hooks:22:in `

' (See full trace by running task with --trace)

Photo of sojan_official
sojan_official
Wed, 16 Nov 2022 15:50:10 UTC

cc: v_shnu

Photo of Rishabh17
Rishabh17
Thu, 17 Nov 2022 08:55:14 UTC

Hello v_shnu Can you please help?

Photo of v_shnu
v_shnu
Thu, 17 Nov 2022 09:11:37 UTC

Rishabh17 Answering in https://github.com/chatwoot/chatwoot/discussions/5869

Photo of Rishabh17
Rishabh17
Thu, 17 Nov 2022 09:59:55 UTC

v_shnu Here is the setup.log file