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

Errror after storage-space-issue #229

Closed
ghost opened this issue Mar 18, 2023 · 9 comments
Closed

Errror after storage-space-issue #229

ghost opened this issue Mar 18, 2023 · 9 comments

Comments

@ghost
Copy link

ghost commented Mar 18, 2023

"Unexpected end of JSON input" seen onto the webUI under "Documents"

What does it mean and how can I fix it?

@ddvk
Copy link
Owner

ddvk commented Mar 18, 2023

what does the log show?

@ghost
Copy link
Author

ghost commented Mar 19, 2023

time="2023-03-19T07:30:27+01:00" level=info msg=/
time="2023-03-19T07:30:27+01:00" level=info msg="[GIN] 2023/03/19 - 07:30:27 | 200 | 153.794µs | 172.28.0.1 | GET "/""
time="2023-03-19T07:30:27+01:00" level=info msg="[GIN] 2023/03/19 - 07:30:27 | 200 | 8.251776ms | 172.28.0.1 | GET "/static/css/main.d94d89ba.css""
time="2023-03-19T07:30:27+01:00" level=info msg="[GIN] 2023/03/19 - 07:30:27 | 200 | 5.794799ms | 172.28.0.1 | GET "/static/js/main.9c2de5b1.js""
time="2023-03-19T07:30:28+01:00" level=info msg="[ui-authmiddleware] User from token: ctl"
time="2023-03-19T07:30:28+01:00" level=info msg="[GIN] 2023/03/19 - 07:30:28 | 200 | 731.716µs | 172.28.0.1 | HEAD "/ui/api/""
time="2023-03-19T07:30:28+01:00" level=info msg="[GIN] 2023/03/19 - 07:30:28 | 200 | 472.366µs | 172.28.0.1 | GET "/favicon.ico""
time="2023-03-19T07:30:30+01:00" level=info msg="[ui-authmiddleware] User from token: ctl"
time="2023-03-19T07:30:30+01:00" level=info msg="cache corrupt"
time="2023-03-19T07:30:30+01:00" level=error msg="unexpected end of JSON input"
time="2023-03-19T07:30:30+01:00" level=info msg="[GIN] 2023/03/19 - 07:30:30 | 500 | 3.308321ms | 172.28.0.1 | GET "/ui/api/documents""

ddvk added a commit that referenced this issue Mar 19, 2023
@ddvk
Copy link
Owner

ddvk commented Mar 19, 2023

can you try with v0.0.13.2 ?

@ghost
Copy link
Author

ghost commented Mar 20, 2023

Now I did. I'm sorry, but the UI gives the same error.

Rest works fine.

@Eeems
Copy link
Contributor

Eeems commented Mar 20, 2023

Now I did. I'm sorry, but the UI gives the same error.

Rest works fine.

And the log has the same error message?

@ghost
Copy link
Author

ghost commented Mar 20, 2023

time="2023-03-20T16:32:46+01:00" level=info msg=/
time="2023-03-20T16:32:46+01:00" level=info msg="[GIN] 2023/03/20 - 16:32:46 | 200 | 142.703µs | 172.28.0.1 | GET "/""
time="2023-03-20T16:32:47+01:00" level=info msg="[ui-authmiddleware] User from token: ctl"
time="2023-03-20T16:32:47+01:00" level=info msg="[GIN] 2023/03/20 - 16:32:47 | 200 | 284.61µs | 172.28.0.1 | HEAD "/ui/api/""
time="2023-03-20T16:32:49+01:00" level=info msg="[ui-authmiddleware] User from token: ctl"
time="2023-03-20T16:32:49+01:00" level=warning msg="cached tree corrupt, returning empty tree"
time="2023-03-20T16:32:49+01:00" level=error msg="unexpected end of JSON input"
time="2023-03-20T16:32:49+01:00" level=info msg="[GIN] 2023/03/20 - 16:32:49 | 500 | 2.774819ms | 172.28.0.1 | GET "/ui/api/documents""

@Eeems
Copy link
Contributor

Eeems commented Mar 20, 2023

"cached tree corrupt, returning empty tree":

log.Warn("cached tree corrupt, returning empty tree")

It seems to only be called from here:
tree, err := models.LoadTree(cachePath)

My guess is that the cached tree isn't valid json anymore.

You will want to inspect the .tree file in your user folder to see what is wrong with it. You may need to delete the file. I'd recommend renaming it at first instead of deleting.

@ghost
Copy link
Author

ghost commented Mar 20, 2023 via email

@ddvk
Copy link
Owner

ddvk commented Mar 21, 2023

duh, I forgot to remove the error

@ddvk ddvk closed this as completed in 5784582 Mar 21, 2023
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

2 participants