Error installing Odoo in Openshift - odoo

I'm trying to install Odoo in Openshift using the instructions available at https://github.com/dreispt/openshift-odoo-quickstart. When executing the final push, I get the following errors:
remote: rm: cannot remove '/var/lib/openshift/5905d54d7628e1e3050000d7//OCA-OCB*': No such file or directory
remote: rm: cannot remove '/var/lib/openshift/5905d54d7628e1e3050000d7//app-root/data/odoo-repo/doc': No such file or directory
remote: rm: cannot remove '/var/lib/openshift/5905d54d7628e1e3050000d7//app-root/data/odoo-repo/setup': No such file or directory
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: CLIENT_ERROR: Failed to execute action hook 'build' for 5905d54d7628e1e3050000d7 application odoo

Related

ErrorException file_get_contents(C:\wamp64\www\casting\.env): failed to open stream: No such file or directory

I'm trying to run a laravel project on wampserver.
I have the following structure:
I executed the following commands :
composer update
composer install
php artisan cache:clear
php artisan config:clear
And when I run this Cmd: php artisan key:generate, I get the following error:
ErrorException
file_get_contents(C:\wamp64\www\casting\.env): failed to open stream: No such file or directory
at C:\wamp64\www\casting\vendor\laravel\framework\src\Illuminate\Foundation\Console\KeyGenerateCommand.php:96
I don't know what I should do.

fatal: cannot create directory at '.scafflater/init/{{echo ".scafflater"}}': Invalid argument warning: Clone succeeded, but checkout failed

I'm trying to run an api that uses scaffolding , but it only runs on MAC, windows and wsl gives the errors below
in Bash:
$ scaffolding partial:run add-doma
✖ Getting scaffolding from https://github.com/link
✖ Command failed: git clone https://github.com/link C:\Users\user001\AppData\Local\Tempm9Qrwh
Cloning into 'C:\Users\user001\AppData\Local\Tempm9Qrwh'...
fatal: cannot create directory at '.scaffolding/init/{{echo ".scaffolding"}}': Invalid argument
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
in WSL:
✖ Getting nameproject from https://github.com/link
✖ EACCES: permission denied, mkdtemp '/tmpXXXXXX'

Yarn Install Error: Package subpath error

I am currently working on a project following the documentation in this github repo.
github repo
I first clone the repo into a folder. I then cd into the folder and do a run yarn install to get all dependencies. I get the following error. I have node v17.2.0 installed.
(base) Eddys-MacBook-Pro:avalanche-wallet-sdk eddyarce$ yarn install
yarn install v1.22.17
warning ../../../../../package.json: No license field
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
success Already up-to-date.
$ husky install && yarn build:prod
husky - Git hooks installed
yarn run v1.22.17
warning ../../../../../package.json: No license field
$ rollup -c --environment BUILD:production
Error loading `tslib` helper library.
[!] Error: Package subpath './package.json' is not defined by "exports" in /Users/eddyalvarado_1/Documents/GitHub/plasma-wallet-web3/js/avalanche-wallet-sdk/node_modules/rollup-plugin-typescript2/node_modules/tslib/package.json
Error: Package subpath './package.json' is not defined by "exports" in /Users/eddyalvarado_1/Documents/GitHub/plasma-wallet-web3/js/avalanche-wallet-sdk/node_modules/rollup-plugin-typescript2/node_modules/tslib/package.json
at new NodeError (node:internal/errors:371:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:429:9)
at packageExportsResolve (node:internal/modules/esm/resolve:683:3)
at resolveExports (node:internal/modules/cjs/loader:482:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/Users/eddyalvarado_1/Documents/GitHub/plasma-wallet-web3/js/avalanche-wallet-sdk/node_modules/rollup-plugin-typescript2/src/tslib.ts:11:23)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
https://github.com/ezolenko/rollup-plugin-typescript2/issues/286
Upgrade your tslib version (>=0.31.0) or downgrade your node version (<17.0.0)

Unable to push to Heroku, failed to compile chromedriver app

All of a sudden I am unable to push my code to Heroku via git push heroku master.
This is the error that I'm getting:
remote: Archive: /tmp/chromedriver.zip
remote: End-of-central-directory signature not found. Either this file is not
remote: a zipfile, or it constitutes one disk of a multi-part archive. In the
remote: latter case the central directory and zipfile comment will be found on
remote: the last disk(s) of this archive.
remote: unzip: cannot find zipfile directory in one of /tmp/chromedriver.zip or
remote: /tmp/chromedriver.zip.zip, and cannot find /tmp/chromedriver.zip.ZIP, period.
remote: ! Push rejected, failed to compile chromedriver app.
remote:
remote: ! Push failed
The buildpacks I am using are heroku/python, https://github.com/heroku/heroku-buildpack-google-chrome, and https://github.com/heroku/heroku-buildpack-chromedriver. I am using the Selenium ChromeDriver in my app. My app is running on one worker dyno. Any ideas? Thanks!

How to fill in the AWS data for storage.yml

I want to push a Ruby on Rails app to heroku. But it gets stuck.
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Some gems seem to be missing from your vendor/cache directory.
remote: Could not find aws-eventstream-1.1.0 in any of the sources
remote: Bundler Output: Some gems seem to be missing from your vendor/cache directory.
remote: Could not find aws-eventstream-1.1.0 in any of the sources
remote:
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to pure-crag-52432.
remote:
To https://git.heroku.com/pure-crag-52432.git
! [remote rejected] user-microposts -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/pure-crag-52432.git'
Apart from the fact that I don't know why heroku asks for the aws-eventstream-1.1.0 gem (because it is not in the Gemfile). I am not sure in how to fill in the field below for the storage.yml as given in this guide:
.
amazon:
service: S3
access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
region: <%= ENV['AWS_REGION'] %>
bucket: <%= ENV['AWS_BUCKET'] %>
Should I just leave it as it is and will the heroku configuration automatically be linked to this file?
I tried this (of course I changed all the answers a bit):
amazon:
service: S3
access_key_id: AKIAXOOFZZFFKMQD3CFD
secret_access_key: Cj8BcL452tDer5ryTPBRlan5LHOq76WXgvTDHmvc
region: region=eu-east-3
bucket: rails-tutorial-joost
These are my Heroku configurations:
➜ sample_app git:(user-microposts) heroku config
› Warning: heroku update available from 7.42.2 to 7.42.6.
=== pure-crag-52432 Config Vars
AWS_ACCESS_KEY_ID: AKIAXOOFOGFKKMQD3CFE
AWS_BUCKET: rails-tutorial-joost
AWS_REGION: region=eu-east-3
AWS_SECRET_ACCESS_KEY: Ci8BcL452tcxDer5ryTPBRlan5LHOq76WXgvTDHmvc
DATABASE_URL: postgres://blohftwliwefcg:6cfd2ccz2cc27301f86a1fe3c4686bb77784e67a62312d55c7e5751dfd61331c156#ec2-34-192-173-173.compute-1.amazonaws.com:5432/davr7msm9qlqh1
LANG: en_US.UTF-8
RACK_ENV: production
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: enabled
RAILS_MASTER_KEY: ./config/credentials/production.key
RAILS_SERVE_STATIC_FILES: enabled
SECRET_KEY_BASE: 32c6c8d057cc6c61071f18429e64zxczxc337d795bfa81abd04ed3e74377eff9e6cddb024967e6a0ffb9bc7de55b408ad71291ab5e518bcfe20bb5a7b44871d570cc61
SENDGRID_PASSWORD: bdsk6q67625964
SENDGRID_USERNAME: appasd6786712#heroku.com
I found a solution at the site of the heroku helpcenter:
If you are getting this output while upgrading:
remote: Bundler Output: You are trying to install in deployment mode after changing
remote: your Gemfile. Run bundle install elsewhere and add the
remote: updated Gemfile.lock to version control.
But locally running bundle install does not change your Gemfile.lock please make sure you’re using a recent version of bundler locally. We recommend 1.13.7 or above. Once you have upgraded your local bundler version please re-run bundle install and commit the results to git before deploying again.
If running bundle install and committing the results does not resolve the issue, check to see if you have any custom gem sources that use an ENV var. For example:
source "https://#{ENV['GEMFURY_URL'}#gem.fury.io/some-value-here/"
If you are using an ENV var to specify a username or password for a source in your Gemfile, make sure you are running bundle install locally with the same ENV var. Also verify and that the full URL including any username or password is present in your Gemfile.lock after bundling.
If you do not wish for your username and password to be checked into git, consider using bundler’s built in support for configuring username and password via a special ENV var.
Specifying BUNDLE_GEMFILE with relative path may not work https://github.com/bundler/bundler/pull/5815.