nextcloud / nextcloud/nextcloudpi

zram service failes since upgrade to bullseye

Open
#1,499 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug has-updates
Dominant language
Shell
Stars
2.9k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

Hi everyone,

since i have upgraded my ncp to bullseye zram service is failing. I think it's a syntax error.

`
zram.service - Set up ZRAM
Loaded: loaded (/etc/systemd/system/zram.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2022-07-11 07:52:58 CEST; 1h 10min ago
Process: 506 ExecStart=/usr/local/bin/ncp-zram start (code=exited, status=1/FAILURE)
Main PID: 506 (code=exited, status=1/FAILURE)
CPU: 152ms

Jul 11 07:52:58 Server systemd[1]: Starting Set up ZRAM...
Jul 11 07:52:58 Server ncp-zram[506]: /usr/local/bin/ncp-zram: Zeile 12: ( / 4) 1024 : Syntaxfehler: Operator erwartet. (Fehlerverursachendes Zeichen ist "/ 4) 1024>**
Jul 11 07:52:58 Server systemd[1]: zram.service: Main process exited, code=exited, status=1/FAILURE
Jul 11 07:52:58 Server systemd[1]: zram.service: Failed with result 'exit-code'.
Jul 11 07:52:58 Server systemd[1]: Failed to start Set up ZRAM.

`
Thank you.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect /usr/local/bin/ncp-zram, especially line 12, and the zram.service ExecStart entry shown in the report. Reproduce the failure on Bullseye and check the service output for the arithmetic syntax error. Done means zram.service starts successfully without the reported exit-code failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.