Skip to content
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

Connection refused #13

Open
BottomBanana opened this issue May 3, 2019 · 24 comments
Open

Connection refused #13

BottomBanana opened this issue May 3, 2019 · 24 comments

Comments

@BottomBanana
Copy link

Hello!
I'm having trouble getting cosmos and cfs telemetry to work.
I click on cFS starter kit as per the instructions then all the correct windows pop up.
The time counter is on magenta 0. I click the Start cFS button and get a terminal window asking for my password. I enter it and all seems well but the time counter is still on magenta 0. Clicking Enable Telemetry a couple of times results in an error message: 'Errno::ECONNREFUSED : Connection refused - Connection refused'.
I get a similar error when trying to enable telemetry through PiSat control.
I'm running Ubuntu MATE 18.04.2 on a Raspberry Pi 3 B+
Kernel Linux 4.15.0-1032-raspi armv7l

Many thanks
Stephen

@dmccomas
Copy link
Contributor

dmccomas commented May 4, 2019 via email

@BottomBanana
Copy link
Author

Hi Dave
Thank you for a swift reply. Please see the screen dump below.
The terminal window remains on the ruby Launcher command and the connections are all green.

Many thanks for your help

Screenshot at 2019-05-05 20-48-19

@dmccomas
Copy link
Contributor

dmccomas commented May 9, 2019 via email

@BottomBanana
Copy link
Author

BottomBanana commented May 10, 2019 via email

@BottomBanana
Copy link
Author

BottomBanana commented May 14, 2019 via email

@dmccomas
Copy link
Contributor

dmccomas commented May 14, 2019 via email

@dmccomas
Copy link
Contributor

dmccomas commented May 15, 2019 via email

@BottomBanana
Copy link
Author

BottomBanana commented May 15, 2019 via email

@dmccomas
Copy link
Contributor

When you click start you should see a prompt for the password. After you enter the password abunch of startup messages will appear and the last few should look similar to this image.
image001 (1)

@BottomBanana
Copy link
Author

After entering the password that Terminal window closes. I see nothing that resembles your image.

@dmccomas
Copy link
Contributor

dmccomas commented Jun 4, 2019

Check to see if you have a file named core-cpu1 in [opensatkit-master]/cfs/build/exe/cpu1. If not then the cFS was not built during installation. Section 4.1.1 of the User's Guide ([opensatkit-master]/docs/OSK_UsersGuide) has instructions for building the cFS.

If core-cpu1 exists then create a copy of [opensatkit-master]/cfs/build/exe/cpu1/cfe_es_startup.scr. In the original named version delete all of the entries or you can comment them out with a "!" at the start of each line. The bottom line is you don't want anything loaded. Then try to start the cFS. Thsi will tell us if the core is having a problem or an app or library is crashing during startup.

@bapichulo
Copy link

terminal

Does anyone have a solution to the issue in this screenshot?

@pavja2
Copy link

pavja2 commented Jan 28, 2020

Check to see if you have a file named core-cpu1 in [opensatkit-master]/cfs/build/exe/cpu1. If not then the cFS was not built during installation. Section 4.1.1 of the User's Guide ([opensatkit-master]/docs/OSK_UsersGuide) has instructions for building the cFS.

If core-cpu1 exists then create a copy of [opensatkit-master]/cfs/build/exe/cpu1/cfe_es_startup.scr. In the original named version delete all of the entries or you can comment them out with a "!" at the start of each line. The bottom line is you don't want anything loaded. Then try to start the cFS. Thsi will tell us if the core is having a problem or an app or library is crashing during startup.

I know this is an old issue but I can confirm that I was having the same problem (enter sudo password and then terminal window silently closes and System Time never starts counting up). Following the suggestion to manually build cfs (now section 5.1.1 of the User's Guide) fixed it for me.

@PaulaBosca
Copy link

PaulaBosca commented May 7, 2020

Hello,
I have a similar problem. I am running Ubuntu 16.04.6 on a virtual machine. I managed to download OpenSatKit and after using bundle install I managed to get ruby Launcher to work. It successfully opens COSMOS and all the associated windows. However, when I click 'start cFS', a terminal opens prompting me to input my password. Once I do, the terminal disappears, the COSMOS windows are greyed out for a couple seconds (the timer counter doesn't increase) and then nothing happens.
I tried following the manual cfs build in section 5.1.1 in the User's guide but I get a fatal error that there is not jsmn.h file.
I'm trying to learn cFS for a CubeSat mission at my University and would greatly appreciate any help! Thank you!
Edit: As an additional note, in the cmd&telem viewer it says that LOCAL_CFS_INT is connected.

@dmccomas
Copy link
Contributor

Did you download it recently? There was a period of time when I had the wrong cfe_es_startup.scr file in the release. Thsi file defines whcih apps are loaded during startup. This file occurs in two places.

  1. .../cfs/osk_defs/cpu1_cfe_es_startup.scr is the main definition. When the cFS is built the 'cpu1_' prefix is stripped off and the file is copied to
  2. .../cfs/build/exe/cpu1/cf/es_startup.scr

The health & safety (HS) app should not be loaded because it crashes on some platforms. Your startup script should have HS commented out using or he line deleted. Note that the first '!' encountered comments out the remainder of the file.

@PaulaBosca
Copy link

Oddly enough, the HS app doesn't load since it's correctly commented out in cfs/osk_defs/cpu1_ed_startup.scr
However, when my system builds it doesn't create the build/exe folder. the cfs/build folder contains the following directories: CMakeFiles, cpu1, doc, editor_inc, inc, tools, and two text files (CMakeCache.txt and missions_vars.cache). The cfs/build/cpu1 does not have the cf files or the like. Any idea what could be happening with my build? I've tried reinstalling within the last couple days with the same problems.

@dmccomas
Copy link
Contributor

dmccomas commented May 21, 2020 via email

@PaulaBosca
Copy link

PaulaBosca commented May 21, 2020 via email

@dmccomas
Copy link
Contributor

dmccomas commented May 21, 2020 via email

@Natpanzarini
Copy link

Oddly enough, the HS app doesn't load since it's correctly commented out in cfs/osk_defs/cpu1_ed_startup.scr
However, when my system builds it doesn't create the build/exe folder. the cfs/build folder contains the following directories: CMakeFiles, cpu1, doc, editor_inc, inc, tools, and two text files (CMakeCache.txt and missions_vars.cache). The cfs/build/cpu1 does not have the cf files or the like. Any idea what could be happening with my build? I've tried reinstalling within the last couple days with the same problems.

Hello, I am having the exact same problem as described.

  1. When I enter in the password to the terminal, it just closes.
  2. My HS file is correctly commented out at cfs/osk_defs/cpu1_ed_startup.scr
  3. I do not have an cfs/build/exe directory, and each time I try and follow the build instructions in the
    5.1 section of the User Manual but it throws errors. See attached file for full stack trace.

Was there any resolution to these issues?

Errors.txt

@dmccomas
Copy link
Contributor

Sorry for the delay & or teh code that's cuasing your issue. The window closes because the cFS isn't being built and there's no executable. There was a short period of time when I had commited some intermittent C++ app code that wouldn't build. The current repo code works. If you don't want to download the latest code code you can you can remove the demo apps from the cmake target list file. The C demo app had issues at the same time the C++ demo app had issues.

To remove the demo apps from being built edit OpenSatKit-master/cfs/osk_defs/targets.cmake

Remove the demo apps from TGT1_APPLIST
FROM:
SET(TGT1_APPLIST cfs_lib expat_lib osk_c_fw osk_cpp_fw cs ds fm hs kit_ci kit_sch kit_to lc md mm sc hk tftp i42 f42 isim hc hsim osk_c_demo osk_cpp_demo)

TO:
SET(TGT1_APPLIST cfs_lib expat_lib osk_c_fw osk_cpp_fw cs ds fm hs kit_ci kit_sch kit_to lc md mm sc hk tftp i42 f42 isim hc hsim)

Hope this fixes it.

@Natpanzarini
Copy link

Hi, thanks for the response!

I have both reinstalled and removed the demo apps from TGT1_APPLIST as instructed, but cFS still does not build when I run make. It looks like there are issues when it tries to build osk_cpp_fw, as it always throws errors at this point in the process.

I have attached my errors again. Do you have any other suggestions for fixing the cFS build issue?

Thanks!
cfs_errors.txt

@dmccomas
Copy link
Contributor

dmccomas commented Jun 24, 2020 via email

@pmepablo
Copy link

pmepablo commented Aug 7, 2020

Thanks dmccomas, editing those files did the trick for me. I was also getting the nullptr prior to updating those two files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants