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

Trying to get property of non-object #68

Closed
aronovgj opened this issue Nov 14, 2016 · 11 comments
Closed

Trying to get property of non-object #68

aronovgj opened this issue Nov 14, 2016 · 11 comments
Assignees
Labels

Comments

@aronovgj
Copy link
Contributor

Reproduce:

  • Open settings

What can I see:

  • Solr starts using a lot of CPU
  • Nextant settings look as if nextant is not configured at all (all fields empty, no indexes ran)
  • After a few seconds the settings look correct
  • Error:
    Trying to get property of non-object at /var/www/nextcloud/apps/nextant/lib/Controller/SettingsController.php#113
@ArtificialOwl
Copy link
Member

./occ nextant:check

How many segments in your index ? Is it slow also to get the result using the check command ?

@aronovgj
Copy link
Contributor Author

All the output comes immediatelly after running the command, except for the segments. Those take some time.
also running the command repeatedly, the first result is
- 25 segments
the second is
- segments
The third is like the first again.

And the corresponding error:
Trying to get property of non-object at /var/www/nextcloud/apps/nextant/lib/Command/Check.php#90

@ArtificialOwl
Copy link
Member

i'll have a look, in the meanwhile you can

./occ nextant:optimize

@ArtificialOwl ArtificialOwl added this to the 0.6.x milestone Nov 15, 2016
@ArtificialOwl ArtificialOwl self-assigned this Nov 15, 2016
@aronovgj
Copy link
Contributor Author

aronovgj commented Nov 15, 2016

That is interesting. After doing ./occ nextant:optimize the error is gone and ./occ nextant:check shows me 5 segments (what are those anyway? It showed 25 before). corresponding error is also gone.
Everything else is the same, meaning quite a long loading time in the admin panel, empty nextant settings while loading, high CPU usage.

@ArtificialOwl
Copy link
Member

#64 (comment)

When you do a ./occ nextant:check there is still a delay to display the number of segments ?

@aronovgj
Copy link
Contributor Author

Yes, a 20 seconds delay.

@ArtificialOwl
Copy link
Member

Can you have a look to the logs of your solr when you're executing ./occ nextant:check ?

In the meantime, remove this line so your Admin Interface is working
https://github.com/nextcloud/nextant/blob/master/lib/Controller/SettingsController.php#L113

@aronovgj
Copy link
Contributor Author

aronovgj commented Nov 15, 2016

2016-11-15 23:25:15.678 INFO  (qtp736709391-19) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/admin/ping params={json.nl=flat&omitHeader=true&wt=json} hits=10817 status=0 QTime=0
2016-11-15 23:25:15.678 INFO  (qtp736709391-19) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/admin/ping params={json.nl=flat&omitHeader=true&wt=json} status=0 QTime=0
2016-11-15 23:25:15.687 INFO  (qtp736709391-14) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/dynamicfields/nextant_attr_* params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=0
2016-11-15 23:25:15.690 INFO  (qtp736709391-19) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fields/nextant_path params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=0
2016-11-15 23:25:15.694 INFO  (qtp736709391-14) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fields/text params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=0
2016-11-15 23:25:15.698 INFO  (qtp736709391-19) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fields/nextant_owner params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=0
2016-11-15 23:25:15.701 INFO  (qtp736709391-14) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fields/nextant_mtime params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=0
2016-11-15 23:25:15.705 INFO  (qtp736709391-19) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fields/nextant_share params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=0
2016-11-15 23:25:15.709 INFO  (qtp736709391-14) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fields/nextant_sharegroup params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=0
2016-11-15 23:25:15.714 INFO  (qtp736709391-19) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fields/nextant_deleted params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=0
2016-11-15 23:25:15.718 INFO  (qtp736709391-14) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fields/nextant_source params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=0
2016-11-15 23:25:15.722 INFO  (qtp736709391-19) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fields/nextant_tags params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=0
2016-11-15 23:25:15.727 INFO  (qtp736709391-14) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fields/nextant_extracted params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=02016-11-15 23:25:15.731 INFO  (qtp736709391-19) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fields/nextant_ocr params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=0
2016-11-15 23:25:15.736 INFO  (qtp736709391-36) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fields/nextant_unmounted params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=02016-11-15 23:25:15.743 INFO  (qtp736709391-12) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/schema/fieldtypes/text_general params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=2 2016-11-15 23:25:15.750 INFO  (qtp736709391-18) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/select params={q=id:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=0&wt=json} hits=10817 status=0 QTime=1
2016-11-15 23:25:15.758 INFO  (qtp736709391-15) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/select params={q=id:files_*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=0&wt=json} hits=10817 status=0 QTime=0
2016-11-15 23:25:15.762 INFO  (qtp736709391-18) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/select params={q=id:bookmarks_*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=0&wt=json} hits=0 status=0 QTime=0
2016-11-15 23:25:34.514 INFO  (qtp736709391-15) [   x:nextant] o.a.s.c.S.Request [nextant]  webapp=/solr path=/admin/luke params={q=*:*&json.nl=flat&omitHeader=true&fl=*,score&start=0&rows=10&wt=json} status=0 QTime=18748

Also confirming that removing the line helps.

ArtificialOwl added a commit that referenced this issue Nov 16, 2016
@ArtificialOwl
Copy link
Member

I have currently no idea why it takes you so long, but would you try this patch and see if ./occ nextant:check is still slow ?

@aronovgj
Copy link
Contributor Author

Works. No more delays.

@ArtificialOwl
Copy link
Member

ok, 0.6.6 fix that

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

No branches or pull requests

2 participants