Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

Docker, chatwoot TypeError: expected str, bytes or os.PathLike object, not NoneType

$
0
0

I am trying to install chatwoot on docker using theyr guide: https://www.chatwoot.com/docs/deployment/deploy-chatwoot-with-docker

I edited the .env and the docker-composer.yaml

The .env file

# Used to verify the integrity of signed cookies. so ensure a secure value is setSECRET_KEY_BASE=*****Secret# Replace with the URL you are planning to use for your appFRONTEND_URL=http://localhost:3000# If the variable is set, all non-authenticated pages would fallback to the default locale.# Whenever a new account is created, the default language will be DEFAULT_LOCALE instead of en# DEFAULT_LOCALE=en# If you plan to use CDN for your assets, set Asset CDN Host#ASSET_CDN_HOST=# Force all access to the app over SSL, default is set to falseFORCE_SSL=false# This lets you control new sign ups on your chatwoot installation# true : default option, allows sign ups# false : disables all the end points related to sign ups# api_only: disables the UI for signup, but you can create sign ups via the account apisENABLE_ACCOUNT_SIGNUP=false# Redis configREDIS_URL=redis://redis:6379REDIS_PASSWORD=****password# Postgres Database config variablesPOSTGRES_HOST=chatwootPOSTGRES_USERNAME=postgresPOSTGRES_PASSWORD=***passwordRAILS_ENV=productionRAILS_MAX_THREADS=5# The email from which all outgoing emails are sentMAILER_SENDER_EMAIL=BrandName <email@yourdomain.com>#SMTP domain key is set up for HELO checkingSMTP_DOMAIN=***.comSMTP_ADDRESS=smtp.sendgrid.netSMTP_PORT=587SMTP_USERNAME=chatwootSMTP_PASSWORD=****keySMTP_AUTHENTICATION=plainSMTP_ENABLE_STARTTLS_AUTO=trueSMTP_OPENSSL_VERIFY_MODE=peer# Mail Incoming# This is the domain set for the reply emails when conversation continuity is enabledMAILER_INBOUND_EMAIL_DOMAIN=yourdomain.com# Set this to appropriate ingress channel with regards to incoming emails# Possible values are :# relay for Exim, Postfix, Qmail# mailgun for Mailgun# mandrill for Mandrill# postmark for Postmark# sendgrid for SendgridRAILS_INBOUND_EMAIL_SERVICE=sendgrid# Use one of the following based on the email ingress service#RAILS_INBOUND_EMAIL_PASSWORD=#MAILGUN_INGRESS_SIGNING_KEY=#MANDRILL_INGRESS_API_KEY=# StorageACTIVE_STORAGE_SERVICE=local# Amazon S3S3_BUCKET_NAME=s3-chatwootAWS_ACCESS_KEY_ID=****idAWS_SECRET_ACCESS_KEY=****keyAWS_REGION=***region# Sentry#SENTRY_DSN=# Log settings# Disable if you want to write logs to a fileRAILS_LOG_TO_STDOUT=trueLOG_LEVEL=infoLOG_SIZE2048### This environment variables are only required if you are setting up social media channels# Facebook#FB_VERIFY_TOKEN=#FB_APP_SECRET=#FB_APP_ID=# Twitter#TWITTER_APP_ID=#TWITTER_CONSUMER_KEY=#TWITTER_CONSUMER_SECRET=#TWITTER_ENVIRONMENT=#slack integration#SLACK_CLIENT_ID=#SLACK_CLIENT_SECRET=### Change this env variable only if you are using a custom build mobile app## Mobile app env variablesIOS_APP_ID=6C953F3RX2.com.chatwoot.app#IOS_APP_IDENTIFIER=1495796682## Push NotificationVAPID_PUBLIC_KEY=**keyVAPID_PRIVATE_KEY=***key## for mobile apps# FCM_SERVER_KEY=## Bot CustomizationsUSE_INBOX_AVATAR_FOR_BOT=true## IP look up configuration## works only on accounts with ip look up feature enabled# IP_LOOKUP_SERVICE=geoip2# maxmindb api key to use geoip2 service# IP_LOOKUP_API_KEY=## Development Only Config# if you want to use letter_opener for local emails# LETTER_OPENER=true

docker-compose.yaml

version: '3'services:  base: &base    image: chatwoot/chatwoot:latest    env_file: .env ## Change this file for customized env variables  rails:<<: *base    depends_on:      - postgres      - redis    ports:      - 3000:3000    environment:      - NODE_ENV=production      - RAILS_ENV=production    entrypoint: docker/entrypoints/rails.sh    command: ['bundle', 'exec', 'rails', 's', '-p', '3000', '-b', '0.0.0.0']  sidekiq:<<: *base    depends_on:      - postgres      - redis    environment:      - NODE_ENV=production      - RAILS_ENV=production    command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml']  postgres:    image: postgres:12    restart: always    ports:      - '5432:5432'    volumes:      - /data/postgres:/var/lib/postgresql/data    environment:      - POSTGRES_DB=chatwoot      - POSTGRES_USER=postgres      # Please provide your own password.      - POSTGRES_PASSWORD=***key  redis:    image: redis:alpine    restart: always    volumes:      - /data/redis:/data    ports:      - '6379:6379'

When i run:docker-compose run --rm rails bundle exec rails db:chatwoot_prepare

i have this error:

filename = fspath(filename)  # Does type-checking of `filename`.TypeError: expected str, bytes or os.PathLike object, not NoneType

Server logs

Starting ubuntu_redis_1    ... doneStarting ubuntu_postgres_1 ... doneTraceback (most recent call last):  File "/usr/bin/docker-compose", line 11, in <module>    load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-compose')()  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 72, in main    command()  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 128, in perform_command    handler(command, command_options)  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 896, in run    run_one_off_container(  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1376, in run_one_off_container    exit_code = call_docker(  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1498, in call_docker    return subprocess.call(args, env=environment)  File "/usr/lib/python3.8/subprocess.py", line 340, in call    with Popen(*popenargs, **kwargs) as p:  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__    self._execute_child(args, executable, preexec_fn, close_fds,  File "/usr/lib/python3.8/subprocess.py", line 1624, in _execute_child    env_list.append(k + b'='+ os.fsencode(v))  File "/usr/lib/python3.8/os.py", line 806, in fsencode    filename = fspath(filename)  # Does type-checking of `filename`.TypeError: expected str, bytes or os.PathLike object, not NoneType

Did someone can help on that ?


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>