Skip to content

Fix bootstrap#22

Open
babsey wants to merge 3 commits intomultiscale-cosim:mainfrom
babsey:fix-bootstrap
Open

Fix bootstrap#22
babsey wants to merge 3 commits intomultiscale-cosim:mainfrom
babsey:fix-bootstrap

Conversation

@babsey
Copy link
Collaborator

@babsey babsey commented Aug 2, 2023

The bootstrap contains some unclear lines:

  • Use newer cmake version (3.27)
  • Install Python package correctly (otherwise some binaries will be lost)
  • Remove unnecessary configs for NEST installation
  • Insite should be installed after nest installation
  • Insite installation config should find nest-config.
  • Use Path to find binaries of python packages (/home/vagrant/multiscale-cosim/site-packages/bin)
  • Add code to start nest-desktop and Insite in run_on_local.sh

@babsey babsey added the bug Something isn't working label Aug 2, 2023
@babsey
Copy link
Collaborator Author

babsey commented Aug 2, 2023

I still have some issue to get activity from insite:

[Insite] Post Run Hook
2023-08-02 12:05:37,507 INFO NEST_Adapter [MainProcess:1734] simulation run counter: 25.0
[Insite] Pre Run Hook
[2023-08-02 12:05:37.507] [info] Run duration: 1.2
(2023-08-02 12:05:37) [INFO    ] Request: 10.0.2.2:43704 0x56130b01d480 HTTP/1.1 GET /nest/simulationTimeInfo/
(2023-08-02 12:05:37) [INFO    ] Response: 0x56130b01d480 /nest/simulationTimeInfo/ 200 0
2023-08-02 12:05:37,650 ERROR Application_Manager [MainProcess:1628] ['mpirun', '-n', '1', 'python3', '/home/vagrant/multiscale-cosim/Cosim_NestDesktop_Insite/action_adapters/nest_simulator/nest_adapter.py', b'gASVjAMAAAAAAACMVkVCUkFJTlNfQ29uZmlnTWFuYWdlci5nbG9iYWxfY29uZmlndXJhdGlvbnNfbWFuYWdlci54bWxfcGFyc2Vycy5jb25maWd1cmF0aW9uc19tYW5hZ2VylIwVQ29uZmlndXJhdGlvbnNNYW5hZ2VylJOUKYGUfZQojCtfQ29uZmlndXJhdGlvbnNNYW5hZ2VyX19kaXJlY3Rvcmllc19tYW5hZ2VylIxTRUJSQUlOU19Db25maWdNYW5hZ2VyLmdsb2JhbF9jb25maWd1c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_Insite/userland/parameters/scientific/nest.xml', b'gASJLg==', b'gASVOwEAAAAAAABdlCh9lCiMF0RBVEFfRVhDSEFOR0VfRElSRUNUSU9OlIwLTkVTVF9UT19UVkKUjBNNUElfQ09OTkVDVElPTl9JTkZPlIw7dGFnIzAkZGVzY3JpcHRpb24jdWJ1bnR1LWZvY2FsJHBvcnQjNDA4NzUkaWZuYW1lIzEyNy4wLjEuMSSUjA5JTlRFUkNPTU1fVFlQRZSMCFJFQ0VJVkVSlHV9lCiMF0RBVEFfRVhDSEFOR0VfRElSRUNUSU9OlIwLVFZCX1RPX05FU1SUjBNNUElfQ09OTkVDVElPTl9JTkZPlIw7dGFnIzAkZGVzY3JpcHRpb24jdWJ1bnR1LWZvY2FsJHBvcnQjNTY0NjEkaWZuYW1lIzEyNy4wLjEuMSSUjA5JTlRFUkNPTU1fVFlQRZSMBlNFTkRFUpR1ZS4=']: (2023-08-02 12:05:37) [INFO    ] Request: 127.0.0.1:37854 0x7f7524002280 HTTP/1.1 GET /simulationTimeInfo
(2023-08-02 12:05:37) [INFO    ] Response: 0x7f7524002280 /simulationTimeInfo 200 0
(2023-08-02 12:05:37) [INFO    ] Request: 10.0.2.2:43704 0x56130b01d480 HTTP/1.1 GET /nest/simulationTimeInfo/
(2023-08-02 12:05:37) [INFO    ] Response: 0x56130b01d480 /nest/simulationTimeInfo/ 200 0
2023-08-02 12:05:37,868 INFO Application_Manager [MainProcess:1629] action <INTERSCALE_HUB_NEST_TO_TVB>: 2023-08-02 12:05:37,827 INFO InterscaleHub -- NEST_TO_TVB Manager [MainProcess:1702] Stop InterscaleHub and disconnect...
2023-08-02 12:05:37,827 ERROR EBRAINS_InterscaleHUB.Interscale_hub.communicator_nest_to_tvb [MainProcess:1702] stop() is not implemented yet
Traceback (most recent call last):
  File "/home/vagrant/multiscale-cosim/Cosim_NestDesktop_Insite/EBRAINS_InterscaleHUB/Interscale_hub/communicator_nest_to_tvb.py", line 90, in stop
    raise NotImplementedError
NotImplementedError
2023-08-02 12:05:37,847 INFO IntercommManager [MainProcess:1702] Successfully disconnected and closed port
2023-08-02 12:05:37,868 INFO Application_Manager [MainProcess:1630] action <TVB_SIMULATOR>: 2023-08-02 12:05:37,860 INFO TVB_MPI_Wrapper [MainProcess:1735] end receive [28.8 30. ]
2023-08-02 12:05:37,861 INFO TVB_MPI_Wrapper [MainProcess:1735] TVB start simulation 28.799999999999997
WARNING  random_state supplied for non-stochastic integration
2023-08-02 12:05:37,865 INFO TVB_MPI_Wrapper [MainProcess:1735]  TVB end simulation
2023-08-02 12:05:37,869 INFO Application_Manager [MainProcess:1628] action <NEST_SIMULATOR>: Aug 02 12:05:37 SimulationManager::run [Warning]: 
    The requested simulation time is not an integer multiple of the minimal 
    delay in the network. This may result in inconsistent results under the 
    following conditions: (i) A network contains more than one source of 
    randomness, e.g., two different poisson_generators, and (ii) Simulate is 
    called repeatedly with simulation times that are not multiples of the 
    minimal delay.

Aug 02 12:05:37 SimulationManager::start_updating_ [Info]: 
    Number of local nodes: 130
    Simulation time (ms): 1.2
    Number of OpenMP threads: 1
    Number of MPI processes: 1

Aug 02 12:05:37 SimulationManager::run [Info]: 
    Simulation finished.
[Insite] Post Run Hook
2023-08-02 12:05:37,827 INFO NEST_Adapter [MainProcess:1734] nest simulation is finished
2023-08-02 12:05:37,827 INFO NEST_Adapter [MainProcess:1734] cleaning up NEST
[Insite] Cleanup
2023-08-02 12:05:37,869 ERROR Application_Manager [MainProcess:1628] ['mpirun', '-n', '1', 'python3', '/home/vagrant/multiscale-cosim/Cosim_NestDesktop_Insite/action_adapters/nest_simulator/nest_adapter.py', b'gASVjAMAAAAAAACMVkVCUkFJTlNfQ29uZmlnTWFuYWdlci5nbG9iYWxfY29uZmlndXJhdGlvbnNfbWFuYWdlci54bWxfcGFyc2Vycy5jb25maWd1cmF0aW9uc19tYW5hZ2VylIwVQ29uZmlndXJhdGlvbnNNYW5hZ2VylJOUKYGUfZQojCtfQ29uZmlndXJhdGlvbnNNYW5hZ2VyX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plcnJvcl9maWxllGWMCXByb3BhZ2F0ZZSMAm5vlHV1Lg==', '/home/vagrant/multiscale-cosim/Cosim_NestDesktop_Insite/userland/parameters/scientific/nest.xml', b'gASJLg==', b'gASVOwEAAAAAAABdlCh9lCiMF0RBVEFfRVhDSEFOR0VfRElSRUNUSU9OlIwLTkVTVF9UT19UVkKUjBNNUElfQ09OTkVDVElPTl9JTkZPlIw7dGFnIzAkZGVzY3JpcHRpb24jdWJ1bnR1LWZvY2FsJHBvcnQjNDA4NzUkaWZuYW1lIzEyNy4wLjEuMSSUjA5JTlRFUkNPTU1fVFlQRZSMCFJFQ0VJVkVSlHV9lCiMF0RBVEFfRVhDSEFOR0VfRElSRUNUSU9OlIwLVFZCX1RPX05FU1SUjBNNUElfQ09OTkVDVElPTl9JTkZPlIw7dGFnIzAkZGVzY3JpcHRpb24jdWJ1bnR1LWZvY2FsJHBvcnQjNTY0NjEkaWZuYW1lIzEyNy4wLjEuMSSUjA5JTlRFUkNPTU1fVFlQRZSMBlNFTkRFUpR1ZS4=']: (2023-08-02 12:05:37) [INFO    ] Request: 127.0.0.1:37858 0x7f7524003800 HTTP/1.1 GET /simulationTimeInfo

@babsey
Copy link
Collaborator Author

babsey commented Aug 2, 2023

By the way, NEST Desktop works with NEST Server and Insite access node
as well as with CoSim Instance only (without Insite).

But with CoSim Instance and Insite it shows error (see above).

@sontheimer
Copy link
Collaborator

sontheimer commented Sep 1, 2023

The bootstrap contains some unclear lines:

  • Use newer cmake version (3.27)
  • okay
  • Install Python package correctly (otherwise some binaries will be lost)
  • consider adding the --upgrade flag (for numpy==1.23)
  • e.g. elephant will install the newest numpy but the TVB version used here needs the specific numpy 1.23
  • Remove unnecessary configs for NEST installation
  • maybe double check if it still runs, otherwise okay!
  • Remember: on hpc, the flags are used in a specific way, so this only works for the local bootstrap.sh
  • Insite should be installed after nest installation
  • Insite installation config should find nest-config.
  • okay
  • Use Path to find binaries of python packages (/home/vagrant/multiscale-cosim/site-packages/bin)
  • okay
  • Add code to start nest-desktop and Insite in run_on_local.sh
  • okay!
  • In line 246 in your suggested bootstrap.sh: Is this the intended way of starting the INSITE access node? It seems to be incomplete.
  • NOTE: This hides any error messages or crashes from the user (without vagrans ssh)
  • NOTE: only one run possible.
  • Every subsequent run would need:
    • vagrant halt and vagrant up again
    • future cosim releases with implemented 'rerun' instead of 'new run'

All points can be further discussed, if unclear.

@sontheimer
Copy link
Collaborator

sontheimer commented Sep 1, 2023

By the way, NEST Desktop works with NEST Server and Insite access node as well as with CoSim Instance only (without Insite).

But with CoSim Instance and Insite it shows error (see above).

The above error messages are related to Cosim output, i.e. the responses/outputs from INSITE and NEST-Desktop are read via error stream. In other words, these logs do not reflect the errors from Cosim or reporting of any crash or so.

If you do not see any response from the of the NEST simulation via INSITE in NEST Desktop, it should be looked at from INSITE perspective.

Maybe Marcel can have a look into that.

@mfahdaz
Copy link
Collaborator

mfahdaz commented Sep 4, 2023

  • NOTE: This hides any error messages or crashes from the user (without vagrans ssh)

  • NOTE: only one run possible.

  • Every subsequent run would need:

    • vagrant halt and vagrant up again
    • future cosim releases with implemented 'rerun' instead of 'new run'

This is particularly true if the idea is to run the usecase directly from bootstrap and without logging in to VM (vagrant ssh). However, we might also want to reboot the VM with a new provision (to be added for launching purposes and) to avoid the installation process when re-running the usecase.

Otherwise, one does not need to reloading the VM every time when (re)running the usecase with ./run_on_local.sh after logging in to VM.

@babsey
Copy link
Collaborator Author

babsey commented Sep 14, 2023

@sontheimer Thank you for the review.

One point, can you please make code suggestion?

Copy link
Collaborator

@jens-br jens-br left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much! 👍
I discussed it with Muhammad. Please find the open points in the details.

nest-desktop start &

# start Insite Access node
insite-access-node &
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcelkrueger Could you check this and - if necessary - add the missing lines for the Insite start?

(see also #22 (comment))

Co-authored-by: jens-br <53972736+jens-br@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants