Skip to content

[Installer] Issue downloading frontend #7338

Closed

Description

@SchrodingersGat

Ref: #7246 (comment)

InvenTree database migrations completed!
Updating frontend...
Downloading frontend...
fatal: not a git repository (or any of the parent directories): .git
[ERROR] Cannot get current ref via 'git rev-parse HEAD'

Activity

  1. added
    bug
    setup
    on May 26, 2024
  2. added this to the 0.16.0 milestone on May 26, 2024
  3. matmair commented on May 26, 2024

    @matmair
    Member

    Sounds like a custom/master deployment of inventree

  4. SchrodingersGat commented on May 26, 2024

    @SchrodingersGat
    MemberAuthor

    @mabroens can you confirm the version of InvenTree you are installing? Is it the default "stable" version?

  5. mabroens commented on May 27, 2024

    @mabroens
  6. matmair commented on May 27, 2024

    @matmair
  7. mabroens commented on May 27, 2024

    @mabroens
  8. matmair commented on May 27, 2024

    @matmair
    Member

    Can you please fill out the normal bug report template for this issue? If you are bare metal (git) deploying that is the cause of the issue as you are missing yarn, if that is not the case pleas open a fully filled out bug report / update this bug with the info from the template so we can work in an efficient matter

  9. self-assigned this
    on May 27, 2024
  10. second-string commented on May 30, 2024

    @second-string

    I also see the original error of this issue ([ERROR] Cannot get current ref via 'git rev-parse HEAD') on a fresh install using the installer script on Ubuntu 20.04. Here is the snip from the full installation log:

    # inv update| Synchronizing apps without migrations:
    # inv update|   Creating tables...
    # inv update|     Running deferred SQL...
    # inv update| Running migrations:fatal: not a git repository (or any of the parent directories): .git
    /opt/inventree/env/lib/python3.9/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
      warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
    /opt/inventree/env/lib/python3.9/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
      warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
    /opt/inventree/env/lib/python3.9/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
      warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
    
    # inv update|   No migrations to apply.
    # inv update| ========================================
    # inv update| InvenTree database migrations completed!
    # inv update| Updating frontend...
    # inv update| Downloading frontend...
    # inv update| [ERROR] Cannot get current ref via git rev-parse HEAD
    # inv update| Python version 3.9.5 - /opt/inventree/env/bin/python3
    # inv update| Rendered all files in /opt/inventree/src/backend/InvenTree/templates/js/translated
    # inv update| Collecting static files...
    # inv update| Python version 3.9.5 - /opt/inventree/env/bin/python3
    # inv update| Python version 3.9.5 - /opt/inventree/env/bin/python3
    # inv update| Python version 3.9.5 - /opt/inventree/env/bin/python3
    

    Do you want a new issue for this or is it good here?

  11. matmair commented on Jul 9, 2024

    @matmair
    Member

    Related #5278

  12. matmair commented on Jul 9, 2024

    @matmair
    Member

    Working on this

  13. added a commit that references this issue on Jul 15, 2024
    82f87ca
  14. matmair commented on Jul 16, 2024

    @matmair
    Member

    @second-string a fixed release for 0.15.4 can be found here - official releases of the master channel might take a bit as we need to fix underlying infra.

  15. second-string commented on Jul 16, 2024

    @second-string

    @matmair I have a working install that I did on Ubuntu 20.04 LTS (to fix the python issue). I don't think I had to manually copy the frontend for that one either, but my point is that I'm not in a position to test this anymore unfortunately.

    You're welcome to close the issue since the comments will serve as the historical record for anyone else that might have the issue, I'm all set. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buginstallersetup

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions