{"id":742,"date":"2025-08-06T10:00:38","date_gmt":"2025-08-06T02:00:38","guid":{"rendered":"https:\/\/play.datalude.com\/blog\/?p=742"},"modified":"2025-08-06T10:31:45","modified_gmt":"2025-08-06T02:31:45","slug":"google-gemini-bad-qdrant-systemd-advice","status":"publish","type":"post","link":"https:\/\/play.datalude.com\/blog\/2025\/08\/google-gemini-bad-qdrant-systemd-advice\/","title":{"rendered":"Google Gemini bad qdrant systemd advice"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Sometimes I give AI a shot. This was one of the occasions where I did, and it ended up costing me more time that actually trying to solve the problem myself. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I had a request to run qdrant database, and I didn't want to do it under docker, due to all the extra nonsense that entails. So having installed it, basically just dropping a binary on the filesystem, I wanted to run it as a systemd service, under a specific user, qdrant. <br><br>On the qdrant site, they don't give an example, so I thought it would be quickest to ask Google Gemini, which quickly squirted out a reply. So I activated it and was confused when it wouldn't start. About an hour later, I figured out that the inline comments which Gemini had put in the systemd service files are not allowed. And when telling Gemini about this it cheerfully admitted that it knew about this all along:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/play.datalude.com\/blog\/wp-content\/uploads\/2025\/08\/googleduh_16-50.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"838\" height=\"712\" src=\"https:\/\/play.datalude.com\/blog\/wp-content\/uploads\/2025\/08\/googleduh_16-50.jpg\" alt=\"\" class=\"wp-image-743\" srcset=\"https:\/\/play.datalude.com\/blog\/wp-content\/uploads\/2025\/08\/googleduh_16-50.jpg 838w, https:\/\/play.datalude.com\/blog\/wp-content\/uploads\/2025\/08\/googleduh_16-50-300x255.jpg 300w, https:\/\/play.datalude.com\/blog\/wp-content\/uploads\/2025\/08\/googleduh_16-50-768x653.jpg 768w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Even though I 'shared' the finding, I'm skeptical that Gemini will learn from it, so here is the working qdrant systemd file for anyone interested. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code><code>[Unit]\nDescription=Qdrant Vector Database\nAfter=network.target\n\n[Service]\n# sudo adduser --system --no-create-home --group qdrant\nUser=qdrant\nGroup=qdrant\n\nExecStart=\/usr\/bin\/qdrant --config-path \/etc\/qdrant\/config.yaml\n\n# Put all data in here, please\nWorkingDirectory=\/qdrant\n\n# Increase open file limit for better performance\nLimitNOFILE=65536\n\nRestart=on-failure\nRestartSec=5s\n\n[Install]\nWantedBy=multi-user.target<\/code><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes I give AI a shot. This was one of the occasions where I did, and it ended up costing me more time that actually trying to solve the problem myself. I had a request to run qdrant database, and I didn't want to do it under docker, due to all the extra nonsense that &#8230; <a title=\"Google Gemini bad qdrant systemd advice\" class=\"read-more\" href=\"https:\/\/play.datalude.com\/blog\/2025\/08\/google-gemini-bad-qdrant-systemd-advice\/\" aria-label=\"Read more about Google Gemini bad qdrant systemd advice\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[134,8],"class_list":["post-742","post","type-post","status-publish","format-standard","hentry","category-it","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts\/742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/comments?post=742"}],"version-history":[{"count":4,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts\/742\/revisions"}],"predecessor-version":[{"id":747,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts\/742\/revisions\/747"}],"wp:attachment":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/media?parent=742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/categories?post=742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/tags?post=742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}