stefanpejcic / OpenPanel

A highly customizable web hosting control panel built with Docker 🐳
https://openpanel.com
216 stars 33 forks source link

WP autoinstall stuck at importing tables #203

Closed stefanpejcic closed 1 month ago

stefanpejcic commented 1 month ago

OpenPanel version(s) affected

0.3.2

What OS are you using?

Ubuntu

Description

stack

How to reproduce

Install wp

Possible Solution

No response

Additional Context

No response

stefanpejcic commented 1 month ago

cant reproduce on 0.3.2 - only 0.3.1 demo

may add a timeout

    yield json.dumps({"status": "Importing WordPress tables in the database"})
    docker_wp_install_cmd = f"docker exec {current_username} bash -c 'wp core install --url=https://{selected_domain} --title=\"{website_name}\" --admin_user={admin_username} --admin_password=\"{admin_password}\" --admin_email={admin_email} --path={install_path} --allow-root'"
    subprocess.run(docker_wp_install_cmd, shell=True)