Error in remote agent deployment


(Zain Hasib) #1

NAME="VMware Photon OS" VERSION="2.0" ID=photon VERSION_ID=2.0 PRETTY_NAME="VMware Photon OS/Linux"
Tried to deploy agent on a vm over network, but it runs a script that tries to yum install java and iofog-agent which are unidentified

Does it have to use iofog-agent and iofog-controller under the hood because then is there any alternative to install them from source? or there is any alternative?

Btw I installed iofog from source on the OS


(Serge Radinovich) #2

Hi zainhasib. What exactly did you install from source? ioFog is made of a number of components - none of which you should be building from source for the purposes of deploying edge microservices.

Could you please tell me what guide you followed? I recommend starting with this for a local deployment: https://iofog.org/docs/1.3.0/getting-started/quick-start.html

Then you can do remote deployment: https://iofog.org/docs/1.3.0/remote-deployment/introduction.html


(Zain Hasib) #3

I did follow the documentation, however, for PhotonOS it gives the following error
` Detected operating system as photon/2.
Checking for curl…
Detected curl…
Downloading repository file: https://packagecloud.io/install/repositories/iofog/iofogctl/config_file.repo?os=photon&dist=2&source=script
curl: (22) The requested URL returned error: 404 Not Found

Unable to download repo config from: https://packagecloud.io/install/repositories/iofog/iofogctl/config_file.repo?os=photon&dist=2&source=script

This usually happens if your operating system is not supported by
packagecloud.io, or this script’s OS detection failed.

You can override the OS detection by setting os= and dist= prior to running this script.
You can find a list of supported OSes and distributions on our website: https://packagecloud.io/docs#os_distro_version

For example, to force CentOS 6: os=el dist=6 ./script.sh

If you are running a supported OS, please email support@packagecloud.io and report this.`


#4

This error message is basically saying that the install script can’t find a distro for “os=photon”. Which is definitely true, because this isn’t an operating system that we have tested or checked for before. However, I took a quick look and it doesn’t seem like it would be that hard for us to support. We can take a look and get back to you on that.

In the meantime, you could try to manually set the os to something like Debian and see how far you get with that. Or, for now if you just want to test ioFog, maybe use a Debian VM image instead?


(Zain Hasib) #5

Great, we would love that. Meanwhile, will be using Ubuntu. Thanks


#6

Sounds good. Let us know if you have any issues there.