firefoxchan / local-ehentai

Local E-Hentai / ExHentai Gallery Index + File Auto Discover (with ~830k exhentai metadata)
MIT License
222 stars 23 forks source link

Error at the end of exe print #10

Closed alan-gu closed 2 years ago

alan-gu commented 2 years ago

[websvr]2022/02/01 03:08:20 websvr.go:41: Serve HTTP Server: 127.0.0.1:8080 [websvr]2022/02/01 03:08:20 websvr.go:43: Error Serve HTTP Server: listen tcp 127.0.0.1:8080: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted. [websvr]2022/02/01 03:08:20 websvr.go:36: Error Serve PProf Server: listen tcp 127.0.0.1:8081: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

and then I open http://127.0.0.1:8080/ and see open template/galleries_extended.tmpl: The system cannot find the path specified.

BTW, not sure what "Set your workdir to web when running" means. I "export workidr=web" in terminal. I don't think this will work.

firefoxchan commented 2 years ago

[websvr]2022/02/01 03:08:20 websvr.go:43: Error Serve HTTP Server: listen tcp 127.0.0.1:8080: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

another program is already using 127.0.0.1:8080, you can kill it, or listen to another port, eg: -h 127.0.0.1:18080

[websvr]2022/02/01 03:08:20 websvr.go:36: Error Serve PProf Server: listen tcp 127.0.0.1:8081: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

it seems like a permission issue, you can use another pprof port, eg: -p 127.0.0.1:18081, or just ignore it (pprof is not necessary)

and then I open http://127.0.0.1:8080/ and see open template/galleries_extended.tmpl: The system cannot find the path specified.

BTW, not sure what "Set your workdir to web when running" means. I "export workidr=web" in terminal. I don't think this will work.

put the program in web folder then start it