• Categories
  • Recent
  • Tags
Collapse
  1. Home
  2. Cookie 5
  3. ClearSafariCache.sh Stuck

ClearSafariCache.sh Stuck

Scheduled Pinned Locked Moved Cookie 5
24 Posts 7 Posters 9.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    grettir
    wrote on last edited by SweetP
    #3

    Here's mine:

    -rwxr-xr-x@   1 grettir  admin    47 May 27 15:28 clearCookies.sh
    -rwxr-xr-x@   1 grettir  staff   119 Nov 18 06:04 clearSafariCache.sh
    -rwxr-xr-x@   1 grettir  admin   159 May 27 15:28 clearSafariHistory.sh
    -rwxr-xr-x@   1 grettir  staff    89 Nov 18 06:04 clearSafariTPCache.sh
    -rwxr-xr-x@   1 grettir  admin   193 Jul 20 02:17 clearSafariTPHistory.sh
    

    The only obvious difference was that three of the scripts (although not the problematic one) were owned by the admin group. (Not sure why.) So I chowned the files to "grettir:staff" and, oddly enough, that appears to have resolved the problem. (Again, not sure why.)

    I'll let you know if the problem reappears, but, otherwise, consider the issue resolved.

    Thanks for your help.

    1 Reply Last reply
    0
    • SweetPS Online
      SweetPS Online
      SweetP
      wrote on last edited by
      #4

      ok great!
      thanks for letting me know

      ~
      Russell
      SweetPProductions.com

      1 Reply Last reply
      0
      • M Offline
        M Offline
        macdish
        wrote on last edited by SweetP
        #5

        Cookie 5.2.1 sticks at same point indefinitely. The output of scripts for me is:

        -rwxr-xr-x@ 1 ronaldgold  admin   47 Feb  7  2016 clearCookies.sh
        -rwxr-xr-x@ 1 ronaldgold  admin  119 Nov 18 08:04 clearSafariCache.sh
        -rwxr-xr-x@ 1 ronaldgold  admin  159 Feb  7  2016 clearSafariHistory.sh
        

        I seem to be lacking two of the scripts listed in your output and they are all assigned to admin. What next?

        iMac (late 2013) MacOS 10.12.1

        1 Reply Last reply
        0
        • M Offline
          M Offline
          macdish
          wrote on last edited by
          #6

          Problem seems to be solved. I deleted Cookie Application and associated folders and files, rebooted computer, and reinstalled Cookie. I still have only three of the 5 scripts listed a being in the com.sweetpproductions.Cookie5 Folder, but clear safari cache no longer hangs.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            macdish
            wrote on last edited by
            #7

            I spoke too soon. Less than 24 hours after reinstalling Cookie 5, Cookie once again gets stuck on clearSafariCache.sh. Any more suggestions?

            1 Reply Last reply
            0
            • SweetPS Online
              SweetPS Online
              SweetP
              wrote on last edited by SweetP
              #8

              ok try this:
              navigate to the Applications Script folder
              ~/Library/Application Scripts/com.sweetpproductions.Cookie5

              then open Terminal.app
              type cd then drag the scripts folder onto the terminal, and press RETURN
              then type these 3 commands, each followed by pressing RETURN:

              chown :staff clearCookies.sh
              chown :staff clearSafariCache.sh
              chown :staff clearSafariHistory.sh
              

              also the extra scripts are only needed if you have Safari Technology Preview Installed.
              can you let me know if that works

              ~
              Russell
              SweetPProductions.com

              1 Reply Last reply
              0
              • M Offline
                M Offline
                macdish
                wrote on last edited by SweetP
                #9

                That seems to have done the trick. I can quit safari and Cookie empties the cache without any problem.
                The chown command changed

                -rwxr-xr-x@ 1 ronaldgold  admin   47 Feb  7  2016 clearCookies.sh
                -rwxr-xr-x@ 1 ronaldgold  admin  119 Nov 18 08:04 clearSafariCache.sh
                -rwxr-xr-x@ 1 ronaldgold  admin  159 Feb  7  2016 clearSafariHistory.sh
                

                to

                -rwxr-xr-x@ 1 ronaldgold  staff   47 Nov 18 08:04 clearCookies.sh
                -rwxr-xr-x@ 1 ronaldgold  staff  119 Nov 18 08:04 clearSafariCache.sh
                -rwxr-xr-x@ 1 ronaldgold  staff  159 Nov 18 08:04 clearSafariHistory.sh
                
                1 Reply Last reply
                0
                • SweetPS Online
                  SweetPS Online
                  SweetP
                  wrote on last edited by
                  #10

                  perfect!
                  im not sure why they are installing with the wrong permissions to begin with,
                  but thats great its a simple fix.

                  ~
                  Russell
                  SweetPProductions.com

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    pumpkin
                    wrote on last edited by
                    #11

                    I deleted Cookie and all associated files and scripts, reinstalled and still experienced the clearSafariCache.sh endless process. I then searched the forum and found your "chown " workaround which did the trick. Hopefully this is a temporary fix to be corrected in some future release, yes?

                    1 Reply Last reply
                    0
                    • SweetPS Online
                      SweetPS Online
                      SweetP
                      wrote on last edited by
                      #12

                      perfect,

                      Im not sure why the files are installed with the wrong permissions. but ill look into it.

                      ~
                      Russell
                      SweetPProductions.com

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        pumpkin
                        wrote on last edited by SweetP
                        #13

                        The clearSafariCache.sh endless process has returned despite changing permissions as you described previously. Permissions are:

                        -rwxr-xr-x@ 1 cj  staff   47 Nov 18 08:04 clearCookies.sh
                        -rwxr-xr-x@ 1 cj  staff  119 Nov 18 08:04 clearSafariCache.sh
                        -rwxr-xr-x@ 1 cj  staff  159 Nov 18 08:04 clearSafariHistory.sh
                        

                        Even with Safari quit if I run Cookie and then quit Cookie the endless process returns. I have removed Cookie from StartUp Items for the time being in the hope you can find a permanent solution to this problem.

                        1 Reply Last reply
                        0
                        • SweetPS Online
                          SweetPS Online
                          SweetP
                          wrote on last edited by
                          #14

                          are you using the Mac App Store, or the version from my store @pumpkin?

                          ~
                          Russell
                          SweetPProductions.com

                          1 Reply Last reply
                          0
                          • P Offline
                            P Offline
                            pumpkin
                            wrote on last edited by
                            #15

                            Purchase directly from you april 30, 2016. Order #27069. Current rev 5.2.1.

                            1 Reply Last reply
                            0
                            • SweetPS Online
                              SweetPS Online
                              SweetP
                              wrote on last edited by
                              #16

                              have you tried a computer restart?
                              that can sometimes fix strange issues like this

                              ~
                              Russell
                              SweetPProductions.com

                              1 Reply Last reply
                              0
                              • P Offline
                                P Offline
                                pumpkin
                                wrote on last edited by
                                #17

                                Not wanting to jinx anything but I did a reboot and so far all is well!

                                1 Reply Last reply
                                0
                                • R Offline
                                  R Offline
                                  ralf.papenkordt
                                  wrote on last edited by SweetP
                                  #18

                                  I have got the same problem and found a solution: Change the script clearSafariCache.sh from

                                  find /private/var/folders \! -name "*SafariTechnologyPreview*" -name "*com.apple.Safari*" -exec rm -r {} \;
                                  

                                  to

                                  find /private/var/folders \! -name "*SafariTechnologyPreview*" -name "*com.apple.Safari*" -exec rm -r {} \; 2>/dev/null
                                  

                                  Because the original script throws "Permission denied" errors and therefore opens the file descriptor stderr, it seems that the parent process (com.apple.foundation.UserScriptService) can't close it as long as a file is open.

                                  1 Reply Last reply
                                  0
                                  • SweetPS Online
                                    SweetPS Online
                                    SweetP
                                    wrote on last edited by
                                    #19

                                    Thanks ralf!

                                    I'll update the script to your solution.
                                    🙂

                                    ~
                                    Russell
                                    SweetPProductions.com

                                    1 Reply Last reply
                                    0
                                    • A Offline
                                      A Offline
                                      alohart
                                      wrote on last edited by
                                      #20

                                      This seems to be occurring with the App Store Cookie 5.12 under macOS 10.15.6 as well as earlier macOS versions. I see a gear icon appear in the menu bar. When I click on the gear icon, I see "clearSafariCache.sh Running" followed by "clearSafariCache.sh Failed". I've checked all the "fixes" in this thread and found that none apply to my situation. Any ideas?

                                      1 Reply Last reply
                                      0
                                      • SweetPS Online
                                        SweetPS Online
                                        SweetP
                                        wrote on last edited by
                                        #21

                                        I have this fixed in Cookie v6.0.17

                                        ~
                                        Russell
                                        SweetPProductions.com

                                        A 1 Reply Last reply
                                        0
                                        • SweetPS SweetP

                                          I have this fixed in Cookie v6.0.17

                                          A Offline
                                          A Offline
                                          alohart
                                          wrote on last edited by
                                          #22

                                          @SweetP If your Cookie v6.0.17 fix works in Cookie 5.12, what would that fix be?

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags