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

Redmine app can't create new issues when installed with default settings #15079

Closed
1 task done
Plinsboorg opened this issue Nov 18, 2023 · 8 comments · Fixed by #15085
Closed
1 task done

Redmine app can't create new issues when installed with default settings #15079

Plinsboorg opened this issue Nov 18, 2023 · 8 comments · Fixed by #15085
Assignees
Labels
bug Something isn't working

Comments

@Plinsboorg
Copy link
Contributor

App Name

Redmine

Operating System

TrueNAS SCALE 22.12.4.2

App Version

5.0.6_8.0.17

Application Events

event: creating new issue causes blank screen HTTP ERROR 500

Application Logs

system temporary path is world-writable: /tmp
2023-11-18 17:16:37.156450+00:00/tmp is world-writable: /tmp
2023-11-18 17:16:37.156471+00:00. is not writable: /usr/src/redmine
2023-11-18 17:16:37.156610+00:002023-11-18 18:16:37 +0100 Rack app ("POST /projects/gfgfsss/issues" - (2a02:a31b:2038:2280:1d50:e1cb:9828:9da1)): #<ArgumentError: could not find a temporary directory>

Application Configuration

image
image
image
image
image
image
image
image

Describe the bug

I just installed the latest Redmine app from Stable Train. All settings are default. Storage is PVC
I can open the app and everything seems to work at first
But creating new issue is not working
image
as soon as I click on create a new issue I get a blank page
image

logs are captured on the left side of the screen

To Reproduce

Install the Redmine app with default settings.
Open it. Login as admin. You will be prompt to change the admin password ->change it
Go to administration (top left menu) -> Settings. You will be prompted to Apply the default configuration (yellow banner).
go to projects. Create new project with any name
Open the project. Go to issues. Create new issue
You will get blank screen.

Expected Behavior

Issue should be created normally.

Screenshots

image

Additional Context

With the help of TrueChart support team in Discord we figured out that changing the app configuration (during install) from default to
RunAsUser 0
RunAsGroup 0
fixes the issue

I've read and agree with the following

  • I've checked all open and closed issues and my issue is not there.
@Plinsboorg Plinsboorg added the bug Something isn't working label Nov 18, 2023
@Plinsboorg
Copy link
Contributor Author

image
Issue can be created normally if the App is installed with RunAsUser 0 RunAsGroup 0
I would like to request if to check if it's repeatable for other users, and if so, change the default config for the app

@stavros-k
Copy link
Member

@xstar97 @StevenMcElligott

Set user/group to 999
(You can also try fsGroup 999 and user/group 568)

❯ docker run -it --entrypoint /bin/bash redmine
Unable to find image 'redmine:latest' locally
latest: Pulling from library/redmine
578acb154839: Already exists 
2cc5014ccca9: Pull complete 
d407303216eb: Pull complete 
b01a22b77a10: Pull complete 
006dd831e3a8: Pull complete 
cb711b545c1a: Pull complete 
778a22c94f7f: Pull complete 
a6bbc83a927b: Pull complete 
f4b19b5b7e99: Pull complete 
a36d0ad32f98: Pull complete 
8bc3710686bf: Pull complete 
3b801817d9f5: Pull complete 
Digest: sha256:a1b33b13e73d3308f748bfdb8bc639f472c6467cf2a855cdd1b187d8dab58ba1
Status: Downloaded newer image for redmine:latest
root@73a7a48eb6b9:/usr/src/redmine# whoami
root
root@73a7a48eb6b9:/usr/src/redmine# id
uid=0(root) gid=0(root) groups=0(root)
root@73a7a48eb6b9:/usr/src/redmine# id redmine
uid=999(redmine) gid=999(redmine) groups=999(redmine)

@stavros-k
Copy link
Member

@all-contributors please add @Plinsboorg for bug

Copy link
Contributor

@stavros-k

I've put up a pull request to add @Plinsboorg! 🎉

stavros-k pushed a commit that referenced this issue Nov 18, 2023
Adds @Plinsboorg as a contributor for bug.

This was requested by stavros-k [in this
comment](#15079 (comment))

[skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
@Plinsboorg
Copy link
Contributor Author

User and group 999 fsgroup 568 - works
User and group 568 fsgroup 999 - doesn't - black screen on new issue again.

@Ornias1993
Copy link
Member

fsgroup should sync with group tbh

@Plinsboorg
Copy link
Contributor Author

Plinsboorg commented Nov 19, 2023

You mean, I should test
User/group 999 fsgroup 999 and User/group 568 fsgroup 999 ?
Or you meant that what I tested is equivalent to
User/group 999 fsgroup 999 and User/group 568 fsgroup 999 ?

stavros-k added a commit that referenced this issue Nov 21, 2023
**Description**

Changes the user and group to match upstream to fix #15079 

⚒️ Fixes  #15079 

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

**➕ App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: StevenMcElligott <89483932+StevenMcElligott@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
@truecharts-admin
Copy link
Collaborator

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists

@truecharts truecharts locked and limited conversation to collaborators Nov 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants