overcast07 / wayback-machine-spn-scripts

Bash scripts which interact with Internet Archive Wayback Machine's Save Page Now
MIT License
107 stars 11 forks source link

'grep: warning: ? at start of expression' #29

Open ghost opened 1 year ago

ghost commented 1 year ago

The following message is repeatedly printed on my system when using the tool:

grep: warning: ? at start of expression

Fedora 38 grep 3.8 the latest version of spn.sh at the time of writing: https://github.com/overcast07/wayback-machine-spn-scripts/commit/31d6bf1cf8fa7ea6150eb7face5c4780368263fe

AlexanderRitter02 commented 5 months ago

Also started happening to me with a new server (previously working with grep 3.7). Does not cause any actual issues during archiving I noticed.

Grep:

grep (GNU grep) 3.11
grep -P uses PCRE2 10.42 2022-12-11

spn.sh: https://github.com/overcast07/wayback-machine-spn-scripts/commit/31d6bf1cf8fa7ea6150eb7face5c4780368263fe System: Ubuntu 24.04 LTS

mskiptr commented 2 months ago

I forgot to run the URL list through uniq and I've been getting four of these warnings after every duplicate job submission.

I'm running Arch Linux with wayback-spn-script-git version r94.af5f384-1 from AUR and grep-3.11-1 from official repositories.

examples ``` ... 2024-09-14 09:54:51 [Job completed] [First archive] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/ALL-CAMxxx_Tools.zip 2024-09-14 09:54:53 [Job submitted] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/ALL-CAMxxx_MAC_Plugin.zip The same snapshot had been made 2 minutes ago. You can make new capture of this URL after 1 hour. grep: warning: ? at start of expression grep: warning: ? at start of expression grep: warning: ? at start of expression grep: warning: ? at start of expression 2024-09-14 09:54:54 [Job submitted] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/ALL-CAMxxx_ALL-VMS.zip 2024-09-14 09:54:56 [Request failed] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/ALL-CAMxxx_Tools.zip You have already reached the limit of active Save Page Now sessions. Please wait for a minute and then try again. 2024-09-14 09:54:59 [Request failed] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/ALL-CAMxxx_Tools.zip You have already reached the limit of active Save Page Now sessions. Please wait for a minute and then try again. 2024-09-14 09:55:03 [Job submitted] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/ALL-CAMxxx_Tools.zip The same snapshot had been made 3 minutes ago. You can make new capture of this URL after 1 hour. grep: warning: ? at start of expression grep: warning: ? at start of expression grep: warning: ? at start of expression grep: warning: ? at start of expression 2024-09-14 09:55:04 [Job completed] [First archive] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/ALL-CAMxxx_MAC_Plugin.zip 2024-09-14 09:55:06 [Job completed] [First archive] https://www.allnet.de/ftp-downloads/allnet/kamera/all-cam2305-lw/ALL-CAM2305-LW_QIG_DE.pdf 2024-09-14 09:55:06 [Job submitted] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/WebComponents_Plugin.zip The same snapshot had been made 2 minutes ago. You can make new capture of this URL after 1 hour. grep: warning: ? at start of expression grep: warning: ? at start of expression grep: warning: ? at start of expression grep: warning: ? at start of expression 2024-09-14 09:55:07 [Job completed] [First archive] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/WebComponents_Plugin.zip 2024-09-14 09:55:09 [Job completed] [First archive] https://www.allnet.de/ftp-downloads/allnet/kamera/all-cam2306-c/ALL-CAM2306-C_QIG_DE.pdf 2024-09-14 09:55:11 [Status request failed] https://www.allnet.de/ftp-downloads/allnet/vdsl/all-bm310/ALL-BM310_GPL_C.1.5.a.zip 2024-09-14 09:55:11 [Job completed] [First archive] https://www.allnet.de/ftp-downloads/allnet/kamera/all-cam2306-c/ALL-CAM23xx_UM_EN.pdf 2024-09-14 09:55:11 [Job submitted] https://www.allnet.de/ftp-downloads/allnet/kamera/all-cam2372-wp/ALL-CAM2372-WP_UM_EN.pdf 2024-09-14 09:55:12 [Job submitted] https://www.allnet.de/ftp-downloads/allnet/kamera/all-cam2372-wp/ALL-CAM2372-WP_QIG_DE.pdf 2024-09-14 09:55:12 [Request failed] https://www.allnet.de/ftp-downloads/allnet/ce/ALL-CAM2372-WP_CE.pdf ... 2024-09-14 09:56:24 [Job submitted] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/ALL-CAMxxx_ALL-VMS.zip 2024-09-14 09:56:24 [Job submitted] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/ALL-CAMxxx_MAC_Plugin.zip 2024-09-14 09:56:24 [Job submitted] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/ALL-CAMxxx_MAC_Plugin.zip The same snapshot had been made 3 minutes ago. You can make new capture of this URL after 1 hour. The same snapshot had been made 3 minutes ago. You can make new capture of this URL after 1 hour. grep: warning: ? at start of expression grep: warning: ? at start of expression grep: warning: ? at start of expression grep: warning: ? at start of expression grep: warning: ? at start of expression grep: warning: ? at start of expression grep: warning: ? at start of expression grep: warning: ? at start of expression 2024-09-14 09:56:26 [Request failed] https://www.allnet.de/ftp-downloads/allnet/kamera/all-camxxx/ALL-CAMxxx_Tools.zip You have already reached the limit of active Save Page Now sessions. Please wait for a minute and then try again. ... ```