~tangram


#7 make config stop with errors a month ago

Comment by ~tangram on ~tsileo/microblog.pub

you're right, it's my poor knowledge of linux security management

#7 make config stop with errors a month ago

Comment by ~tangram on ~tsileo/microblog.pub

I've forget to say that I've changed chown too and the last error in make config that persist is : PermissionError: [Errno 13] Permission denied: 'app/static/twemoji/1f004.svg'

#7 make config stop with errors a month ago

Comment by ~tangram on ~tsileo/microblog.pub

ok, I've deleted --gid 0 & --uid 0 but the build works well before that yet the problem is when run make config and the errors remain the same

#7 make config stop with errors a month ago

Comment by ~tangram on ~tsileo/microblog.pub

Step 12/19 : RUN groupadd --gid 0 microblogpub && useradd --uid 0 --gid microblogpub --shell /bin/bash microblogpub ---> Running in 618d057b90a8 groupadd: GID '0' already exists

#7 make config stop with errors a month ago

Comment by ~tangram on ~tsileo/microblog.pub

id uid=0(root) gid=0(root) groups=0(root)

thanks for the answer!

#7 make config stop with errors a month ago

Comment by ~tangram on ~tsileo/microblog.pub

I replaced in Makefile 'pwd' with $ (pwd) and the execution changed the errors to:

# Run and remove instantly
docker run --rm -it --volume /data:/app/data microblogpub/microblogpub inv configuration-wizard
Traceback (most recent call last):
  File "/opt/venv/.venv/bin/inv", line 8, in <module>
    sys.exit(program.run())
  File "/opt/venv/.venv/lib/python3.10/site-packages/invoke/program.py", line 384, in run
    self.execute()
  File "/opt/venv/.venv/lib/python3.10/site-packages/invoke/program.py", line 566, in execute
    executor.execute(*self.tasks)
  File "/opt/venv/.venv/lib/python3.10/site-packages/invoke/executor.py", line 129, in execute
    result = call.task(*args, **call.kwargs)
  File "/opt/venv/.venv/lib/python3.10/site-packages/invoke/tasks.py", line 127, in __call__
    result = self.body(*args, **kwargs)
  File "/app/tasks.py", line 49, in compile_scss
    build_favicon()
  File "/app/app/utils/favicon.py", line 20, in build_favicon
    im = Image.new("RGB", (32, 32), ImageColor.getrgb(_get_primary_color()))
  File "/app/app/utils/favicon.py", line 9, in _get_primary_color
    compiled = sass.compile(
  File "/opt/venv/.venv/lib/python3.10/site-packages/sass.py", line 738, in compile
    raise CompileError(v)
sass.CompileError: Error: File to import not found or unreadable: theme.scss.
        on line 14:1 of app/scss/main.scss
        from line 1:1 of stdin
>> @import "theme.scss";

   ^

make: [Makefile:11: config] Error 1 (ignored)
docker run --env MICROBLOGPUB_CONFIG_FILE=tests.toml --rm -it --volume /data:/app/data --volume /app/static:/app/app/static microblogpub/microblogpub inv configuration-wizard
Traceback (most recent call last):
  File "/opt/venv/.venv/bin/inv", line 8, in <module>
    sys.exit(program.run())
  File "/opt/venv/.venv/lib/python3.10/site-packages/invoke/program.py", line 384, in run
    self.execute()
  File "/opt/venv/.venv/lib/python3.10/site-packages/invoke/program.py", line 566, in execute
    executor.execute(*self.tasks)
  File "/opt/venv/.venv/lib/python3.10/site-packages/invoke/executor.py", line 129, in execute
    result = call.task(*args, **call.kwargs)
  File "/opt/venv/.venv/lib/python3.10/site-packages/invoke/tasks.py", line 127, in __call__
    result = self.body(*args, **kwargs)
  File "/app/tasks.py", line 128, in download_twemoji
    with open(f"app/static/twemoji/{emoji_name}", "wb") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'app/static/twemoji/1f004.svg'
make: [Makefile:12: config] Error 1 (ignored)

#7 make config stop with errors a month ago

Ticket created by ~tangram on ~tsileo/microblog.pub

Generating key...
Traceback (most recent call last):
  File "/app/scripts/config_wizard.py", line 95, in <module>
    main()
  File "/app/scripts/config_wizard.py", line 40, in main
    generate_key(_KEY_PATH)
  File "/app/app/key.py", line 14, in generate_key
    key_path.write_text(privkey_pem)
  File "/usr/local/lib/python3.10/pathlib.py", line 1154, in write_text
    with self.open(mode='w', encoding=encoding, errors=errors, newline=newline) as f:
  File "/usr/local/lib/python3.10/pathlib.py", line 1119, in open
    return self._accessor.open(self, mode, buffering, encoding, errors,
PermissionError: [Errno 13] Permission denied: '/app/data/key.pem'
make: [Makefile:11: config] Error 1 (ignored)
docker run --env MICROBLOGPUB_CONFIG_FILE=tests.toml --rm -it --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv configuration-wizard
Traceback (most recent call last):
  File "/opt/venv/.venv/bin/inv", line 8, in <module>
    sys.exit(program.run())
  File "/opt/venv/.venv/lib/python3.10/site-packages/invoke/program.py", line 384, in run
    self.execute()
  File "/opt/venv/.venv/lib/python3.10/site-packages/invoke/program.py", line 566, in execute
    executor.execute(*self.tasks)
  File "/opt/venv/.venv/lib/python3.10/site-packages/invoke/executor.py", line 129, in execute
    result = call.task(*args, **call.kwargs)
  File "/opt/venv/.venv/lib/python3.10/site-packages/invoke/tasks.py", line 127, in __call__
    result = self.body(*args, **kwargs)
  File "/app/tasks.py", line 128, in download_twemoji
    with open(f"app/static/twemoji/{emoji_name}", "wb") as f:
PermissionError: [Errno 13] Permission denied: 'app/static/twemoji/1f004.svg'
make: [Makefile:12: config] Error 1 (ignored)