JhumanJ / OpnForm

Beautiful Open-Source Form Builder
https://opnform.com
GNU Affero General Public License v3.0
2.22k stars 296 forks source link

Issues 1.3.1 -> 1.3.2 (docker self-hosted) #541

Closed asrulmunir closed 2 months ago

asrulmunir commented 2 months ago

First of all, I think a new documentation needed for self-hosted 1.3.2.

Upgrading 1.3.1 to 1.3.2 by simply "docker-compose pull" will break the whole OpnForm.

I tried fresh installation and facing with issues:

$ docker logs -f opnform_api-worker_1

Backing up initial storage directory
mv: cannot move './storage' to '/etc/initial-storage': Device or resource busy
Initialising blank storage dir
cp: cannot stat '/etc/initial-storage': No such file or directory
chmod: cannot access '/persist/storage': No such file or directory
Waiting for DB to be ready
Running DB Migrations

   INFO  Nothing to migrate.  

Running app:init-project command
Users already exist in the database or the User table is not empty. Aborting initialization.
Starting server ./artisan queue:work

$ docker logs -f opnform_api_1

NOTICE: PHP message: [2024-08-27 00:33:08] local.DEBUG: Un-handled Exception: fopen(/usr/share/nginx/html/storage/framework/cache/data/96/6f/966f17c187043a268e4f6e8486bf2e3df886ae78): Failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): fopen(/usr/share/nginx/html/storage/framework/cache/data/96/6f/966f17c187043a268e4f6e8486bf2e3df886ae78): Failed to open stream: No such file or directory at /usr/share/nginx/html/vendor/laravel/framework/src/Illuminate/Filesystem/LockableFile.php:69)
[stacktrace]

$ docker logs -f opnform_ui_1

Warning: .env file not found
Running node node ./server/index.mjs
Listening on http://[::]:3000
[Vue Router warn]: Alias "/oauth/:provider/callback" and the original record: "/oauth/callback" must have the exact same param named "provider"
[Vue Router warn]: Alias "/settings/connections/callback/:service" and the original record: "/settings/connections" must have the exact same param named "service"
[Vue Router warn]: Alias "/oauth/:provider/callback" and the original record: "/oauth/callback" must have the exact same param named "provider"
[Vue Router warn]: Alias "/settings/connections/callback/:service" and the original record: "/settings/connections" must have the exact same param named "service"
JhumanJ commented 2 months ago

Hey @asrulmunir you're right unfortunately 1.3.2 introduces a breaking change as we've finalized migrating the structure if the project - you should have added a notice about that. For now please re-create the container from scratch following instructions