Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Firefox loading S..l..o..w

  1. #11
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    27,324

    Default Re: Firefox loading S..l..o..w

    I am not quite undrstand what is/was wrong in your system, but because tinkering with ownership and/or permission of system files (like /tmp) is rather dangerous, here is what it should be:
    Code:
    boven:~ # ll -d /tmp
    drwxrwxrwt 16 root root 340 Oct 28 09:45 /tmp
    boven:~ #
    Mind the last character of the persmissions: t.
    Henk van Velden

  2. #12
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    3,457

    Exclamation Re: Firefox loading S..l..o..w (Resolved)

    Quote Originally Posted by montana_suse_user View Post
    firefox was trying to access a file in /tmp/firefox
    Assuming that, “/tmp” has been mounted correctly, the protections on “/tmp” have to be as follows:
    Code:
     > LANG=C stat /tmp
      File: /tmp
      Size: 4096            Blocks: 8          IO Block: 4096   directory
    Device: 811h/2065d      Inode: 2           Links: 41
    Access: (1777/drwxrwxrwt)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2020-10-28 12:16:55.402737721 +0100
    Modify: 2020-10-28 12:22:19.898330898 +0100
    Change: 2020-10-28 12:22:19.898330898 +0100
     Birth: -
     >
    NB: the “T” bit …

    Any user directories present in the directory “/tmp/” – especially those used by Mozilla/Firefox – usually have protections as follows:
    Code:
     > LANG=C stat /tmp/mozilla_???0
      File: /tmp/mozilla_???0
      Size: 4096            Blocks: 8          IO Block: 4096   directory
    Device: 811h/2065d      Inode: 81922       Links: 2
    Access: (0700/drwx------)  Uid: ( 1000/     ???)   Gid: (  100/   users)
    Access: 2020-10-26 12:53:38.362153364 +0100
    Modify: 2020-10-16 09:46:06.737240565 +0200
    Change: 2020-10-26 12:53:38.362153364 +0100
     Birth: -
     >

  3. #13
    Join Date
    Dec 2008
    Location
    Montana, USA
    Posts
    603

    Default Re: Firefox loading S..l..o..w

    The file permissions on /tmp are as you recommend. Thay is, the t is there at the end.
    However,
    there are no /tmp/mozilla* folders in /tmp. My system has only a /tmp/firefox folder there that relates to firefox. The permissions are drwxrwxrwt
    If I set them to drwx------ as you show, then firefox is back to taking 5 or more seconds to load.

    I ran
    Code:
    strace firefox 2>&1 | awk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $0 }'>straceoutput
    and in the output was the section
    Code:
    stat("/tmp/firefox", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
    stat("/tmp/firefox/.parentlock", 0x7ffdc6428800) = -1 EACCES (Permission denied)
    openat(AT_FDCWD, "/tmp/firefox/.parentlock", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permission denied)
    lstat("/tmp/firefox/lock", 0x7ffdc64281f0) = -1 EACCES (Permission denied)
    uname({sysname="Linux", nodename="UNIVAC", ...}) = 0
    stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=647, ...}) = 0
    getpid()                                = 10981
    symlink("192.168.3.5:10981", "/tmp/firefox/lock") = -1 EACCES (Permission denied)
    futex(0x7f0616dbb7b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=791902000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb7b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=792021000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb7b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=792084000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb7b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=792147000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb7b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=792211000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb7b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=792275000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb7b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=792339000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb7b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=792403000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb7b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=792467000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    stat("/tmp/firefox", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
    stat("/tmp/firefox/.parentlock", 0x7ffdc6428800) = -1 EACCES (Permission denied)
    openat(AT_FDCWD, "/tmp/firefox/.parentlock", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permission denied)
    lstat("/tmp/firefox/lock", 0x7ffdc64281f0) = -1 EACCES (Permission denied)
    uname({sysname="Linux", nodename="UNIVAC", ...}) = 0
    stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=647, ...}) = 0
    getpid()                                = 10981
    symlink("192.168.3.5:10981", "/tmp/firefox/lock") = -1 EACCES (Permission denied)
    futex(0x7f0616dbb1b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=892793000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb1b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=892967000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb1b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=893078000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb1b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=893185000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb1b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=893252000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb1b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=893319000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb1b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=893386000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x7f0616dbb1b0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1596814602, tv_nsec=893453000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)
    futex(0x7f062c14f450, FUTEX_WAKE_PRIVATE, 1) = 0
    This block was repeated 50 plus times over the course of nearly 4 seconds. I keep seeing the permission denied message when the file in /tmp/firefox was trying to be accessed. As I stated, it takes about 5 seconds for firefox to come up on my screen and only about 1 second when I allow access.

    Perhaps I should just backup my boolmarks, uninstall firefox, do a find as root for anything that has firefox or mozill* on my system and remove it and then reinstall firefox. The fact that my system has a firefox directory and none of my other computers have one but rather a mozilla directory leads me to think my system is too old.

  4. #14
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,688

    Default Re: Firefox loading S..l..o..w

    Quote Originally Posted by montana_suse_user View Post
    ...
    Perhaps I should just backup my boolmarks, uninstall firefox, do a find as root for anything that has firefox or mozill* on my system and remove it and then reinstall firefox. The fact that my system has a firefox directory and none of my other computers have one but rather a mozilla directory leads me to think my system is too old.
    I see you've already tried starting in "safe mode", but you could, with firefox closed, try temporarily renaming your firefox profile from "~/.mozilla" to, for example, "~/.mozilla-saved" Then restart firefox to see if the problem persists.
    Regards, Paul

    2x Tumbleweed (Snapshot: 20201123) KDE Plasma 5
    2x Leap 15.2 KDE Plasma 5

  5. #15
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    3,457

    Exclamation Re: Firefox loading S..l..o..w

    Quote Originally Posted by montana_suse_user View Post
    My system has only a /tmp/firefox folder there that relates to firefox. The permissions are drwxrwxrwt
    If I set them to drwx------ as you show, then firefox is back to taking 5 or more seconds to load.
    Yes, but, who is the owner of “/tmp/firefox”?
    • If it's “root” then, it needs “group” and “other” (“world”) “rwx” permissions …

  6. #16
    Join Date
    Dec 2008
    Location
    Montana, USA
    Posts
    603

    Default Re: Firefox loading S..l..o..w

    Quote Originally Posted by dcurtisfra View Post
    Yes, but, who is the owner of “/tmp/firefox”?
    • If it's “root” then, it needs “group” and “other” (“world”) “rwx” permissions …
    Yes, both owner and group were root. But rwx was not set on the firefox file. I changed it and firefox worked correctly, but I understood the previous postings to say that it should not be that way. Anyhow, I had some other issues and did a wipe of / and a fresh install.

    Thanks
    Bart

  7. #17
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    27,324

    Default Re: Firefox loading S..l..o..w

    Maybe /tmp/firefox is gone for good now. I do not have it. In any case, as long as root does not use firefox (which root of course should never do), I do not see how such a file can be created.
    Henk van Velden

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •