Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Docker-compose issue on M1 Mac #271

Open
1 task done
mslmn opened this issue May 23, 2023 · 4 comments
Open
1 task done

[Bug]: Docker-compose issue on M1 Mac #271

mslmn opened this issue May 23, 2023 · 4 comments
Assignees
Labels

Comments

@mslmn
Copy link

mslmn commented May 23, 2023

What happened?

I'm getting an error when I try to run the docker-compose file

HPX Version

1.0.0-alpha

OS

MacOS 13.3.1

Browser

No response

Relevant HPX log output (activity.log, error.log or debug.log)

2023-05-23 20:19:52 hpx-happypandax-1  | TERM environment variable not set.
2023-05-23 20:20:12 hpx-happypandax-1  | HPX_DATA was defined, data will now be at: /data 
2023-05-23 20:20:12 hpx-happypandax-1  | 
2023-05-23 20:20:12 hpx-happypandax-1  |  _  _                          ___                 _        __  __
2023-05-23 20:20:12 hpx-happypandax-1  | | || | __ _  _ __  _ __  _  _ | _ \ __ _  _ _   __| | __ _  \ \/ /
2023-05-23 20:20:12 hpx-happypandax-1  | | __ |/ _` || '_ \| '_ \| || ||  _// _` || ' \ / _` |/ _` |  >  < 
2023-05-23 20:20:12 hpx-happypandax-1  | |_||_|\__,_|| .__/| .__/ \_, ||_|  \__,_||_||_|\__,_|\__,_| /_/\_\
2023-05-23 20:20:12 hpx-happypandax-1  |             |_|   |_|    |__/                                     
2023-05-23 20:20:12 hpx-happypandax-1  |        . .-. .. ? .-.. .- -.-. ..- ... ? ... .... .. -. --- -... ..- 
2023-05-23 20:20:12 hpx-happypandax-1  | 
2023-05-23 20:20:12 hpx-happypandax-1  | Running HPX (Momo release) version 1.0.0-alpha.2 
2023-05-23 20:20:13 hpx-happypandax-1  | Checking for backup restore capability... 
2023-05-23 20:20:13 hpx-happypandax-1  | Checking for backup restore capability...OK (*¯︶¯*) 
2023-05-23 20:20:13 hpx-happypandax-1  | Backing up settings... 
2023-05-23 20:20:13 hpx-happypandax-1  | Successfully backed up settings 
2023-05-23 20:20:13 hpx-happypandax-1  | Backing up internals... 
2023-05-23 20:20:13 hpx-happypandax-1  | Successfully backed up internals 
2023-05-23 20:20:13 hpx-happypandax-1  | Backing up sqlite db... 
2023-05-23 20:20:13 hpx-happypandax-1  | Successfully backed up sqlite db 
2023-05-23 20:20:14 hpx-happypandax-1  | Using sqlite database 
2023-05-23 20:20:15 hpx-happypandax-1  | Starting up, please wait... 
2023-05-23 20:21:56 hpx-happypandax-1  | Failed to configure built-in ESearch server, process exit code: still running; also see /data/logs/esearch_stdout.log 
2023-05-23 20:21:56 hpx-happypandax-1  | Could not establish connection to ESearch server, aborting. 
2023-05-23 20:21:56 hpx-happypandax-1  | Exiting in 3.14 seconds... 
2023-05-23 20:22:04 hpx-happypandax-1  | TERM environment variable not set.

Relevant web client log output (client.log)

No response

Did you check for similar issues?

  • I checked and didn't find similar issues.
@twiddli
Copy link
Member

twiddli commented May 26, 2023

Weird. Can you check /data/logs/esearch_stdout.log and see what it says?
Also, idk much about M1 and docker differences. Would you happen to know if the images need to be built specially for ARM?

@mslmn
Copy link
Author

mslmn commented May 30, 2023

That could be an issue but I've come across other docker images not built for ARM specifically and adding platform: linux/amd64 to the docker-compose file usually gets them to work.

@mslmn
Copy link
Author

mslmn commented May 30, 2023

Here's my docker-compose file:

version: '3'

services:
  happypandax:
    image: twiddly/happypandax:1.0.0-alpha
    # start this container automatically on boot
    restart: always
    platform: linux/amd64
    ports:
      - "7006:7006"
      - "7007:7007"
      - "7008:7008"
    volumes:
      - ./data:/data
      - ./content:/content

My config.yaml file:

import:
    skip_existing_galleries: true
    transparent_nested_folders: true
watch:
    enable: true
    dirs:
    - /content
    options:
        /content:
            import.scan_on_startup: true
plugin:
    plugin_dir: /data/plugins

I get this error when I run the docker-compose file:

2023-05-30 12:31:37 hpx-happypandax-1  | TERM environment variable not set.
2023-05-30 12:31:55 hpx-happypandax-1  | HPX_DATA was defined, data will now be at: /data 
2023-05-30 12:31:55 hpx-happypandax-1  | 
2023-05-30 12:31:55 hpx-happypandax-1  |  _  _                          ___                 _        __  __
2023-05-30 12:31:55 hpx-happypandax-1  | | || | __ _  _ __  _ __  _  _ | _ \ __ _  _ _   __| | __ _  \ \/ /
2023-05-30 12:31:55 hpx-happypandax-1  | | __ |/ _` || '_ \| '_ \| || ||  _// _` || ' \ / _` |/ _` |  >  < 
2023-05-30 12:31:55 hpx-happypandax-1  | |_||_|\__,_|| .__/| .__/ \_, ||_|  \__,_||_||_|\__,_|\__,_| /_/\_\
2023-05-30 12:31:55 hpx-happypandax-1  |             |_|   |_|    |__/                                     
2023-05-30 12:31:55 hpx-happypandax-1  |        .- .-.. -... . -.. --- ? .-. .. .- ... ? ... .... .. -. --- -... ..- 
2023-05-30 12:31:55 hpx-happypandax-1  | 
2023-05-30 12:31:55 hpx-happypandax-1  | Running HPX (Momo release) version 1.0.0-alpha.2 
2023-05-30 12:31:55 hpx-happypandax-1  | Checking for backup restore capability... 
2023-05-30 12:31:55 hpx-happypandax-1  | Checking for backup restore capability...OK (*¯︶¯*) 
2023-05-30 12:31:55 hpx-happypandax-1  | Using sqlite database 
2023-05-30 12:31:56 hpx-happypandax-1  | Starting up, please wait... 
2023-05-30 12:34:03 hpx-happypandax-1  | 2023-05-30 11:34:03,960--INFO   ::HPX Pixie 1:: happypanda.main: Finished intitializing 
2023-05-30 12:34:03 hpx-happypandax-1  | 2023-05-30 11:34:03,970--INFO   ::HPX Pixie 3:: happypanda.main: Finished intitializing 
2023-05-30 12:34:04 hpx-happypandax-1  | 2023-05-30 11:34:04,114--INFO   ::HPX Pixie 2:: happypanda.main: Finished intitializing 
2023-05-30 12:34:04 hpx-happypandax-1  | 2023-05-30 11:34:04,121--INFO   ::HPX Pixie 4:: happypanda.main: Finished intitializing 
2023-05-30 12:34:04 hpx-happypandax-1  | Loading plugins from path: /data/plugins 
2023-05-30 12:34:04 hpx-happypandax-1  | Loading plugins from path: plugins 
2023-05-30 12:34:04 hpx-happypandax-1  | Loading 8 plugins 
2023-05-30 12:34:04 hpx-happypandax-1  | OSError(38, 'Function not implemented')
2023-05-30 12:34:05 hpx-happypandax-1  | Traceback (most recent call last):
2023-05-30 12:34:05 hpx-happypandax-1  |   File "run.py", line 15, in <module>
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/main.py", line 821, in start
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/main.py", line 373, in configure_plugins
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/core/command.py", line 230, in emit
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/main.py", line 362, in <lambda>
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/main.py", line 172, in init_commands_after_plugin
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/core/command.py", line 892, in run
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/core/command.py", line 677, in _run
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/core/command.py", line 927, in __main_wrap
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/core/commands/item_cmd.py", line 673, in main
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/core/command.py", line 892, in run
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/core/command.py", line 677, in _run
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/core/command.py", line 927, in __main_wrap
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/core/commands/io_cmd.py", line 1706, in main
2023-05-30 12:34:05 hpx-happypandax-1  |   File "happypanda/core/fswatch.py", line 201, in start
2023-05-30 12:34:05 hpx-happypandax-1  |   File "watchdog/observers/api.py", line 262, in start
2023-05-30 12:34:05 hpx-happypandax-1  |   File "watchdog/utils/__init__.py", line 93, in start
2023-05-30 12:34:05 hpx-happypandax-1  |   File "watchdog/observers/inotify.py", line 118, in on_thread_start
2023-05-30 12:34:05 hpx-happypandax-1  |   File "watchdog/observers/inotify_buffer.py", line 35, in __init__
2023-05-30 12:34:05 hpx-happypandax-1  |   File "watchdog/observers/inotify_c.py", line 155, in __init__
2023-05-30 12:34:05 hpx-happypandax-1  |   File "watchdog/observers/inotify_c.py", line 406, in _raise_error
2023-05-30 12:34:05 hpx-happypandax-1  | OSError: [Errno 38] Function not implemented
2023-05-30 12:34:05 hpx-happypandax-1  | [1] Failed to execute script 'run' due to unhandled exception!
2023-05-30 12:34:05 hpx-happypandax-1  | Sentry is attempting to send 0 pending error messages
2023-05-30 12:34:05 hpx-happypandax-1  | Waiting up to 2 seconds
2023-05-30 12:34:05 hpx-happypandax-1  | Press Ctrl-C to quit
2023-05-30 12:34:11 hpx-happypandax-1  | TERM environment variable not set.
2023-05-30 12:34:31 hpx-happypandax-1  | HPX_DATA was defined, data will now be at: /data 
2023-05-30 12:34:31 hpx-happypandax-1  | 
2023-05-30 12:34:31 hpx-happypandax-1  |  _  _                          ___                 _        __  __
2023-05-30 12:34:31 hpx-happypandax-1  | | || | __ _  _ __  _ __  _  _ | _ \ __ _  _ _   __| | __ _  \ \/ /
2023-05-30 12:34:31 hpx-happypandax-1  | | __ |/ _` || '_ \| '_ \| || ||  _// _` || ' \ / _` |/ _` |  >  < 
2023-05-30 12:34:31 hpx-happypandax-1  | |_||_|\__,_|| .__/| .__/ \_, ||_|  \__,_||_||_|\__,_|\__,_| /_/\_\
2023-05-30 12:34:31 hpx-happypandax-1  |             |_|   |_|    |__/                                     
2023-05-30 12:34:31 hpx-happypandax-1  |        -.-- .- -- .. ? . -- .. .-.. .. .- ? -- .- -.-- --- .. 
2023-05-30 12:34:31 hpx-happypandax-1  | 
2023-05-30 12:34:31 hpx-happypandax-1  | Running HPX (Momo release) version 1.0.0-alpha.2 
2023-05-30 12:34:32 hpx-happypandax-1  | Checking for backup restore capability... 
2023-05-30 12:34:32 hpx-happypandax-1  | Checking for backup restore capability...OK (*¯︶¯*) 
2023-05-30 12:34:32 hpx-happypandax-1  | Using sqlite database 
2023-05-30 12:34:33 hpx-happypandax-1  | Starting up, please wait... 
2023-05-30 12:36:14 hpx-happypandax-1  | Failed to configure built-in ESearch server, process exit code: still running; also see /data/logs/esearch_stdout.log 
2023-05-30 12:36:14 hpx-happypandax-1  | Could not establish connection to ESearch server, aborting. 
2023-05-30 12:36:15 hpx-happypandax-1  | Exiting in 3.14 seconds... 
2023-05-30 12:36:20 hpx-happypandax-1  | TERM environment variable not set.
2023-05-30 12:36:36 hpx-happypandax-1  | HPX_DATA was defined, data will now be at: /data

@mslmn
Copy link
Author

mslmn commented May 30, 2023

The esearch_stdout.log file is empty

the error.log file says this

2023-05-30 11:36:14--ERROR  ::MainProcess:: happypanda.main: Failed to configure built-in ESearch server, process exit code: still running; also see /data/logs/esearch_stdout.log 
2023-05-30 11:36:14--WARNING ::MainProcess:: happypanda.main: Could not establish connection to ESearch server, aborting. 
2023-05-30 11:36:15--ERROR  ::MainProcess:: happypanda.main: Exiting in 3.14 seconds... 
2023-05-30 11:38:19--ERROR  ::MainProcess:: happypanda.main: Failed to configure built-in ESearch server, process exit code: still running; also see /data/logs/esearch_stdout.log 
2023-05-30 11:38:19--WARNING ::MainProcess:: happypanda.main: Could not establish connection to ESearch server, aborting. 
2023-05-30 11:38:19--ERROR  ::MainProcess:: happypanda.main: Exiting in 3.14 seconds... 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants