Post Pay Counter

The best way to pay authors on WordPress

  • Features
    • PRO version
  • Cart
    • Addons
  • Documentation
  • Support

Unable to obtain GA update lock

by

› Forums › Post Pay Counter PRO › Support › Unable to obtain GA update lock

We are based in Europe with a GMT+1/GMT+2 time zone - support replies may be delayed due to time zone differences with your country.

  • This topic has 6 replies, 1 voice, and was last updated 2 years, 1 month ago by Davide.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 28, 2023 at 3:50 pm #245148
    Davide
    Guest

    Abbiamo la versione PRO da diverso tempo.
    Ogni mattina, via wp-cli, aggiorno i dati Analytics con un cron. Tutto ha sempre funzionato alla perfezione ma da questa mattina ho il seguente errore:

    /usr/local/bin/wp ppc ga process –allow-root
    Error: Unable to obtain GA update lock

    E mi rimangono i dati di ieri in coda, senza essere processati. Il file scaricato da Analytics è ancora sul server.
    Vorrei evitare di azzerare lo storico, importando di nuovo i dati da un anno a questa parte. Senza parlare della mole di dati da analizzare…

    Ho provato a debuggare un po’ seguendo il codice ma non capisco dove sta l’inghippo…
    Potresti aiutarmi a risolvere il problema o almeno a capire quale può essere la causa?

    Grazie,
    Davide.

    March 28, 2023 at 4:04 pm #245150
    Stefano
    Keymaster

    Ciao Davide,
    hai aggiornato la PRO alla version 1.9? Il problema e’ iniziato dopo l’aggiornamento?

    March 28, 2023 at 4:08 pm #245152
    Stefano
    Keymaster

    Il modo bruto di risolvere il problema e’ cancellare il transient ppcp_ga_rows_update_running (sono salvati nella tabella wp_options). Puoi anche guardarne il valore, prima di cancellarlo. Il motivo per cui non sia stato cancellato come dovrebbe pero’ non lo so, senza altre indagini.

    March 28, 2023 at 4:13 pm #245154
    Davide
    Guest

    Sì, l’update alla 1.9 lo ha fatto automaticamente ieri (vedo dalla data dei file sul server) non ci avevo fatto caso.
    Probabilmente allora è l’update che sta dando problemi.
    Ti riporto il bash script che eseguo con un cron giornalmente (e che ha sempre funzionato correttamente):

    #!/bin/bash
    cd [directory di wp]
    /usr/local/bin/wp ppc ga incremental-update –allow-root
    /usr/local/bin/wp ppc ga process –allow-root

    Fammi sapere…

    March 28, 2023 at 4:16 pm #245155
    Davide
    Guest

    Avevo controllato anche io i valori su wp_options ma non ho proprio quella chiave sul db (ppcp_ga_rows_update_running)
    Provo ad aggiungerla? Con quale valore?

    March 29, 2023 at 12:46 pm #245158
    Davide
    Guest

    Stefano, hai novità? Vuoi un accesso temporaneo alla Dashboard per verificare tu stesso? Non riesco a risolvere da solo purtroppo e quei dati mi servono integrati in Post Pay per pagare i redattori!

    Anche oggi così:
    /usr/local/bin/wp ppc ga process –allow-root
    Error: Unable to obtain GA update lock

    E sul db non ho transient ne opzioni sullo stato running di ppc.

    Fammi sapere,
    Grazie!

    Davide.

    March 29, 2023 at 3:26 pm #245159
    Davide
    Guest

    Ok, intanto ho ripristinato la versione 1.8.9.3 e funziona :))
    Evito di aggiornare finché non risolvete la cosa.

    Grazie comunque.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Unable to obtain GA update lock’ is closed to new replies.

Your cart

Number of items in cart: 0

  • Your cart is empty.
  • Total: €0.00
  • Checkout

What are you looking for?

BEFORE POSTING

Before posting, please please please do have a look at our Documentation section. Your problem may be addressed there, allowing you to solve it without help from us :)

Copyright © 2025 · Centric Theme on Genesis Framework · WordPress · Log in