hocus-dev / hocus

πŸͺ„ Spin up ready-to-code, disposable dev environments on your own servers. Self-hosted alternative to Gitpod and Github Codespaces.
https://hocus.dev
MIT License
3.23k stars 82 forks source link

Cannot install on ubuntu 22.10 #124

Closed lazerg closed 1 year ago

lazerg commented 1 year ago

latest version: https://github.com/hocus-dev/hocus/commit/6dc0c21d951137dcdc492a4d65b94dd6dd11df5c

Server from DigitalOcean

root@lazerg:/var/www/hocus# HOCUS_HOSTNAME="localhost" ops/bin/local-up.sh
Building docker images πŸ‘·πŸ“¦
Building db-autosetup done in 2.13 s βœ…
Building keycloak done in 1.43 s βœ…
Building temporal-codec done in 2.22 s βœ…
Building ui done in 1.96 s βœ…
Building agent done in 279.81 s βœ…
Pulling docker images πŸ“₯ - βœ… in 37.14 s
Seeding the DB 🌱 - βœ… in 2.46 s
Starting the DB πŸ“™ - βœ… in 8.73 s
Starting Keycloak πŸ”‘ - βœ… in 32.67 s
Starting Temporal ☁️  - βœ… in 13.68 s
Starting Hocus πŸ§™πŸͺ„  - ❌ in 29.53

hocus-local-hocus-ui-1  | Prisma schema loaded from prisma/schema.prisma
hocus-local-hocus-ui-1  | Datasource "db": PostgreSQL database "rooms", schema "public" at "db:5432"
hocus-local-hocus-ui-1  | 
hocus-local-hocus-ui-1  | 
hocus-local-hocus-ui-1  | 38 migrations found in prisma/migrations
hocus-local-hocus-ui-1  | 
hocus-local-hocus-ui-1  | 
hocus-local-hocus-ui-1  | Applying migration `20220925182738_uuid`
hocus-local-hocus-ui-1  | Applying migration `20220925182923_user`
hocus-local-hocus-ui-1  | Applying migration `20221215151914_logs`
hocus-local-hocus-ui-1  | Applying migration `20221219184401_git`
hocus-local-hocus-ui-1  | Applying migration `20221220152544_git_branch`
hocus-local-hocus-ui-1  | Applying migration `20230103150633_project`
hocus-local-hocus-ui-1     | Applying migration `20230107154927_project_external_id`
hocus-local-hocus-ui-1     | Applying migration `20230112143235_workspace`
hocus-local-hocus-ui-1     | Applying migration `20230115194912_prebuild_status`
hocus-local-hocus-ui-1     | Applying migration `20230116180502_workspace_instance_index`
hocus-local-hocus-ui-1     | Applying migration `20230221135444_git_branch_external_id`
hocus-local-hocus-ui-1     | Applying migration `20230222101358_workspace_id_unique`
hocus-local-hocus-ui-1     | Applying migration `20230302150058_vm_task_external_id`
hocus-local-hocus-ui-1     | Applying migration `20230306155237_user_env_var_set`
hocus-local-hocus-ui-1     | Applying migration `20230306160822_env_var_external_id`
hocus-local-hocus-ui-1     | Applying migration `20230308092813_user_ssh_key`
hocus-local-hocus-ui-1     | Applying migration `20230310163538_i_hate_bash_too_much`
hocus-local-hocus-ui-1     | Applying migration `20230311214214_workspace_delete`
hocus-local-hocus-ui-1     | Applying migration `20230314182046_prebuild`
hocus-local-hocus-ui-1     | Applying migration `20230316180624_archive_prebuild_event`
hocus-local-hocus-ui-1     | Applying migration `20230320121907_prebuild_monitoring_workflow`
hocus-local-hocus-ui-1     | Applying migration `20230320172445_prebuild_pending_archive`
hocus-local-hocus-ui-1     | Applying migration `20230321120251_user_git_config`
hocus-local-hocus-ui-1     | Applying migration `20230322194347_user_active`
hocus-local-hocus-ui-1     | Applying migration `20230331104136_project_drive_ram_vcpu`
hocus-local-hocus-ui-1     | Applying migration `20230331115218_rm_prebuild_project_size`
hocus-local-hocus-ui-1     | Applying migration `20230412105459_repo_connection_status`
hocus-local-hocus-ui-1     | Applying migration `20230414140124_prebuild_system_error`
hocus-local-hocus-ui-1     | Applying migration `20230424131123_workspace_stopped_with_error`
hocus-local-hocus-ui-1     | Applying migration `20230425135113_git_object_to_branch`
hocus-local-hocus-ui-1     | Applying migration `20230427105252_prebuild_archive_after`
hocus-local-hocus-ui-1     | Applying migration `20230523142016_prebuild_event_workflow_id`
hocus-local-hocus-ui-1     | Applying migration `20230607174735_local_oci_image`
hocus-local-hocus-ui-1     | Applying migration `20230612142826_file_to_image`
hocus-local-hocus-ui-1     | Applying migration `20230613110250_buildfs_project_image`
hocus-local-hocus-ui-1     | Applying migration `20230615134541_workspace_instance`
hocus-local-hocus-ui-1     | Applying migration `20230622160500_prebuild_workspace_drive_size`
hocus-local-hocus-ui-1     | Applying migration `20230706101524_buildfs_external_id`
hocus-local-hocus-ui-1     | 
hocus-local-hocus-ui-1     | 
hocus-local-hocus-ui-1     | The following migrations have been applied:
hocus-local-hocus-ui-1     | 
hocus-local-hocus-ui-1     | 
hocus-local-hocus-ui-1     | migrations/
hocus-local-hocus-ui-1     |   └─ 20220925182738_uuid/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20220925182923_user/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20221215151914_logs/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20221219184401_git/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20221220152544_git_branch/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230103150633_project/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230107154927_project_external_id/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230112143235_workspace/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230115194912_prebuild_status/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230116180502_workspace_instance_index/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-agent-1  | Trying to load target_core_user
hocus-local-hocus-agent-1  | Trying to load tcm_loop
hocus-local-hocus-agent-1  | SCSI scan mode not in sync mode, enabling sync mode
hocus-local-hocus-agent-1  | Starting OpenBSD Secure Shell server: sshd.
hocus-local-hocus-agent-1  | net.ipv4.conf.vpeer-vms.proxy_arp = 1
hocus-local-hocus-agent-1  | net.ipv6.conf.vpeer-vms.disable_ipv6 = 1
hocus-local-hocus-agent-1  | net.ipv4.conf.vpeer-ssh-vms.proxy_arp = 1
hocus-local-hocus-agent-1  | net.ipv6.conf.vpeer-ssh-vms.disable_ipv6 = 1
hocus-local-hocus-agent-1  | net.ipv4.conf.veth-vms.proxy_arp = 1
hocus-local-hocus-agent-1  | net.ipv6.conf.veth-vms.disable_ipv6 = 1
hocus-local-hocus-agent-1  | 2023-07-18T09:58:55.163Z [INFO] Found TCMU: Target Engine Core ConfigFS Infrastructure v5.0 on Linux/x86_64 on 5.19.0-23-generic
hocus-local-hocus-agent-1  | 
hocus-local-hocus-agent-1  | 
hocus-local-hocus-agent-1  | 2023-07-18T09:58:55.384Z [INFO] Found TCM LOOP: TCM Loopback Fabric module v2.1-rc2
hocus-local-hocus-agent-1  | 
hocus-local-hocus-agent-1  | 
hocus-local-hocus-agent-1  | Not setting up any projects
hocus-local-hocus-agent-1  | 2023-07-18T09:58:56.320Z [INFO] Creating worker {
hocus-local-hocus-agent-1  |   options: {
hocus-local-hocus-agent-1  |     namespace: 'default',
hocus-local-hocus-agent-1  |     identity: '1@fb3c2480ef72',
hocus-local-hocus-agent-1  |     shutdownGraceTime: 0,
hocus-local-hocus-agent-1  |     maxConcurrentActivityTaskExecutions: 100,
hocus-local-hocus-agent-1  |     maxConcurrentLocalActivityExecutions: 100,
hocus-local-hocus-agent-1  |     enableNonLocalActivities: true,
hocus-local-hocus-agent-1  |     maxConcurrentWorkflowTaskExecutions: 100,
hocus-local-hocus-agent-1  |     stickyQueueScheduleToStartTimeout: '10s',
hocus-local-hocus-agent-1  |     maxHeartbeatThrottleInterval: '60s',
hocus-local-hocus-agent-1  |     defaultHeartbeatThrottleInterval: '30s',
hocus-local-hocus-agent-1  |     isolateExecutionTimeout: '5s',
hocus-local-hocus-agent-1  |     workflowThreadPoolSize: 8,
hocus-local-hocus-agent-1  |     maxCachedWorkflows: 250,
hocus-local-hocus-agent-1  |     enableSDKTracing: false,
hocus-local-hocus-agent-1  |     showStackTraceSources: false,
hocus-local-hocus-agent-1  |     reuseV8Context: false,
hocus-local-hocus-agent-1  |     debugMode: false,
hocus-local-hocus-agent-1  |     interceptors: { activityInbound: [Array], workflowModules: [Array] },
hocus-local-hocus-agent-1  |     sinks: { defaultWorkerLogger: [Object] },
hocus-local-hocus-agent-1  |     connection: NativeConnection {
hocus-local-hocus-agent-1  |       nativeClient: [External: 4ef8c30],
hocus-local-hocus-agent-1  |       referenceHolders: Set(0) {}
hocus-local-hocus-agent-1  |     },
hocus-local-hocus-agent-1  |     workflowBundle: { codePath: '/app/workflow-bundle.js' },
hocus-local-hocus-agent-1  |     activities: {
hocus-local-hocus-agent-1  |       fetchRepository: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       buildfs: [Function (anonymous)],
hocus-local-hocus-agent-1  |       checkoutAndInspect: [Function (anonymous)],
hocus-local-hocus-agent-1  |       prebuild: [Function (anonymous)],
hocus-local-hocus-ui-1     |   └─ 20230221135444_git_branch_external_id/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230222101358_workspace_id_unique/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230302150058_vm_task_external_id/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230306155237_user_env_var_set/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230306160822_env_var_external_id/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230308092813_user_ssh_key/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230310163538_i_hate_bash_too_much/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230311214214_workspace_delete/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230314182046_prebuild/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230316180624_archive_prebuild_event/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230320121907_prebuild_monitoring_workflow/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230320172445_prebuild_pending_archive/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230321120251_user_git_config/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230322194347_user_active/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230331104136_project_drive_ram_vcpu/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230331115218_rm_prebuild_project_size/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230412105459_repo_connection_status/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230414140124_prebuild_system_error/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230424131123_workspace_stopped_with_error/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230425135113_git_object_to_branch/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230427105252_prebuild_archive_after/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230523142016_prebuild_event_workflow_id/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230607174735_local_oci_image/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230612142826_file_to_image/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230613110250_buildfs_project_image/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230615134541_workspace_instance/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230622160500_prebuild_workspace_drive_size/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |   └─ 20230706101524_buildfs_external_id/
hocus-local-hocus-ui-1     |     └─ migration.sql
hocus-local-hocus-ui-1     |       
hocus-local-hocus-ui-1     | All migrations have been successfully applied.
hocus-local-hocus-ui-1     | npm notice 
hocus-local-hocus-ui-1     | npm notice New major version of npm available! 8.19.4 -> 9.8.0
hocus-local-hocus-ui-1     | npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.8.0>
hocus-local-hocus-ui-1     | npm notice Run `npm install -g npm@9.8.0` to update!
hocus-local-hocus-ui-1     | npm notice 
hocus-local-hocus-ui-1     | Using 'form_post' for response_mode may cause issues for you logging in over http, see https://github.com/auth0/express-openid-connect/blob/master/FAQ.md
hocus-local-hocus-ui-1     | Express server listening on port 3000
hocus-local-hocus-agent-1  |       changePrebuildEventStatus: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       createWorkspace: [Function (anonymous)],
hocus-local-hocus-agent-1  |       startWorkspace: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       stopWorkspace: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       getOrCreateBuildfsEvents: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       createPrebuildImages: [Function (anonymous)],
hocus-local-hocus-agent-1  |       getWorkspaceInstanceStatus: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       addProjectAndRepository: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       getRepositoryProjects: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       updateGitBranchesAndObjects: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       getDefaultBranch: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       deleteWorkspace: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       getOrCreatePrebuildEvents: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       initPrebuildEvents: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       getPrebuildEvents: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       reservePrebuildEvent: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       removePrebuildEventReservation: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       waitForPrebuildEventReservations: [Function (anonymous)],
hocus-local-hocus-agent-1  |       markPrebuildEventAsArchived: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       deleteLocalPrebuildEventFiles: [Function (anonymous)],
hocus-local-hocus-agent-1  |       deleteRemovablePrebuildEvents: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       getArchivablePrebuildEvents: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       saveGitRepoConnectionStatus: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       cleanUpAfterPrebuildError: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       cleanUpWorkspaceInstanceLocal: [Function (anonymous)],
hocus-local-hocus-agent-1  |       signalWithStartLockWorkflow: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       getWorkflowStatus: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       cleanUpWorkspaceInstanceDb: [Function (anonymous)],
hocus-local-hocus-agent-1  |       createPrebuildEvent: [Function (anonymous)],
hocus-local-hocus-agent-1  |       signalWithStartWaitWorkflow: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       getProjectsRepository: [AsyncFunction (anonymous)],
hocus-local-hocus-agent-1  |       removeContentWithPrefix: [Function (anonymous)]
hocus-local-hocus-agent-1  |     },
hocus-local-hocus-agent-1  |     taskQueue: 'main',
hocus-local-hocus-agent-1  |     dataConverter: { payloadConverterPath: '/app/data-converter.js' },
hocus-local-hocus-agent-1  |     shutdownGraceTimeMs: 0,
hocus-local-hocus-agent-1  |     shutdownForceTimeMs: undefined,
hocus-local-hocus-agent-1  |     stickyQueueScheduleToStartTimeoutMs: 10000,
hocus-local-hocus-agent-1  |     isolateExecutionTimeoutMs: 5000,
hocus-local-hocus-agent-1  |     maxHeartbeatThrottleIntervalMs: 60000,
hocus-local-hocus-agent-1  |     defaultHeartbeatThrottleIntervalMs: 30000,
hocus-local-hocus-agent-1  |     loadedDataConverter: {
hocus-local-hocus-agent-1  |       payloadConverter: [CompositePayloadConverter2],
hocus-local-hocus-agent-1  |       failureConverter: [DefaultFailureConverter],
hocus-local-hocus-agent-1  |       payloadCodecs: []
hocus-local-hocus-agent-1  |     }
hocus-local-hocus-agent-1  |   }
hocus-local-hocus-agent-1  | }
hocus-local-hocus-agent-1  | 2023-07-18T09:59:07.975865Z  INFO temporal_sdk_core::worker: Initializing worker task_queue=main namespace=default
hocus-local-hocus-agent-1  | Starting worker...
hocus-local-hocus-agent-1  | 2023-07-18T09:59:07.988Z [INFO] Worker state changed { state: 'RUNNING' }
 Container hocus-local-hocus-agent-1  Creating
 Container hocus-local-hocus-ui-1  Creating
 Container hocus-local-hocus-agent-1  Created
 Container hocus-local-hocus-ui-1  Created
 Container hocus-local-hocus-agent-1  Starting
 Container hocus-local-hocus-ui-1  Starting
 Container hocus-local-hocus-agent-1  Started
 Container hocus-local-hocus-ui-1  Started
 Container hocus-local-hocus-ui-1  Waiting
 Container hocus-local-hocus-agent-1  Waiting
 Container hocus-local-hocus-ui-1  Healthy
container hocus-local-hocus-agent-1 is unhealthy

Above you will find the logs
Please report this problem here
πŸ™πŸ™πŸ™  https://github.com/hocus-dev/hocus/issues/new/choose  πŸ™πŸ™πŸ™
gorbak25 commented 1 year ago

@lazerg Thank you for checking out Hocus. From the logs it looks like the agent start timeout was too small. I've pushed a change which increases that timeout, please try running Hocus again with the new master and feel free to reopen if the issue persists.

lazerg commented 1 year ago

Hey @gorbak25

I tried HOCUS_HOSTNAME="134.122.64.201" ops/bin/local-up.sh and went to 134.122.64.201:3000 got such error

Screenshot 2023-07-19 at 03 29 36