Skip to content

Next

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds
Minds
  • Project
  • Repository
  • Issues 134
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 14
  • CI / CD
  • Security & Compliance
  • Packages
  • Wiki
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • MindsMinds
  • Issues
  • #886

Closed
Open
Opened 1 week ago by Narayanan KA@movingisliving2019
Report abuse New issue

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

Edited 3 days ago by Narayanan KA

Related issues
0

  • Discussion 23
  • Designs 0
  • Narayanan KA
    Narayanan KA @movingisliving2019 · 1 week ago

    @benhayward.ben Awaiting.

  • Narayanan KA @movingisliving2019 changed the description 1 week ago

    changed the description

  • Ben Hayward
    Ben Hayward @benhayward.ben · 1 week ago
    Developer

    Probably some issue with elasticsearch? Without logs this doesn't tell me much unfortunately.

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 1 week ago

    Hi Ben. Thanks for the quick revert. Please find attached the 2 log files - one of elastic search and other of NginX.

    elasticsearch_logs.txt

    nginx_logs.txt

  • Ben Hayward
    Ben Hayward @benhayward.ben · 1 week ago
    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
  • Ben Hayward
    Ben Hayward @benhayward.ben · 1 week ago
    Developer

    Also check the logs of php-fpm and runners

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 1 week ago

    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

  • Ben Hayward
    Ben Hayward @benhayward.ben · 1 week ago
    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/sockets

    Out 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 1 week ago
  • Narayanan KA
    Narayanan KA @movingisliving2019 · 1 week ago

    @benhayward.ben

    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 KA 1 week ago
  • Narayanan KA
    Narayanan KA @movingisliving2019 · 1 week ago

    @benhayward.ben

    I'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.

    Runners_Logs_2.txt

    docker-compose.yml

    Edited by Narayanan KA 5 days ago
  • Narayanan KA
    Narayanan KA @movingisliving2019 · 1 week ago

    @benhayward.ben Awaiting your response.

  • Ben Hayward
    Ben Hayward @benhayward.ben · 5 days ago
    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

  • Ben Hayward
    Ben Hayward @benhayward.ben · 5 days ago
    Developer

    You should remove the settings.php above, as you have credentials in there.

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 5 days ago

    @benhayward.ben

    1. Newsfeed is showing subscribed content now. 2)Discovery section still not showing content.

    Also find attached the minds_badger.json

    minds_badger.json

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 4 days ago

    @benhayward.ben awaiting.

  • Ben Hayward
    Ben Hayward @benhayward.ben · 4 days ago
    Developer

    Can you docker-compose up -d nginx runners sockets

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 3 days ago

    @benhayward.ben

    docker-compose up -d nginx runners sockets

    Youve already mentioned the above earlier. Have done the same already. Any other solution ??

  • Narayanan KA @movingisliving2019 changed the description 3 days ago

    changed the description

  • Narayanan KA @movingisliving2019 changed title from NewsFeed not showing subscribed channels ,Search not showing Users in the network & Discovery section not showing content. to Discovery section not showing content. 3 days ago

    changed title from Discovery section not showing content. to Discovery section not showing content.

  • Ben Hayward
    Ben Hayward @benhayward.ben · 3 days ago
    Developer

    You may need to update me again with the current output of docker-compose logs, after loading the discovery feed.

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 3 days ago

    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 3 days ago
  • Narayanan KA
    Narayanan KA @movingisliving2019 · 2 days ago

    @benhayward.ben awaiting

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 2 days ago

    @benhayward.ben awaiting

  • Ben Hayward
    Ben Hayward @benhayward.ben · 2 days ago
    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.

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 1 day ago

    Hi @benhayward.ben

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

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 1 day ago

    @benhayward.ben help us close this issue please. awaiting your reply.

Please register or sign in to reply
0 Assignees
None
none
Epic
None
None
Milestone
None
Time tracking
No estimate or time spent
None
Due date
None
0
Labels
None
None
Weight
None
Confidentiality
Not confidential
Lock issue
Unlocked
4
4 participants
user avatar
Narayanan KA
user avatar
Ben Hayward
user avatar
Emiliano Balbuena
user avatar
Marcelo Rivera
Reference: minds/minds#886