Discovery section not showing content.
We have setup our website. However we have the following issue
- Unsubscribed channels not showing in Discovery section.
We have deployed our website on Google Compute Engine. Its not on localhost.We are using Jwilder Nginx Proxy to access the website
@benhayward.ben Awaiting.
changed the description
- Developer
Probably some issue with elasticsearch? Without logs this doesn't tell me much unfortunately.
Hi Ben. Thanks for the quick revert. Please find attached the 2 log files - one of elastic search and other of NginX.
- Developer
Did you run the elasticsearch provisioner stuff when you set it up? Looks like it but just want to check.
Other ideas from asking around the team:
Try playing with the FeedDispatcher runner:
docker-compose exec php-fpm sh cd ../Minds/engine php ./cli.php QueueRunner run --runner=FeedDispatcher
- Developer
Also check the logs of php-fpm and runners
As requested, here are the logs for php-fpm and runners. Apparently, there was no runners container deployed when i checked. So I deployed it manually. php-fpm_logs.txt runners_logs.txt
- Developer
Ah, and you may not have sockets working yet, that is another thing. Usually when I start I spin up
docker-compose up -d nginx runners sockets
. Unsure if sockets is downloaded as part of the install or if you need to do it manually still, but the repo is here https://www.minds.com/socketsOut of those logs, what stands out to me is
[24-Oct-2019 12:58:57 UTC] PHP WARNING: 2019-10-24 12:58:57 (UTC): "file_get_contents(/.dev/minds.pem): failed to open stream: No such file or directory" in file /var/www/Minds/engine/Entities/User.php (line 341)
Which may be implying an issue with key generation.
[24-Oct-2019 12:41:50] WARNING: [pool www] child 6 said into stderr: "NOTICE: PHP message: PHP Fatal error: require(): Failed opening required '/var/www/Minds/engine/vendor/composer/../symfony/polyfill- ctype/bootstrap.php' (include_path='.:/usr/local/lib/php') in /var/www/Minds/engine/vendor/composer/autoload_real.php on line 66"
Not quite sure what this is being caused by.
There's also some schema missing for Pro which I will tag @edgebal and @eiennohi about, but that wouldn't affect this issue.
I can also see
PHP WARNING: 2019-10-24 12:52:37 (UTC): "fopen(/data/2019/10/24/1034085998050414604/profile/1034085998050414604medium.jpg): failed to open stream: No such file or directory" in file /var/www/Minds/engine/Core/Storage/Services/Disk.php (line 26)"
Try running:
docker-compose exec php-fpm sh chmod -R 0777 /data chmod -R 0777 ../Minds/front/dist
Edited by Ben Hayward Which may be implying an issue with key generation.
I checked inside minds_php-fpm_1, and /.dev exists along with both minds.pub and minds.pem in it.
Try running:
Ran the commands you suggested, no effect. Still getting the same error in nginx logs:
2019/10/25 06:06:32 [error] 6#6: *701 FastCGI sent in stderr: "PHP message: PHP WARNING: 2019-10-25 06:06:32 (UTC): "fopen(/data/2019/10/25/1034337857172410369/profile/1034337857172410369large.j pg): failed to open stream: No such file or directory" in file /var/www/Minds/engine/Core/Storage/Services/Disk.php (line 26)" while reading response header from upstream, client: 172.18.0.3, se rver: _, request: "GET /icon/1034337857172410369/large/1571981362 HTTP/1.1", upstream: "fastcgi://192.168.224.11:9000", host: "socialize.movingisliving.in", referrer: "http://socialize.movingisl iving.in/newsfeed/global/hot" 2019/10/25 06:06:37 [error] 6#6: *717 FastCGI sent in stderr: "PHP message: PHP WARNING: 2019-10-25 06:06:37 (UTC): "fopen(/data/2019/10/25/1034337857172410369/profile/1034337857172410369medium. jpg): failed to open stream: No such file or directory" in file /var/www/Minds/engine/Core/Storage/Services/Disk.php (line 26)" while reading response header from upstream, client: 172.18.0.3, s erver: _, request: "GET /icon/1034337857172410369/medium/1571981362 HTTP/1.1", upstream: "fastcgi://192.168.224.11:9000", host: "socialize.movingisliving.in", referrer: "http://socialize.movingi sliving.in/newsfeed/subscriptions"
Edited by Narayanan KAI'm attaching the docker-compose.yml and settings.php. Also the android app is giving a api/v1/channel/me error when we try to login and signup a new account. Hope it helps us to resolve the the 2 issues. Also attaching Runners log file as well after a fresh install.
Edited by Narayanan KA@benhayward.ben Awaiting your response.
- Developer
Try setting your features in settings to
$CONFIG->set('features', [ 'es-feeds' => true, 'cdn-jwt' => true, 'helpdesk' => true, 'top-feeds' => true, 'cassandra-notifications' => true, 'dark-mode' => true, 'allow-comments-toggle' => true, 'pro' => true, 'post-scheduler' => true, 'media-modal' => true, ]);
And check that you have data in minds_badger
- Developer
You should remove the settings.php above, as you have credentials in there.
- Newsfeed is showing subscribed content now. 2)Discovery section still not showing content.
Also find attached the minds_badger.json
@benhayward.ben awaiting.
- Developer
Can you
docker-compose up -d nginx runners sockets
docker-compose up -d nginx runners sockets
Youve already mentioned the above earlier. Have done the same already. Any other solution ??
changed the description
changed title from Discovery section not showing content. to Discovery section not showing content.
- Developer
You may need to update me again with the current output of docker-compose logs, after loading the discovery feed.
Here are all the log files:
minds_phpfpm.log minds_sockets.log minds_runners.log minds_redis.log minds_cassandra.log minds_nginx.log
Hope this helps @benhayward.ben
Edited by Narayanan KA@benhayward.ben awaiting
@benhayward.ben awaiting
- Developer
I have been looking into this but unfortunately, I have some tasks to attend before the weekend so may not have time to resume later. I will do my best though because I'd like to help you.
I currently have this issue locally and have not solved it - Note I presume the latest tab is working for you?
The top and hot/top feeds should be synced in the runners, calling the CLI Top controller Controllers/Cli/Top.php
I added a helper function to speed this up:
public function sync_all() { $this->syncBy('activity', null, $this->getOpt('period') ?? null, $this->getOpt('metric') ?? null); $this->syncBy('object', 'image', $this->getOpt('period') ?? null, $this->getOpt('metric') ?? null); $this->syncBy('object', 'video', $this->getOpt('period') ?? null, $this->getOpt('metric') ?? null); $this->syncBy('object', 'blog', $this->getOpt('period') ?? null, $this->getOpt('metric') ?? null); $this->syncBy('group', null, $this->getOpt('period') ?? null, $this->getOpt('metric') ?? null); $this->syncBy('user', null, $this->getOpt('period') ?? null, $this->getOpt('metric') ?? null); }
Ran by:
cd ../Minds/engine php ./cli.php top sync_all --period='1y' --metric='up' php ./cli.php top sync_all --period='24h' --metric='up' php ./cli.php top sync_all --period='12h' --metric='up'
and so on for all time periods.
This should be working, but doesn't appear to be on our development stack. I'd say its worth a try on your end anyway.
May I ask what you creating? Just a curiosity. We're considering adding a page to our docs site to highlight sites using the Minds codebase.
Note I presume the latest tab is working for you?
Actually none of the tabs in discover are showing any posts(hot/top or latest). The way we are testing it is by having three test accounts, each having a couple of posts. testerA is subscribed to testerB (to test newsfeed, which is working) but not testerC, so in discover, i am assuming testerA should see posts by testerC. But there are no posts whatsoever.
This should be working, but doesn't appear to be on our development stack. I'd say its worth a try on your end anyway.
Yep, not working on mine either.
May I ask what you creating? Just a curiosity. We're considering adding a page to our docs site to highlight sites using the Minds codebase.
We are just trying to see if it's possible to implement minds social network in India while finding an alternative to crypto. Here in India, trading in crypto is illegal (for banks and all).
@benhayward.ben help us close this issue please. awaiting your reply.