FTL Error while running app error="dial unix /tmp/itd/socket: connect: no such file or directory" & Can't compile itgui #46

Closed
opened 2022-12-27 21:52:11 +00:00 by seigea · 5 comments

System:
Ubuntu 22.04

when running itctl and any command I get:
"FTL Error while running app error="dial unix /tmp/itd/socket: connect: no such file or directory""

I see that there is no /temp/itd/socket directory - but... why wouldn't it have created this?

also when trying to compile the GUI it just says:
"go: go.mod file not found in current directory or any parent directory; see 'go help modules'"

How can these issues be fixed?

System: Ubuntu 22.04 when running itctl and any command I get: "FTL Error while running app error="dial unix /tmp/itd/socket: connect: no such file or directory"" I see that there is no /temp/itd/socket directory - but... why wouldn't it have created this? also when trying to compile the GUI it just says: "go: go.mod file not found in current directory or any parent directory; see 'go help modules'" How can these issues be fixed?
Owner

"FTL Error while running app error="dial unix /tmp/itd/socket: connect: no such file or directory""

This means ITD isn't running. Run systemctl enable --now itd without root.

"go: go.mod file not found in current directory or any parent directory; see 'go help modules'"

You must run go build ./cmd/itgui from the root of the repo. You cannot cd into the directory before running go build.

> "FTL Error while running app error="dial unix /tmp/itd/socket: connect: no such file or directory"" This means ITD isn't running. Run `systemctl enable --now itd` **without root**. > "go: go.mod file not found in current directory or any parent directory; see 'go help modules'" You must run `go build ./cmd/itgui` from the root of the repo. You cannot cd into the directory before running `go build`.
Author

I did start the deamon with:

systemctl --user start itd

actually this

systemctl enable --now itd

didn't work:
"Failed to enable unit: Unit file itd.service does not exist."

but then - it turns out you have to connected the watch via bluetooth, I thought perhaps usb...

and then I manually ran itd and saw output indicated it worked. After restarting the deamon with stop and start now it's working.

No GUI though yet...

and the itctl res load commond (to put resources on the watch) just says "removing" instead of uploading... but we're onto something at least...

I did start the deamon with: ``` systemctl --user start itd ``` actually this ``` systemctl enable --now itd ``` didn't work: "Failed to enable unit: Unit file itd.service does not exist." but then - it turns out you have to connected the watch via bluetooth, I thought perhaps usb... and then I manually ran itd and saw output indicated it worked. After restarting the deamon with stop and start now it's working. No GUI though yet... and the itctl res load commond (to put resources on the watch) just says "removing" instead of uploading... but we're onto something at least...
Owner

but then - it turns out you have to connected the watch via bluetooth, I thought perhaps usb...

The PineTime USB charger provides no data, only power. It's impossible to connect to it through USB.

didn't work:
"Failed to enable unit: Unit file itd.service does not exist."

Oh, I forgot to include --user. It's systemctl --user enable --now itd. What this does is starts ITD, and tells systemd to start it automatically when you boot your system.

No GUI though yet...

What happens if you run go build ./cmd/itgui?

just says "removing" instead of uploading

It says "Removing" because it tries to remove the obsolete files before uploading new ones. If it's stuck on that, it's probably because you're not running a version of InfiniTime that implements the FS service. In this case, you'll need to update before you can use the FS or upload resources.

> but then - it turns out you have to connected the watch via bluetooth, I thought perhaps usb... The PineTime USB charger provides no data, only power. It's impossible to connect to it through USB. > didn't work: > "Failed to enable unit: Unit file itd.service does not exist." Oh, I forgot to include `--user`. It's `systemctl --user enable --now itd`. What this does is starts ITD, and tells systemd to start it automatically when you boot your system. > No GUI though yet... What happens if you run `go build ./cmd/itgui`? > just says "removing" instead of uploading It says "Removing" because it tries to remove the obsolete files before uploading new ones. If it's stuck on that, it's probably because you're not running a version of InfiniTime that implements the FS service. In this case, you'll need to update before you can use the FS or upload resources.
Author

ah - with compiling, I didn't realize I needed to download the code first and it wasn't in the deb.

Downloaded the code and ran but still having trouble with the make & make install

I think I managed to install itd again and the gui was funky in kde but I did manage to load the res files eventually...

Maybe later I can suggest some adjustments to the documenation for folks who have less experience with linux and go :P It does bring me back a bit to my gentoo days but I've not been using linux for a minute so...

ah - with compiling, I didn't realize I needed to download the code first and it wasn't in the deb. Downloaded the code and ran but still having trouble with the make & make install I think I managed to install itd again and the gui was funky in kde but I did manage to load the res files eventually... Maybe later I can suggest some adjustments to the documenation for folks who have less experience with linux and go :P It does bring me back a bit to my gentoo days but I've not been using linux for a minute so...
Owner

I'm working on making the GUI installation much easier with one of my other projects. Unfortunately, I can't include it in the precompiled packages because it's extremely complex to cross-compile it at all, and it doesn't work on things like Alpine Linux because they use musl libc while the Debian image I use to compile uses glibc.

Anyway, if your issue is resolved, I'll close this. Thanks.

I'm working on making the GUI installation much easier with one of my other projects. Unfortunately, I can't include it in the precompiled packages because it's extremely complex to cross-compile it at all, and it doesn't work on things like Alpine Linux because they use musl libc while the Debian image I use to compile uses glibc. Anyway, if your issue is resolved, I'll close this. Thanks.
Sign in to join this conversation.
No description provided.