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

Please wait.... infinite spinner #279

Closed
micah opened this issue Apr 23, 2018 · 20 comments
Closed

Please wait.... infinite spinner #279

micah opened this issue Apr 23, 2018 · 20 comments
Labels

Comments

@micah
Copy link

micah commented Apr 23, 2018

We attempted to upgrade to 6.2.32, and put aside our web_tt2 template customization to see if we could use the newly updated templates and modify them to our needs.

Everything was migrated fine and then I logged into the web interface. I got a spinner with the text "Please wait..." -- it never ended. I tried to debug what it was waiting for, but I could not determine it.

The spinner seems to come when class='heavyWork' in the tt2 files occurs, but I could not tell what was not completing the task.

@ikedas
Copy link
Member

ikedas commented Apr 25, 2018

Hi @micah,
What page was supposed to be displayed when you logged in? (Initially it is home page. It may be changed by default_home parameter)

@micah
Copy link
Author

micah commented May 1, 2018 via email

@ikedas
Copy link
Member

ikedas commented May 4, 2018

@micah, i want to confirm:

  • Did you show home page and then perform log in?
  • Didn't you click "Back" button of web browser?

@micah
Copy link
Author

micah commented May 4, 2018 via email

@ikedas
Copy link
Member

ikedas commented May 6, 2018

@micah, I can't figure out what is shown on your display, but I may give some suggestions.

  1. Please read Upgrading notes, if you have not.
  2. Cancel all modifications (except those made by sympa.pl --upgrade) and see if your Sympa works correctly.
  3. Then, modify configurations gradually, and by each modification, check if Sympa works correctly.
  4. If Sympa got not working, please show us:
    • The change you made
    • Configuration of Sympa (sympa.conf and files related to your change)
    • What you see: For example screen shot
    • What system records: System log.

@ikedas
Copy link
Member

ikedas commented Nov 7, 2018

Stagnating issue. Closed at present.

@ikedas ikedas closed this as completed Nov 7, 2018
@crpeck
Copy link

crpeck commented Mar 28, 2019

I just did a clean install of 6.2.42 with no changes to any of the tt2 files and I am seeing the same thing, on every page.

@racke
Copy link
Contributor

racke commented Mar 28, 2019

Can you tell us which browser you use and which version? Please also check it with other browsers.

@ikedas ikedas reopened this Mar 29, 2019
@crpeck
Copy link

crpeck commented Mar 29, 2019

This is happening on the following browsers & OS's:
Linux Ubuntu 19.04
Google Chrome 73.0.3683.86
Mozilla Firefox 66.0.1

Mac OSX
Google Chrome 73.0.3683.86 -firefox
Mozilla Firefox 66.0.2
Safari 12.0.3

For now I have copied the tt2. files that refer to

into etc and commented out that line.

@lolaslade
Copy link

Seeing the same issue

@ikedas ikedas added bug and removed question labels May 7, 2019
@derOtto
Copy link

derOtto commented Jun 28, 2020

Having the same issue.
The div with id loading is always shown but will never be hidden.

So I added a simple function to sympa.js, hiding the div when all resources were loaded:

diff --git a/ORIG_STATICDIR/js/sympa.js b/UPDATED_STATICDIR/js/sympa.js
index eb2d179..68bd9c4 100644
--- a/ORIG_STATICDIR/js/sympa.js
+++ b/UPDATED_STATICDIR/js/sympa.js
@@ -208,6 +208,11 @@ $(function() {
                $('#loading').show();
        });
 });
+// and hide when all resources (with external) are loaded
+$(window).load(function() {
+       $('#loading').hide();
+});
+

 // fade effect for notification boxes
 $(function() {

(git diff between sympa.js and updated version)

Although I didn't tested this on multiple Browsers or OSs (only Chromium on Linux) it may help others or is something fixing this bug.
You still have to check whether this is a possible solution and if this is the right thing to wait for. I just get this from here.

UPDATE:
I tested it on different systems. Here are their user agents:

  • Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Safari/537.36
  • Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
  • Mozilla/5.0 (Linux; Android 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36
  • Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763
  • Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

You could also check on your own. One of my sites with this patch is https://lists.jc-otto.de

@racke
Copy link
Contributor

racke commented Jun 29, 2020

@derOtto Can you please add your browser version?

@ikedas
Copy link
Member

ikedas commented Jul 1, 2020

@derOtto, does this work?

diff --git a/www/js/sympa.js b/www/js/sympa.js
index 3ff5557..c285220 100644
--- a/www/js/sympa.js
+++ b/www/js/sympa.js
@@ -208,6 +208,9 @@ $(function() {
        $('.heavyWork').on('click', function(){
                $('#loading').show();
        });
+
+       // and hide it.
+       $('#loading').hide();
 });

 // fade effect for notification boxes

I'm not sure because I couldn't reproduce reported behavior.

@derOtto
Copy link

derOtto commented Jul 1, 2020

@ikedas: it also disappears, but as with the original file, some sites are not probably loaded (for example lists) with the original or the suggestion from you.
With hiding it, when page is fully loaded (my sulution), all content shows up.

I temporary deployed two endpoints, serving all the suggestions. They are all the same only differing in nginx serving the different sympa.js':

@ikedas
Copy link
Member

ikedas commented Jul 1, 2020

@derOtto , your Sympa is not configured properly:

With your configuration, style sheet added by Sympa is completely omitted. If it is properly configured, it will be shown as this page and proposed fixes may not be needed:

Please check your configuration. If you want help about configuration, please submit another issue.

@derOtto
Copy link

derOtto commented Jul 1, 2020

With your configuration, style sheet added by Sympa is completely omitted. If it is properly configured, it will be shown as this page and proposed fixes may not be needed

That was the right clue, leading me to this thread.
After that I could find the right directories in the apache conf (/etc/apache2/conf-available/sympa.conf) and only there. There is no conf or snippet in in the nginx directory and no hint in the gpldoc.

  • So the /css-sympa is in the old /var/lib/sympa/css where the old static_content (/var/lib/sympa/static_content) was( before upgrade).
  • /static-sympa moved to /usr/share/sympa/static_content
  • /pictures-sympa is only in /var/lib/sympa/pictures but dir is empty (only empty index.html file, like old static_content).

It was quite confusing that there was no error or warning, css was missing.

So for me this issue is fixed, but I don't know about @micah.

Unfortunately in the repo issues are deactivated but maybe you (the sympa authors) could make a todo about adding this information to the http-server and directory layout parts. --thx

@ikedas
Copy link
Member

ikedas commented Jul 3, 2020

@derOttto, when you upgrade earlier version of Sympa, you'd be better to read Upgrading note in documentation.

There are several changes on paths for CSS and so on, as of version 6.2.28.

@ikedas
Copy link
Member

ikedas commented Jul 3, 2020

This issue is closed at present.
Though what @micah reported might not be the same as what @derOtto wrote.

@ikedas ikedas closed this as completed Jul 3, 2020
@michaellaunay
Copy link

I had the same issue on Debian 10 when i used sympa_wizard, because it generate /var/lib/sympa/css/MySite/style.css which is not in /usr/share/sympa/static_content/ so not accesible from navigator.
I just move /var/lib/sympa/css to /usr/share/sympa/static_content/ and it works.
Debian 10 sympa package installation works fine, wizard breaks default configuration.
Debian 11 sympa doesn't work at all.

@ikedas
Copy link
Member

ikedas commented Jan 21, 2022

@michaellaunay , sympa_wizard will never generate style.css.
About problems on Debian packages, please ask the Debian team.

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

7 participants