timetracker icon indicating copy to clipboard operation
timetracker copied to clipboard

[URGENT] User still cannot be assigned to projects

Open Elliot-Construct opened this issue 2 years ago • 22 comments

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 avatar May 23 '22 13:05 Elliot-Construct

Duplicate of #146

Elliot-Construct avatar May 23 '22 13:05 Elliot-Construct

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.

Elliot-Construct avatar May 23 '22 13:05 Elliot-Construct

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

mtierltd avatar May 23 '22 17:05 mtierltd

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

Elliot-Construct avatar May 24 '22 09:05 Elliot-Construct

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

Elliot-Construct avatar May 24 '22 09:05 Elliot-Construct

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

mtierltd avatar May 24 '22 10:05 mtierltd

portal.constructmediagroup.com.conf.txt

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

Elliot-Construct avatar May 24 '22 10:05 Elliot-Construct

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 avatar May 24 '22 10:05 Elliot-Construct

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

Elliot-Construct avatar May 24 '22 15:05 Elliot-Construct

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 :-)

daxid avatar Jun 08 '22 20:06 daxid

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 avatar Jun 26 '22 21:06 cfgardiner

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 avatar Jun 26 '22 22:06 cfgardiner

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 .

cfgardiner avatar Jun 26 '22 22:06 cfgardiner

Maybe this will help. It seems the ajax query is malformed. https://github.com/mtierltd/timetracker/issues/152#issuecomment-1035406457

mxc avatar Jul 08 '22 11:07 mxc

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.

wunschadresse avatar Oct 24 '22 09:10 wunschadresse

Same problem here, any news ?

In this way is not possible to use the app.

Maromax74 avatar Oct 23 '23 12:10 Maromax74

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.

rnagy avatar Oct 25 '23 11:10 rnagy

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

Maromax74 avatar Oct 25 '23 11:10 Maromax74

So there is nothing in your nextcloud.log?

rnagy avatar Oct 25 '23 12:10 rnagy

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

Maromax74 avatar Oct 25 '23 12:10 Maromax74

Anything in the browser's developer console?

rnagy avatar Oct 25 '23 12:10 rnagy

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

Maromax74 avatar Oct 25 '23 13:10 Maromax74