Error during initial install: unexpected EOF while looking for matching '

Bugs in eFa 5
Post Reply
User avatar
pdwalker
Posts: 1583
Joined: 18 Mar 2015 09:16

Error during initial install: unexpected EOF while looking for matching '

Post by pdwalker »

Alma Linux 9.4, minimal, fresh, install

From the /var/log/eFa/build.log

Code: Select all

* snip * 
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
Created symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service → /usr/lib/systemd/system/php-fpm.service.
Removed "/etc/systemd/system/multi-user.target.wants/crond.service".
Removed "/etc/systemd/system/multi-user.target.wants/chronyd.service".
Removed "/etc/systemd/system/multi-user.target.wants/firewalld.service".
Removed "/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service".
Configuring services...done
/usr/src/eFa/eFa-config-5.0.0.sh: line 183: unexpected EOF while looking for matching `''
/usr/src/eFa/eFa-config-5.0.0.sh: line 190: syntax error: unexpected end of file
Configuring eFaInit...
Configuring eFaInit...done
Build completed!
From /usr/src/eFa/eFa-config-5.0.0.sh, I can see the following with syntax highlighting turned on:
Screenshot 2024-07-25 at 13.05.29.png
Screenshot 2024-07-25 at 13.05.29.png (174.31 KiB) Viewed 18528 times
Line 119 seems to be the issue as the command is not complete.

Edit: From branch 5.0.0-8, the line was previously:

Code: Select all

sed -i '1i\\/usr\/sbin\/eFa-Init' /root/.bashrc
Edit 2: I commented out line 119, ran /usr/src/eFa/eFa-config-5.0.0.sh, rebooted and ran /usr/sbin/eFa-Init by hand.
User avatar
pdwalker
Posts: 1583
Joined: 18 Mar 2015 09:16

Re: Error during initial install: unexpected EOF while looking for matching '

Post by pdwalker »

At the final stage of running /usr/sbin/eFa-Init

Code: Select all

/usr/sbin/eFa-Commit: line 1066: unexpected EOF while looking for matching `''
/usr/sbin/eFa-Commit: line 1078: syntax error: unexpected end of file
[eFa] - Error initializing system!  Please try again...
That looks familiar...

Code: Select all

 919   # Remove EFA-Init from console
 920   sed -i '/^if ! [ -z \"\$PS1\" ]; then \/usr\/sbin\/eFa-Init; fi/d" /root/.bashrc
I commented out line 920 and 921 and reran eFa-Init which seems to have worked. Rebooting...

Edit: rebooted. Everything appears to work as it should.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Error during initial install: unexpected EOF while looking for matching '

Post by shawniverson »

Thanks, fixing!
Post Reply