Closed meonkeys closed 3 months ago
@meonkeys does it work after you remove -u 1001:1001 ?
Yes.
What's the resolution? fixed / won't fix / not an issue / etc.?
@meonkeys please reopen with more details if you still have any issues deploying (i thought 'yes' means that the issue has been fixed by removing the -u flag)
Ah, cool. And thanks--I was able to deploy (in a non-root container) by manually creating my own docuseal/
folder and docuseal/docuseal.env
file based on what I found in the source. I'm still curious why it fails when running non-root, but it sounds like that is unsupported? I'm sure I can make it work on my end somehow.
I agree omitting -u|--user
(running as root assuming a default Docker host setup) is an acceptable workaround for most folks. I'm still wondering if you intend for what I originally reported (running DocuSign as a non-root Docker container) to work, or if I'm doing something unsupported. I would like to include -u|--user
but if you don't intend for that to work, I won't expect it to work.
@meonkeys the reported issue is not related to the docuseal app - it's related to linux/docker configurations and permissions
I'm trying to get 1.6.2 running in Docker with sqlite in a non-root container. Is this supported?
docuseal/docuseal:1.6.2
docker-buildx
version0.12.1-0ubuntu1~22.04.1
installedRepro steps:
sudo groupadd e-sign
(got uid 1001)sudo useradd --shell /usr/sbin/nologin --no-create-home --gid e-sign e-sign
(got gid 1001)docker run --rm -it --name docuseal -p 3000:3000 -u 1001:1001 -v e-sign:/data docuseal/docuseal
I'm expecting it to create a default
docuseal.env
file and sqlite files in/data/docuseal/
, but instead I'm seeing this:(click to expand)
``` Puma starting in single mode... * Puma version: 6.4.2 (ruby 3.3.1-p55) ("The Eagle of Durango") * Min threads: 15 * Max threads: 15 * Environment: production * PID: 1 ! Unable to load application: ActiveRecord::StatementInvalid: SQLite3::ReadOnlyException: attempt to write a readonly database bundler: failed to load command: puma (/usr/local/bundle/bin/puma) /usr/local/bundle/gems/sqlite3-1.7.3/lib/sqlite3/database.rb:177:in `initialize': SQLite3::ReadOnlyException: attempt to write a readonly database (ActiveRecord::StatementInvalid) from /usr/local/bundle/gems/sqlite3-1.7.3/lib/sqlite3/database.rb:177:in `new' from /usr/local/bundle/gems/sqlite3-1.7.3/lib/sqlite3/database.rb:177:in `prepare' from /usr/local/bundle/gems/sqlite3-1.7.3/lib/sqlite3/database.rb:221:in `execute' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/sqlite3/database_statements.rb:118:in `block (2 levels) in raw_execute' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:1028:in `block in with_raw_connection' from /usr/local/bundle/gems/activesupport-7.1.3.2/lib/active_support/concurrency/null_lock.rb:9:in `synchronize' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:1000:in `with_raw_connection' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/sqlite3/database_statements.rb:117:in `block in raw_execute' from /usr/local/bundle/gems/activesupport-7.1.3.2/lib/active_support/notifications/instrumenter.rb:58:in `instrument' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:1143:in `log' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/sqlite3/database_statements.rb:116:in `raw_execute' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/sqlite3_adapter.rb:733:in `configure_connection' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:693:in `block (2 levels) in reconnect!' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/database_statements.rb:376:in `reset_transaction' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:691:in `block in reconnect!' from /usr/local/bundle/gems/activesupport-7.1.3.2/lib/active_support/concurrency/null_lock.rb:9:in `synchronize' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:684:in `reconnect!' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:788:in `verify!' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:795:in `connect!' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:1001:in `block in with_raw_connection' from /usr/local/bundle/gems/activesupport-7.1.3.2/lib/active_support/concurrency/null_lock.rb:9:in `synchronize' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:1000:in `with_raw_connection' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/sqlite3/database_statements.rb:33:in `block in internal_exec_query' from /usr/local/bundle/gems/activesupport-7.1.3.2/lib/active_support/notifications/instrumenter.rb:58:in `instrument' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:1143:in `log' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/sqlite3/database_statements.rb:32:in `internal_exec_query' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `query' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/database_statements.rb:100:in `query_value' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/sqlite3_adapter.rb:418:in `get_database_version' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/schema_cache.rb:374:in `database_version' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/schema_cache.rb:70:in `database_version' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/schema_cache.rb:200:in `database_version' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:871:in `database_version' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/sqlite3_adapter.rb:422:in `check_version' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:678:in `new_connection' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:723:in `checkout_new_connection' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:702:in `try_to_checkout_new_connection' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:654:in `acquire_connection' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:353:in `checkout' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:182:in `connection' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_adapters/abstract/connection_handler.rb:246:in `retrieve_connection' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_handling.rb:287:in `retrieve_connection' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/connection_handling.rb:254:in `connection' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/tasks/database_tasks.rb:510:in `migration_connection' from /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/tasks/database_tasks.rb:243:in `migrate' from /app/config/initializers/migrate.rb:4:in `block in