AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Syntax error: Unterminated quoted string after update

Open marufmax opened this issue 2 years ago • 6 comments

Prerequisites

  • [X] I have checked the Wiki and Discussions and found no answer

  • [X] I have searched other issues and found no duplicates

  • [X] I want to report a bug and not ask a question

Operating system type

Linux, Other (please mention the version in the description)

CPU architecture

64-bit ARM

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

latest

Description

What did you do?

Update Adguard manually

Expected result

To update to new version

Actual result

./AdGuardHome: 1: Syntax error: Unterminated quoted string

Screenshots (if applicable)

image

Additional information

marufmax avatar Oct 03 '22 18:10 marufmax

@marufmax, hello and thanks for the report. It seems you've fetched the build for a wrong architecture. What does the following command print on the Raspberry Pi?

uname -a

Some versions of Raspberry Pi are having the armv7 architecture instead of arm64.

EugeneOne1 avatar Oct 03 '22 20:10 EugeneOne1

same issue here: Result of uname -a Linux berry4 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64 GNU/Linux

Shrekmachine avatar Oct 03 '22 21:10 Shrekmachine

Fun fact. After I manually copied the AdGuardHome Version: v0.108.0-b.15 from the agh-backup folder and restarted service, I got the backup offered again via Fontend UI. I tried again and this time it worked.

Shrekmachine avatar Oct 03 '22 22:10 Shrekmachine

Same here, likely read these instructions too fast. Between arm64 and amd64, one can easily miss it/be confused.

jmichelgarcia avatar Oct 03 '22 22:10 jmichelgarcia

I faced with error earlier (on step 5 from Wiki instruction)

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

For me, It turned out that should be option CAPITAL -O instead of -o on step 1 (downloading) for wget command.

With -o file is downloaded as text file without wget's progress output:
pay attention that I use ARM build, filename is different

$ file /tmp/AdGuardHome_linux_arm64.tar.gz
/tmp/AdGuardHome_linux_arm64.tar.gz: Unicode text, UTF-8 text

With correct option -O you should see similar output:

wget 'https://static.adguard.com/adguardhome/release/AdGuardHome_linux_arm64.tar.gz'
--2022-10-04 09:35:18--  https://static.adguard.com/adguardhome/release/AdGuardHome_linux_arm64.tar.gz
Resolving static.adguard.com (static.adguard.com)... 104.20.90.49, 172.67.3.157, 104.20.91.49, ...
Connecting to static.adguard.com (static.adguard.com)|104.20.90.49|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10999013 (10M) [application/octet-stream]
Saving to: ‘AdGuardHome_linux_arm64.tar.gz’

AdGuardHome_linux_arm64.tar.gz                 100%[====================================================================================================>]  10.49M  9.81MB/s    in 1.1s

2022-10-04 09:35:20 (9.81 MB/s) - ‘AdGuardHome_linux_arm64.tar.gz’ saved [10999013/10999013]

And if you check file type, it will be "gzip compressed data, max compression, from Unix, ..."

$ file /tmp/AdGuardHome_linux_arm64.tar.gz
/tmp/AdGuardHome_linux_arm64.tar.gz: gzip compressed data, max compression, from Unix, original size modulo 2^32 36300800

@EugeneOne1 I don't want to create a new tiny issue. Maybe you should correct this wget download command on Wiki page? 👀

hotenov avatar Oct 04 '22 07:10 hotenov

@hotenov, well this is just embarrassing on our part, and you are absolutely correct. We have just pushed a fix to that Wiki page.

ainar-g avatar Oct 04 '22 17:10 ainar-g