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

[URGENT] User still cannot be assigned to projects #177

Open
Elliot-Construct opened this issue May 23, 2022 · 22 comments
Open

[URGENT] User still cannot be assigned to projects #177

Elliot-Construct opened this issue May 23, 2022 · 22 comments

Comments

@Elliot-Construct
Copy link

I have had a quick little look at the projects.js and I cannot find the issue with the user search function. It seems to be a pretty urgent error that needs fixing urgently.

timerecprojecterrorpng

I am also unable to assign a project (Locked OR Unlocked)

timerecprojecterror2

@Elliot-Construct
Copy link
Author

Duplicate of #146

@Elliot-Construct
Copy link
Author

Duplicate of #152

This is not a unique unquantifiable problem. It's urgent and a lot of people must be affected.

FYI I am using a reverse proxy and I am on a subdomain.

@mtierltd
Copy link
Owner

Please upload your nextcloud logfile from the time when the error occurs.

@Elliot-Construct
Copy link
Author

Elliot-Construct commented May 24, 2022

There is no nextcloud log entry associated with the incomplete action(s) on any level (Debug included)

@Elliot-Construct
Copy link
Author

Here is chrome's console log:
portal.constructmediagroup.com-1653384992900.log

@mtierltd
Copy link
Owner

Please also provide the http server configuration block for your nextcloud installation.

@Elliot-Construct
Copy link
Author

portal.constructmediagroup.com.conf.txt

Will replace with dummy data later for users who might benefit from this.

@Elliot-Construct
Copy link
Author

Elliot-Construct commented May 24, 2022

Also I use a squid reverse proxy on pfsense CE to actually serve the website.

It's on a different virtual machine on the same network

@Elliot-Construct
Copy link
Author

Elliot-Construct commented May 24, 2022

I manually added my user to the project and now I am able to assign different time recordings to projects.
But when I try and get a timeline of work it is just showing '*' for the name of each work item.

timerectimelineerrorpng

It's the same in the Reports section

@daxid
Copy link

daxid commented Jun 8, 2022

We are also suffering this issue. It seems to me that it started right after the upgrade to Nextcloud 23.

@Elliot-Construct what version of NC are you running ?

@mtierltd do you think it is plausible ? If so we can run tests to confirm and/or help in any other way to see this resolved.
(btw thanks for the app, it gets the job done event with the rough edges :-)

@cfgardiner
Copy link

We are also suffering this issue. It seems to me that it started right after the upgrade to Nextcloud 23.

@Elliot-Construct what version of NC are you running ?

@mtierltd do you think it is plausible ? If so we can run tests to confirm and/or help in any other way to see this resolved. (btw thanks for the app, it gets the job done event with the rough edges :-)

Unfortunately not. I just upgraded from 20.something_or_other to latest, largely because of this extremely annoying issue. If there was any "featured" alternative, I wouldn't touch Timetracker. This bug has been going on for so long. Obviously not properly tested. I've also just upgraded SuSE to Leap 15.3 to get latest php and so on. Didn't help either.

Wondering is it because my nextcloud is running one level below server root? /srv/www/htdocs/nextcloud

It's a real PITA to have to manually modify the postgres DB every time just to be able to log hours on a new project.

@cfgardiner
Copy link

Just my observation on this extremely annoying bug. If I hadn't figured out how to update the postgres database manually this would be a show stopper.
Going to the 'Users' field always says "The results could not be loaded", as documented at least twice above. So where does this tool search for users? Is there something broken there? I have 61 users on my nextcloud so the tool is obviously not querying the users or not reading the returned list correctly.
In fact if I add a user manually through the database and then lock the project for editing, the user gets lost and I have to go back to editing the postgres db manually again.
If this is a problem, my database name is nextcloud_db. I see some installations just have nextcloud as database name.

No more observations at the moment.

@cfgardiner
Copy link

cfgardiner commented Jun 26, 2022

There does seem to be a bug here in line #333. Just tried to create a dummy project. It is true that the project table is sparse (some IDs not present) but this is due to projects which were deleted. Maybe I'll try and regenerate the whole project table.

And if you want some tables to play with, the dumps of the tables are below.

No idea why the bug complains about Key (id)=(28). There are only 20 projects. BTW, the only table I modify manually is oc_timetracker_user_to_project. The manual update works, until I add a new project or try to edit a project.

timetracker_err_make_project.txt

timetracker_err_tables.txt
.

@mxc
Copy link

mxc commented Jul 8, 2022

Maybe this will help. It seems the ajax query is malformed.
#152 (comment)

@wunschadresse
Copy link

What I am also wondering about is the following:
When the project is not locked, should it appear for all userse who you are using time tracker?
I would assume so, but projects created by me (as admin) do not show for others.

@Maromax74
Copy link

Maromax74 commented Oct 23, 2023

Same problem here, any news ?

In this way is not possible to use the app.

@rnagy
Copy link
Collaborator

rnagy commented Oct 25, 2023

Same problem here, any news ?

In this way is not possible to use the app.

Please attach your nextcloud log from the relevant timeframe when you are searching for a user to assign.

@Maromax74
Copy link

I simply have no ability to select existing users. it seems that timetracker does not have access from the user DB.
But I've no logs about it.
Screenshot_20231025_134036

@rnagy
Copy link
Collaborator

rnagy commented Oct 25, 2023

So there is nothing in your nextcloud.log?

@Maromax74
Copy link

No, nothing related to TimeTracker.
I don't receive any warning about it during filling simply users are not loaded and it is impossible to write in this field

@rnagy
Copy link
Collaborator

rnagy commented Oct 25, 2023

Anything in the browser's developer console?

@Maromax74
Copy link

Screenshot_20231025_150547
Nothing.
I click on users, for half a second appears "searching..." and after that "The results could not be loaded"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants