Sorry!
Fixed now.
Sorry!
Fixed now.
Hi Marcel! I'm installing the newest version of conquest on ubuntu server and this is my second time through. Both times, I've gotten to this point and it seems to fail each time for me:
tim@conquest01:/conquest$ sudo systemctl start conquest.service
Failed to start conquest.service: Unit conquest.service has a bad unit file setting.
See system logs and 'systemctl status conquest.service' for details.
I'm not sure why I'm getting this error. I've followed the how-to for installing this on linux. Then, as directed by the error above, I ran the systemctl status command and it's indicating that there's a bad unit file setting. Do you have any suggestions? --Tim
tim@conquest01:/conquest$ sudo systemctl status conquest.service
● conquest.service - conquest dicom server service
Loaded: bad-setting (Reason: Unit conquest.service has a bad unit file setting.)
Active: active (running) since Sat 2024-05-25 08:20:15 UTC; 6min ago
Main PID: 34653 (dgate)
CPU: 56ms
CGroup: /system.slice/conquest.service
└─34653 /conquest/dgate -w/conquest -v
May 25 08:20:15 conquest01 systemd[1]: Started conquest.service - conquest dicom server service.
May 25 08:20:15 conquest01 conquest-server[34653]: Monitoring for files in: /conquest/data/incoming/
May 25 08:20:15 conquest01 conquest-server[34653]: DGATE (1.5.0c, build Sat May 25 07:39:47 2024, bits 64) is running as threaded server
May 25 08:20:15 conquest01 conquest-server[34653]: Database type: built-in SQLite driver
May 25 08:20:15 conquest01 systemd[1]: /etc/systemd/system/conquest.service:9: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, a>
May 25 08:20:15 conquest01 systemd[1]: /etc/systemd/system/conquest.service:10: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, >
May 25 08:24:06 conquest01 systemd[1]: /etc/systemd/system/conquest.service:5: Neither a valid executable name nor an absolute path: ${CONQUEST}/dgate
May 25 08:24:06 conquest01 systemd[1]: conquest.service: Unit configuration has fatal error, unit will not be started.
lines 1-16/16 (END)
Display More
Hi,
I think you are missing envsubst that is used to replace {$CONQUEST} with the actual path. Did you install all the prerequisites? Or maybe you need additional ones on your version of Ubuntu
Marcel
Thank you for your response Marcel. All pre-requisites were installed verbatim according to the conquest linux manual. I don't see anything about envsubst in the linux manual. I'm using Ubuntu 24.04 LTS for my server OS. Is this something I need to install? --Tim
I ran this command:
and it appears I do have this installed:
I still get this error:
tim@conquest01:~$ sudo systemctl start conquest.service
Failed to start conquest.service: Unit conquest.service has a bad unit file setting.
See system logs and 'systemctl status conquest.service' for details.
tim@conquest01:~$ sudo systemctl status conquest.service
● conquest.service - conquest dicom server service
Loaded: bad-setting (Reason: Unit conquest.service has a bad unit file set>
Active: active (running) since Sat 2024-05-25 08:20:15 UTC; 9h ago
Main PID: 34653 (dgate)
CPU: 3.609s
CGroup: /system.slice/conquest.service
└─34653 /conquest/dgate -w/conquest -v
May 25 08:20:15 conquest01 systemd[1]: Started conquest.service - conquest dicom server service.
May 25 08:20:15 conquest01 conquest-server[34653]: Monitoring for files in: /conquest/data/incoming/
May 25 08:20:15 conquest01 conquest-server[34653]: DGATE (1.5.0c, build Sat May 25 07:39:47 2024, bits 64) is running as threaded server
May 25 08:20:15 conquest01 conquest-server[34653]: Database type: built-in SQLite driver
May 25 08:20:15 conquest01 systemd[1]: /etc/systemd/system/conquest.service:9: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider remo>
May 25 08:20:15 conquest01 systemd[1]: /etc/systemd/system/conquest.service:10: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider rem>
May 25 08:24:06 conquest01 systemd[1]: /etc/systemd/system/conquest.service:5: Neither a valid executable name nor an absolute path: ${CONQUEST}/dgate
May 25 08:24:06 conquest01 systemd[1]: conquest.service: Unit configuration has fatal error, unit will not be started.
~
~
~
~
~
~
~
lines 1-16/16 (END)
Display More
Here is should happen in maklinux.sh:
envsubst <conquest.service >t.t
read -p "Install as service?" -r
echo $REPLY
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo systemctl stop conquest.service
sudo cp t.t /etc/systemd/system/conquest.service
sudo systemctl daemon-reload
sudo systemctl start conquest.service
sudo systemctl enable conquest.service
sudo systemctl status conquest.service
fi
Hi Marcel, I did confirm what happens when I re-ran the ./maklinux command. I don't believe that fixed it. This is a head-scratcher. I followed the install linux manual instructions and ensured all the prerequisites were installed. --Tim
root@conquest01:/conquest# ./maklinux
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking how to run the C preprocessor... gcc -E
checking for function prototypes... yes
checking for stddef.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for size_t... yes
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for working const... yes
checking for inline... __inline__
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... yes
checking to see if right shift is signed... yes
checking to see if fopen accepts b spec... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking libjpeg version number... 63
creating ./config.status
creating Makefile
creating jconfig.h
jconfig.h is unchanged
make: Nothing to be done for 'all'.
#### Please ignore the errors below
/usr/bin/install -c cjpeg /usr/local/bin/cjpeg
/usr/bin/install -c djpeg /usr/local/bin/djpeg
/usr/bin/install -c jpegtran /usr/local/bin/jpegtran
/usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom
/usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1
/usr/bin/install: cannot create regular file '/usr/local/man/man1/cjpeg.1': No such file or directory
make: *** [Makefile:205: install] Error 1
#### Please ignore the errors above
Please choose DB type
1) mariadb
2) postgres
3) sqlite
4) dbase
5) precompiled
6) Quit
#? 5
Regenerate the database?y
y
Regen Database
Step 1: Re-intialize SQL Tables
Dropping Existing tables (if-any)
Worklist is empty
Dropping worklist
Dropping other tables
WorkList Database
Patient Database
Study Database
Series Database
Image Database
Step 2: Load / Add DICOM Object files
Regen Device 'MAG0'
[Regen] /conquest/data/0009703828/1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_003000_14579035620001.dcm -SUCCESS
[Regen] /conquest/data/0009703828/1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_002000_14579035620000.dcm -SUCCESS
Regeneration Complete
Install as service?y
y
Failed to stop conquest.service: Unit conquest.service not loaded.
● conquest.service - conquest dicom server service
Loaded: loaded (/etc/systemd/system/conquest.service; enabled; preset: enabled)
Active: active (running) since Sat 2024-05-25 22:55:55 UTC; 256ms ago
Main PID: 43938 (dgate)
Tasks: 2 (limit: 2276)
Memory: 3.1M (peak: 3.2M)
CPU: 8ms
CGroup: /system.slice/conquest.service
└─43938 /conquest/dgate -w/conquest -v
May 25 22:55:55 conquest01 systemd[1]: Started conquest.service - conquest dicom server service.
May 25 22:55:55 conquest01 conquest-server[43938]: Monitoring for files in: /conquest/data/incoming/
May 25 22:55:55 conquest01 conquest-server[43938]: DGATE (1.5.0d, build Sat May 25 22:55:49 2024, bits 64) is running as threaded server
May 25 22:55:55 conquest01 conquest-server[43938]: Database type: built-in SQLite driver
May 25 22:55:55 conquest01 systemd[1]: /etc/systemd/system/conquest.service:9: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider remo>
May 25 22:55:55 conquest01 systemd[1]: /etc/systemd/system/conquest.service:10: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider rem>
lines 1-16/16 (END)root@consudo cp conquest.service /etc/systemd/system/conquest.serviceem/conquest.service
root@conquest01:/conquest# sudo systemctl daemon-reload
root@conquest01:/conquest# sudo systemctl start conquest.service
Failed to start conquest.service: Unit conquest.service has a bad unit file setting.
See system logs and 'systemctl status conquest.service' for details.
root@conquest01:/conquest# client_loop: send disconnect: Broken pipe
Display More
Hm,
can you post file conquest.service?
Marcel
Yes, thank you again for being so helpful with this. I know you're a busy person. --Tim
Contents of conquest.service:
root@conquest01:/conquest# cat conquest.service
[Unit]
Description=conquest dicom server service
After=network.target
[Service]
ExecStart=${CONQUEST}/dgate -w${CONQUEST} -v
KillMode=process
Restart=always
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=conquest-server
[Install]
WantedBy=multi-user.target
Display More
Hi, you need to replace the {} with the path of where the server is. This should have been done automatically
Thanks for your response!
Changing it from this:
ExecStart=${CONQUEST}/dgate -w${CONQUEST} -v
To:
ExecStart=$/conquest/dgate -w$/conquest -v
Does that look correct?
After the update, I still get an error:
root@conquest01:/conquest# nano conquest.service
root@conquest01:/conquest# systemctl daemon-reload
root@conquest01:/conquest# systemctl start conquest.service
Failed to start conquest.service: Unit conquest.service has a bad unit file setting.
See system logs and 'systemctl status conquest.service' for details.
no $. Greetings Marcel
? Success! I have several more servers to build. I'll report back if this seems to be a common behavior with the combination of Conquest and Ubuntu versions that I'm using.
Thank you marcelvanherk for being so patient with me. I'm going to build a 4-conquest server cluster from scratch, using IPVS to create a load balanced setup. I'm happy to share all configs once it's all working if that might be useful to someone else. --Tim
root@conquest01:/conquest# nano conquest.service
root@conquest01:/conquest# cat conquest.service
[Unit]
Description=conquest dicom server service
After=network.target
[Service]
ExecStart=/conquest/dgate -w /conquest -v
KillMode=process
Restart=always
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=conquest-server
[Install]
WantedBy=multi-user.target
root@conquest01:/conquest# cp conquest.service /etc/systemd/system/conquest.service
root@conquest01:/conquest# systemctl daemon-reload
root@conquest01:/conquest# systemctl start conquest.service
root@conquest01:/conquest#
Display More
Great!
will share the setup if you shaer it with me.
Marcel
Hi Marcel,
I have been setting up a few Veterinary Clinics with earlier versions of Conquest.
Haven't updated to the latest version as yet.
So what to test first.
Cheers Peter
What do you need to achieve? The lightest update is just replace dgate64.exe and conquestdicomserver.exe and the dlls. Of you can setup a new server and point it a the old data, this allows a full test. Marcel
Hi Ken,
Links on the forum work.
Marcel
Hello! Please help! I tried to log into the web server control panel and received the error "dicom error connect failed on socket level (called not running)". After that, I foolishly launched the linux.sh script. The control panel of course started working, but the files that were on the hard drive are now inaccessible. How can I fix this problem? Thank you!
Hi,
linux.sh starts a web-based installer, nothing more. It does not do anything by itself apart from building dgatesmall and setting up app/service web folder. What control panel and files are you talking about?
Marcel
Don’t have an account yet? Register yourself now and be a part of our community!