Skip to content

why tag list in my web is blank? #223

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

Open
Magic-King opened this issue Dec 4, 2021 · 2 comments · May be fixed by #393
Open

why tag list in my web is blank? #223

Magic-King opened this issue Dec 4, 2021 · 2 comments · May be fixed by #393

Comments

@Magic-King
Copy link

as the picture show:
image

and it's work success by exec ./script.sh list-tags and prove
image
image

@cxw42
Copy link
Contributor

cxw42 commented Dec 4, 2021

Good question! Could you tell us the exact steps you used to get to that point? Please start from a fresh clone of the repo. That will help others reproduce the problem.

Are all the environment variables set as described in the README? The tests by design don't check your installed server config.

@ndunks
Copy link

ndunks commented Sep 26, 2023

Same experience in the Docker version. I found this error in apache:

fatal: detected dubious ownership in repository at '/srv/elixir-data/esp8266-rtos-sdk/repo'
To add an exception for this directory, call:

	git config --global --add safe.directory /srv/elixir-data/esp8266-rtos-sdk/repo

Its because the user is different with the owner of git repo content.

Modify the Dockerfile with this And this the fix:

# Expose project arg as env
ENV PROJECT $PROJECT

# The Apache config with set "HOME" env
RUN echo '\
<Directory /usr/local/elixir/http/> \n\
    Options +ExecCGI \n\
    AllowOverride None \n\
    Require all granted \n\
    SetEnv PYTHONIOENCODING utf-8 \n\
    SetEnv LXR_PROJ_DIR /srv/elixir-data \n\
    SetEnv HOME /var/www \n\
</Directory> \n\
<Directory /usr/local/elixir/api/> \n\
    SetHandler wsgi-script \n\
    Require all granted \n\
    SetEnv PYTHONIOENCODING utf-8 \n\
    SetEnv LXR_PROJ_DIR /srv/elixir-data \n\
    SetEnv HOME /var/www \n\
</Directory> \n\
AddHandler cgi-script .py \n\
<VirtualHost 0.0.0.0:80> \n\
    ServerName localhost \n\
    DocumentRoot /usr/local/elixir/http \n\
    WSGIScriptAlias /api /usr/local/elixir/api/api.py \n\
    AllowEncodedSlashes On \n\
    RewriteEngine on \n\
    RewriteRule "^/$" "/'$PROJECT'/latest/source" [R] \n\
    RewriteRule "^/(?!api|acp).*/(source|ident|search)" "/web.py" [PT] \n\
    RewriteRule "^/acp" "/autocomplete.py" [PT] \n\
</VirtualHost> ' > /etc/apache2/sites-available/000-default.conf

# Fix www-data user
RUN echo '\n\
[user]\n\
	email = [email protected]\n\
	name = elixir\n\
[safe]\n\
	directory = /srv/elixir-data/'$PROJECT'/repo\n\
' > /var/www/.gitconfig && \
chown www-data:www-data /var/www/.gitconfig

GIT will look .gitconfig in user home directory using HOME variable, so it's important to set it.

@fstachura fstachura linked a pull request Feb 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants