Login  Register

Re: Any Problem with N5 server ?

Posted by Coleen_Astalos on Aug 26, 2016; 5:29pm
URL: https://support.nabble.com/Any-Problem-with-N5-server-tp7597061p7597197.html

Hugo <Nabble> wrote
Coleen_Astalos wrote
I am still having problems searching for members - it just hangs (browser circle going round and round) and never returns any results.  forum.sudsol.org - let me know if you need access to my password protected site.  My site requires I move members into a member only group and I've been unable to do that since Sunday.
Thanks,
Coleen
The server is still recovering, building caches and importing old emails. Please give it a few days to fully recover and things should improve.
I have a very active group with members joining each day.  It's been almost a week since I've been able to process ANY memberships since I can't search for an email address under People (it just hangs).  

I can understand with emails still being imported, searching for posts, might not work.  But searching for users?  We're only talking about searching my user list and that's less than 1,000 email addresses.  Seems that shouldn't tax the system significantly to not get any results.   (Although I have once or twice been able to successfully search for myself)

Is more going on here?
I do have a customization to people.naml that Pedro did a few years ago which adds a tab to search people:
           <n.comment.>Added Search on People</n.comment.> 
            <n.add_horizontal_tab  
            url="[n.page_node.people_path filter='list'/]"  
            text="[t]Search[/t]"  
            selected="[n.is_people_filter value='list'/]"  
            details="[n.page_node.raw_subscriber_list.people_columns/]"  
            />   

<override_macro name="people_tabbed_pane">  
    <div style="margin:.5em 0">  
        <n.horizontal_tab_control.>  
            <n.add_horizontal_tab  
            url="[n.page_node.people_path/]"  
            text="[t]Users & Groups[/t]"  
            selected="[n.is_people_default/]"  
            details="[n.visible_users_table.people_columns/]"  
            />  
            <n.add_horizontal_tab  
            url="[n.page_node.people_path filter='online-users'/]"  
            text="[t]Online Users[/t]"  
            selected="[n.is_online_users/]"  
            details="[n.online_users_table.people_columns/]"  
            />  
            <n.comment.>Added Search on People</n.comment.> 
            <n.add_horizontal_tab  
            url="[n.page_node.people_path filter='list'/]"  
            text="[t]Search[/t]"  
            selected="[n.is_people_filter value='list'/]"  
            details="[n.page_node.raw_subscriber_list.people_columns/]"  
            />  
        </n.horizontal_tab_control.>  
    </div>  
</override_macro> 
 
<macro name="raw_subscriber_list" requires="node" dot_parameter="columns">    
    <n.put_in_head.>  
        <style type="text/css">             
        </style>  
    </n.put_in_head.>  
      
    <n.zebra_table_javascript table_selector="table.subscriptions"/>  
      
    <form method="post" action=""  class=''>          
        <div>  
            <b>Name:</b> <input type='text' maxlength='30'  name="name" /><input class="sub_but"  type="submit" value="Search" />  
        </div>         
    </form>  
    <br/>  
    <n.if.is_submitted_form>          
        <then>  
            <n.searched_users_list.>  
                <n.people_table.>  
                    <n.columns/>  
                </n.people_table.>  
            </n.searched_users_list.>  
        </then>  
    </n.if.is_submitted_form>      
</macro> 

<macro name='searchName'>    
    <n.get_parameter name='name' />
</macro> 

<macro name='is_people_default'>  
    <n.both condition1="[n.not.is_online_users/]" condition2="[n.not.is_people_search/]"/>  
</macro> 

<macro name='is_people_search'>  
    <n.is_people_filter value='list' />  
</macro> 

<macro name="searched_users_list" dot_parameter="do" requires="node_page">    
    <div class ="search_1">
        <n.site_users. start="0" length="99999">
            <n.filter_by.contains_substring string="[n.to_lower_case.current_user.name/]+[n.to_lower_case.current_user.user_email/]" substring="[n.to_lower_case.searchName/]"/>      
            <n.do/>
        </n.site_users.>
    </div>
    <div class ="search_2">
        <n.site_users. start="0" length="99999">
            <n.filter_by.contains_substring string="[n.to_lower_case.current_user.name/]+[n.to_lower_case.current_user.user_email/]" substring="[n.to_lower_case.searchName/]"/>  
        <n.filter_by.current_user.is_in_group group="Members"  />    
            <n.do/>
        </n.site_users.>
    </div>
    <n.user_request/>
</macro> 

<macro name="user_request">
    <script type="text/javascript">
        var in_group;
        var path = '/template/NamlServlet.jtp?macro=user_response&user=';
        var url = Nabble.userId;
        if(url){
        $.getScript(path+url+Nabble.getClientID() ,function(data){
        posts_today = data;
        in_group = data;
        console.log(in_group);
        console.log(in_group != "true");
        if(in_group != "true") {
        $(".search_1").css("display","none");
        }else {
        $(".search_2").css("display","none");
        }
        });   
        } else $(".search_1").css("display","none");
        
    </script>
</macro>

<macro name="user_response">
    <n.user_from_get.is_in_group group="Administrators" />
</macro> 

<macro name='user_from_get' dot_parameter="do" >
    <n.get_user_from_id. user_id="[n.get_parameter name='user'/]">
        <n.do/>
    </n.get_user_from_id.>    
</macro> 

Is there something in those macros that is inefficient that is causing it to take so long and time out?  I've not had problems with it taking long prior to the N5 server issues.

Thanks,
Coleen