New PI install - Cannot change Allmon3 credentials

Hello, new user and please bare with me not a Linux expert, I am stuck in a new PI3B install.Everything seems to be working (I could not test yet) but I cannot reset Allmon3 username and pass.

I went to Terminal and was able to remove the default login but cannot add new user login. When I enter sudo allmon3-passwd <new user login> I am getting this: bash: syntax error near unexpected token `newline’

Allmon3 daemon is running in services and I see no error, but cannot figure out how to fix this and add new User and Pass.I tried to stop the service and repeat the above commands but same thing.

I appreciate any help!

That makes it sound like you may have accidentally overwritten allmon3-passwd with a broken bash script? Do a sudo apt install --reinstall allmon3 and try again.

1 Like

Thank you fpr the quick response, I am getting the following:
D@node64103:~ $ sudo apt install --reinstall allmon3
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/3,687 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database … 105010 files and directories currently installed.)
Preparing to unpack …/allmon3_1.4.2-1.deb12_all.deb …
Unpacking allmon3 (1.4.2-1.deb12) over (1.4.2-1.deb12) …
Setting up allmon3 (1.4.2-1.deb12) …
apache2_invoke proxy_http: already enabled
apache2_invoke proxy_wstunnel: already enabled
apache2_invoke rewrite: already enabled
apache2_invoke allmon3: already enabled
dpkg: error processing package bsdextrautils (–configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
dpkg: dependency problems prevent processing triggers for man-db:
man-db depends on bsdextrautils | bsdmainutils (<< 12.1.1~); however:
Package bsdextrautils is not configured yet.
Package bsdmainutils is not installed.

dpkg: error processing package man-db (–configure):
** dependency problems - leaving triggers unprocessed**
Errors were encountered while processing:
** bsdextrautils**
** man-db**
E: Sub-process /usr/bin/dpkg returned an error code (1)

I imaged another sd card and trying a new installation from scratch , the only thing is that the security updates are so slow to load.

Something is wrong…different card, new installation, same error. I installed all updates available, when I go to the last step to change Allmon3 password, I get this:
D@node64103:~ $ sudo allmon3-passwd --delete allmon3
D@node64103:~ $ sudo allmon3-passwd
bash: syntax error near unexpected token `newline’

Not sure if helps but right before trying to change the Allmon3 pass I did a backup in Asterisk.

D@node64103:~ $ sudo apt install --reinstall allmon3
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages were automatically installed and are no longer required:
linux-headers-6.1.0-22-arm64 linux-headers-6.1.0-22-common
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/3,600 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database … 121409 files and directories currently installed.)
Preparing to unpack …/allmon3_1.4.2-1.deb12_all.deb …
Unpacking allmon3 (1.4.2-1.deb12) over (1.4.2-1.deb12) …
Setting up allmon3 (1.4.2-1.deb12) …
apache2_invoke proxy_http: already enabled
apache2_invoke proxy_wstunnel: already enabled
apache2_invoke rewrite: already enabled
apache2_invoke allmon3: already enabled
Processing triggers for man-db (2.11.2-2) …
D@node64103:~ $ sudo allmon3-passwd --delete allmon3
allmon3-passwd: ERROR: No user allmon3 in file

I don’t know what’s going on with your system. The tool itself works as follows:

jdm@node460180:~ $ sudo allmon3-passwd --delete allmon3
jdm@node460180:~ $ sudo allmon3-passwd 
usage: allmon3-passwd [-h] [--delete] [--debug] [--file FILE] [--version] user
allmon3-passwd: error: the following arguments are required: user
jdm@node460180:~ $ sudo allmon3-passwd jdm
Enter the password for jdm: 
Confirm the password for jdm:

Doing a --reinstall won’t erase configuration files you’ve customized so I would not expect the allmon3 user to have returned. The command allmon3-passwd hawk600 should prompt you to set a password. There is no Bash involved at all so the error about unexpected token near newline is very puzzling.

What is the output of head -n5 $(which allmon3-passwd)?

Thanks, I think I got it after a couple of attempts, it asked me for the new password, I entered it and restarted Allmon3 but I see nothing else after that. Does it look ok to you?
D@node64103:~ $ sudo allmon3-passwd D
Enter the password for D:
Confirm the password for D:
D@node64103:~ $ sudo systemctl restart allmon3

It is a properly behaved unix utility in that success is no output. :slight_smile:

Awesome, thank you very much for your help!
Now trying to learn how to test it, I can connect a radio to it if needed but wondering it should work standalone, like the raspberry only.
It is hard to find good tutorials or step by step in the net.
73

No, it will not work with just the Pi. You need a supported CM108/CM119 audio adapter and a radio/repeater hooked up to it. If you’re trying to build a radio-less node you can do it with just the audio interface.

I am a strong proponent of the Masters Communications RA board personally. There’s lots of information in the manual and in this forum on how to do just about anything ASL does.

The radio will be easier (I think), already have some that I use with the same PI, different SD card running either Pi-Star or WSPD, using the radio as modem for DMR. Need to do some research on the audio adapter you are mentioning. I can buy one if needed, another option I was searching yesterday would be something like a SHARI?

Found this one in the drawer! :slight_smile: I found the RA site and might buy one of their products but if I can at least jump start with my sound card and radio it will be great.