TLDR Rishabh17 encountered a permission error during manual installation. v_shnu provided a solution in a GitHub discussion.
This is the log file.
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 `
cc: v_shnu
Hello v_shnu Can you please help?
Rishabh17 Answering in https://github.com/chatwoot/chatwoot/discussions/5869
v_shnu Here is the setup.log file
Rishabh17
Tue, 15 Nov 2022 06:31:50 UTCI 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