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

failed to deploy on remote server #86

Open
sagerenn opened this issue Jan 28, 2023 · 4 comments · May be fixed by #133
Open

failed to deploy on remote server #86

sagerenn opened this issue Jan 28, 2023 · 4 comments · May be fixed by #133

Comments

@sagerenn
Copy link

image

cannot find the js:

http://xxxxx/app-dist/1.0.163/tabby-web-container/dist/preload.js
http://xxxxx/app-dist/1.0.163/tabby-web-container/dist/bundle.js

running cmd:

docker run -d --name tabby      -e DATABASE_URL=sqlite:////app-dist/database.sqlite3   -p 30000:80   -e PORT=80 -e DEBUG=True -e APP_DIST_STORAGE=file:///app-dist -e ENABLE_HOMEPAGE=False  -e SOCIAL_AUTH_GITHUB_KEY=xxxxx -e SOCIAL_AUTH_GITHUB_SECRET=xxxxx    ghcr.io/eugeny/tabby-web:master sh -c "/manage.sh add_version 1.0.163 && cd /app && /start.sh"
@huzheyi
Copy link

huzheyi commented Jul 18, 2023

SOCIAL_AUTH_GITHUB_SECRET

it seems the npm packet is unpacked to a folder with a temp name, like:

1.0.163
  - tmpfolder
     - tabby-web-container
     - ...

so just look into /app-dist to fix the folder name

@archibaldodlc
Copy link

archibaldodlc commented Oct 9, 2023

I had the same problem and I resolved doing this:

I'm using this version: 1.0.189-nightly.2 (with the latest one don't work for me)

  • Go inside the container:
    docker exec -it tabby-web-container /bin/sh

  • Install version 1.0.189-nightly.2
    /manage.sh add_version 1.0.189-nightly.2

  • CD to version folder:
    cd /app-dist/1.0.189-nightly.2

  • Move all content from tmp folder to current folder (/app-dist/1.0.189-nightly.2/):
    mv tmpfolder/* ./

  • Remove the tmp folder
    rm -rf tmpfolder

Refresh the page on Tabby Web and select the version installed.

Hope it helps.

@alexdelprete
Copy link

I had the same problem and I resolved doing this:

I have this issue and can't solve it, tried with any version of the image (the old master and latest nightly) and with several app versions:

docker compose run tabby-web /manage.sh add_version 1.0.189-nightly.2
[+] Creating 1/0                                                                                                                                                                                                      
INFO Resolving [email protected]
INFO Downloading [email protected] from https://registry.npmjs.org/tabby-web-container/-/tabby-web-container-1.0.189-nightly.2.tgz
INFO Resolving [email protected]
INFO Downloading [email protected] from https://registry.npmjs.org/tabby-core/-/tabby-core-1.0.189-nightly.2.tgz
INFO Resolving [email protected]
INFO Downloading [email protected] from https://registry.npmjs.org/tabby-settings/-/tabby-settings-1.0.189-nightly.2.tgz
INFO Resolving [email protected]
INFO Downloading [email protected] from https://registry.npmjs.org/tabby-terminal/-/tabby-terminal-1.0.189-nightly.2.tgz
INFO Resolving [email protected]
INFO Downloading [email protected] from https://registry.npmjs.org/tabby-ssh/-/tabby-ssh-1.0.189-nightly.2.tgz
INFO Resolving [email protected]
INFO Downloading [email protected] from https://registry.npmjs.org/tabby-community-color-schemes/-/tabby-community-color-schemes-1.0.189-nightly.2.tgz
tar: invalid magic
tar: short read
Traceback (most recent call last):
  File "./manage.py", line 22, in <module>
    main()
  File "./manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/venv/tabby-web-9TtSrW0h-py3.7/lib/python3.7/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/venv/tabby-web-9TtSrW0h-py3.7/lib/python3.7/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/venv/tabby-web-9TtSrW0h-py3.7/lib/python3.7/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/venv/tabby-web-9TtSrW0h-py3.7/lib/python3.7/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/app/tabby/app/management/commands/add_version.py", line 56, in handle
    ["tar", "-xzf", f.name, "-C", str(extraction_tmp)]
  File "/usr/local/lib/python3.7/subprocess.py", line 363, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['tar', '-xzf', '/tmp/tmptiijiy6h', '-C', '/tmp/tmp6pyit54s']' returned non-zero exit status 1.

@Dima-Kal
Copy link

Dima-Kal commented Apr 8, 2024

I had the same problem and I resolved doing this:

I'm using this version: 1.0.189-nightly.2 (with the latest one don't work for me)

  • Go inside the container:
    docker exec -it tabby-web-container /bin/sh
  • Install version 1.0.189-nightly.2
    /manage.sh add_version 1.0.189-nightly.2
  • CD to version folder:
    cd /app-dist/1.0.189-nightly.2
  • Move all content from tmp folder to current folder (/app-dist/1.0.189-nightly.2/):
    mv tmpfolder/* ./
  • Remove the tmp folder
    rm -rf tmpfolder

Refresh the page on Tabby Web and select the version installed.

Hope it helps.

Worked for me, why this issue still exists for more than a year? this web app is literally broken, and also the "settings sync" plugin is being deprecated in favor of tabby-web, but its broken!

@gyf9835 gyf9835 linked a pull request Nov 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants