exceptionless / Exceptionless

Exceptionless application
https://exceptionless.com
Apache License 2.0
2.41k stars 516 forks source link

Cannot start a Self-Hosting #607

Closed mariohik closed 4 years ago

mariohik commented 4 years ago

The 'docker-compose up' command returns the following error:

/usr/share/dotnet/sdk/3.1.201/NuGet.targets(124,5): error: Unable to load the service index for source https://f.feedz.io/foundatio/foundatio/nuget/index. json. [/app/Exceptionless.sln]
/usr/share/dotnet/sdk/3.1.201/NuGet.targets(124,5): error: Resource temporarily unavailable [/app/Exceptionless.sln]
ERROR: Service 'api' failed to build: The command '/bin /sh -c dotnet restore' returned a non-zero code: 1
niemyjski commented 4 years ago

It sounds like the cdn was down to restore packages, please try again.

mariohik commented 4 years ago

No, it's not. The error persists.

niemyjski commented 4 years ago

Can you view: https://f.feedz.io/foundatio/foundatio/nuget/index.json

mariohik commented 4 years ago

Yes

Amber-Wish commented 4 years ago

Hi guys! I encountered the same problem. How can I solve it?

alexanderadam commented 4 years ago

It sounds like the cdn was down to restore packages, please try again.

Is the application required to work online? I thought Docker images should usually contain everything needed?

ejsmith commented 4 years ago

I think the problem people are running into is that the root docker-compose.yml is also doing a code build. We need to have some separate ones that use pre-built images from Docker Hub.

ejsmith commented 4 years ago

@alexanderadam I just updated that file to not do a code build and also updated the self-hosted docs. Can you try again?

alexanderadam commented 4 years ago

I didn't try it yet, I was just curious because I saw this issue. But @mariohik might give some feedback.

mariohik commented 4 years ago

As I don't have a lot of knowledge of Linux, I solved it in another way. What I did was as follows: 1 - I installed Docker for Windows on my notebook 2 - I generated the images using the 'docker-compose up' command on it 3 - I exported the images with the command 'docker save -o exceptionless.tar' 4 - I imported the images on the desired computer using 'docker load -i exceptionless.tar' 5 - I renamed the images that were not with the correct name 'docker image tag d583c3ac45fd exceptionless/api: latest' 6 - Then I ran the command 'docker-compose up' normally.

I know it's not the ideal solution, but it worked.

ejsmith commented 4 years ago

@mariohik sorry about that. It should be a lot simpler now. The default docker-compose.yml doesn't do any code building now.