Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Code server not working #311

Open
alxp opened this issue Nov 14, 2022 · 0 comments
Open

Code server not working #311

alxp opened this issue Nov 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@alxp
Copy link
Contributor

alxp commented Nov 14, 2022

I've tried with make local, make demo and make starter with same result.

Also same result with secrets options 1 and 2.

Steps to reproduce:

Edit sample.env, set EXPOSE_CODE_SERVER to true

Following the steps in the README:

make local

edit .env, set INCLUDE_CODE_SERVER_SERVICE=true

make pull

make up

Produces the following output:

isle-dc_fcrepo_1 is up-to-date
isle-dc_crayfits_1 is up-to-date
isle-dc_matomo_1 is up-to-date
Recreating isle-dc_drupal_1 ... done
Creating isle-dc_code-server_1 ... done

 Sleeping for 10 seconds to wait for Drupal to finish building.

grep: /var/www/drupal/web/sites/default/settings.php: No such file or directory

In Filesystem.php line 203:
                                                                          
  Failed to chmod file "/var/www/drupal/web/sites/default/settings.php".  
                                                                          


In Filesystem.php line 203:
                                                                          
  Failed to chmod file "/var/www/drupal/web/sites/default/settings.php".  
                                                                          


In Filesystem.php line 203:
                                                                          
  Failed to chmod file "/var/www/drupal/web/sites/default/settings.php".  
                                                                          


In Filesystem.php line 203:
                                                                          
  Failed to chmod file "/var/www/drupal/web/sites/default/settings.php".  
                                                                          


In Filesystem.php line 203:
                                                                          
  Failed to chmod file "/var/www/drupal/web/sites/default/settings.php".  
                                                                          

Starting build/scripts/check-secrets.sh
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/ACTIVEMQ_PASSWORD
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/ACTIVEMQ_WEB_ADMIN_PASSWORD
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/ALPACA_ACTIVEMQ_PASSWORD
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/ALPACA_KARAF_ADMIN_PASSWORD
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/CODE_SERVER_PASSWORD
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/DB_ROOT_PASSWORD
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/DRUPAL_DEFAULT_ACCOUNT_PASSWORD
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/DRUPAL_DEFAULT_DB_PASSWORD
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/DRUPAL_DEFAULT_SALT
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/FCREPO_DB_PASSWORD
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/GEMINI_DB_PASSWORD
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/JWT_ADMIN_TOKEN
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/JWT_PRIVATE_KEY
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/JWT_PUBLIC_KEY
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/MATOMO_DB_PASSWORD
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/MATOMO_USER_PASS
Default Secret -> /Users/aoneill/dev/isle-dc/secrets/live/TOMCAT_ADMIN_PASSWORD
 9PPaL0CxZAIcq0l9wxgDGlCZrp7JdT_x7v9gVzpdbUjMt1PqDz3uD0Zy-i16DuJ1-Htuq5hqeg Updates to the salt are not automatically added to web/sites/default/settings.php file. Please make this change manually and then run the same make down && make up command again.


	 --- --- WARNING --- ---  --- --- WARNING --- --- 

	
		Using default values for secrets in a production environment is a

					Security Risk
		
		Default values are identified in /Users/aoneill/dev/isle-dc/secrets/live/

		If you are using the default values, you can either change the values of 
		the file found in /Users/aoneill/dev/isle-dc/secrets/live/ 
		Or generate new secrets by running:
			make generate-secrets 

		This will generate new secrets in /secrets/live/ but will not update
		the ISLE containers.
		
		If you are not sure how to push updated secrets to ISLE, please consult
		the documentation.
		https://islandora.github.io/documentation/installation/docker-custom/#secrets
	

	 --- --- WARNING --- ---  --- --- WARNING --- --- 



Check secrets is done.


cmtctest:isle-dc aoneill$ 
cmtctest:isle-dc aoneill$ 
cmtctest:isle-dc aoneill$ 
cmtctest:isle-dc aoneill$ git diff sample.env 
diff --git a/sample.env b/sample.env
index 1e241c8..5ae42bc 100644
--- a/sample.env
+++ b/sample.env
@@ -109,7 +109,7 @@ EXPOSE_SOLR=false
 SOLR_PORT=8983
 
 # Expose Code Server over the given port - DO NOT EXPOSE THIS IN PRODUCTION
-EXPOSE_CODE_SERVER=false
+EXPOSE_CODE_SERVER=true
 CODE_SERVER_PORT=8443
 
 ###############################################################################
cmtctest:isle-dc aoneill$ 

Going to the https://islandora.traefik.me:8443/ shows the following:

500 Cannot find module 'yazl' Require stack: - /usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/out/bootstrap-amd.js - /usr/local/share/.config/yarn/global/node_modules/code-server/out/node/util.js - /usr/local/share/.config/yarn/global/node_modules/code-server/out/node/cli.js - /usr/local/share/.config/yarn/global/node_modules/code-server/out/node/entry.js [go home](https://islandora.traefik.me:8443/)

isle-dc commit:

devcommit 96a013d5a4f2740fb4fd2c6dfce5b8ee4f80a335 (HEAD -> development, origin/dev
elopment, origin/HEAD)
Merge: 65db71e 6ff5cf5
Author: Don Richards <2738244+DonRichards@users.noreply.github.com>
Date:   Wed Nov 9 13:21:57 2022 -0500

    Merge pull request #310 from Islandora-Devops/rosiel-make-clean-warn
    
    Update `make clean` warning.

@alxp alxp added the bug Something isn't working label Nov 14, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant