You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/06/16 16:15:36 UTC

[GitHub] [incubator-devlake] e2corporation opened a new issue, #2233: [Bug] [Init] Developer Setup on OSX: Make Run Error

e2corporation opened a new issue, #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   Upon rebasing the latest Changes on `main` branch, upgrading to Go v1.17 using Homebrew on OSX, and following the developer setup guide as outlined on the Apache DevLake wiki, `make dev` throws a panic and results in a `make` `Error`. See below for developer log.
   
   ```
   shogun@z06 lake % make dev
   Usage: 
     build all plugins:              scripts/compile-plugins.sh [golang build flags...]
     build and keep one plugin only: PLUGIN=jira scripts/compile-plugins.sh [golang build flags...]
   Building plugin ae to bin/plugins/ae/ae.so
   Building plugin dbt to bin/plugins/dbt/dbt.so
   Building plugin feishu to bin/plugins/feishu/feishu.so
   Building plugin gitextractor to bin/plugins/gitextractor/gitextractor.so
   Building plugin github to bin/plugins/github/github.so
   Building plugin gitlab to bin/plugins/gitlab/gitlab.so
   Building plugin icla to bin/plugins/icla/icla.so
   Building plugin jenkins to bin/plugins/jenkins/jenkins.so
   Building plugin jira to bin/plugins/jira/jira.so
   Building plugin refdiff to bin/plugins/refdiff/refdiff.so
   Building plugin tapd to bin/plugins/tapd/tapd.so
   go run main.go
   [2022-06-16 12:04:03]  INFO failed to create dir logs: mkdir logs: file exists
   [2022-06-16 12:04:04]  INFO  [plugin] plugin loaded ae
   [2022-06-16 12:04:04]  INFO  [plugin] plugin loaded dbt
   [2022-06-16 12:04:04]  INFO  [plugin] plugin loaded feishu
   [2022-06-16 12:04:04]  INFO  [plugin] plugin loaded gitextractor
   [2022-06-16 12:04:05]  INFO  [plugin] plugin loaded github
   [2022-06-16 12:04:05]  INFO  [plugin] plugin loaded gitlab
   [2022-06-16 12:04:05]  INFO  [plugin] plugin loaded icla
   [2022-06-16 12:04:05]  INFO  [plugin] plugin loaded jenkins
   [2022-06-16 12:04:05]  INFO  [plugin] plugin loaded jira
   [2022-06-16 12:04:06]  INFO  [plugin] plugin loaded refdiff
   [2022-06-16 12:04:06]  INFO  [plugin] plugin loaded tapd
   panic: encKey is required
   
   goroutine 1 [running]:
   github.com/apache/incubator-devlake/services.init.0()
   	/Users/shogun/public_html/lake/services/init.go:63 +0x42b
   exit status 2
   make: *** [run] Error 1
   ```
   
   ### What you expected to happen
   
   DevLake API should startup successfully and accept connections.
   
   ### How to reproduce
   
   Run `make dev` under OSX Environment with an brand new Devlake MySQL Container Instance.
   
   ### Anything else
   
   This may impact OSX Developer workflow on `main` branch. This could be environment related but it has to be ruled out by other OSX users.
   
   ### Version
   
   main
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] abeizn commented on issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
abeizn commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1158899521

   > @abeizn Did you have a chance to try this on a brand new docker mysql container? (ie new developer setup)
   
   of course,  I delete the mysql image, and docker image pull mysql ,  and git clone new repo, and docker-compose up -d mysql grafana, and copy env.exemple .env (mysql->127.0.0.1),  then retry(make dev).   it worked.
   
   1. detele mysql image
   2. docker image pull mysql 
   ![image](https://user-images.githubusercontent.com/101256042/174311512-426a0145-8d86-4a44-9c09-3cfc0cc7c2c1.png)
   3. git clone new repo
   ![image](https://user-images.githubusercontent.com/101256042/174312513-f5b28ff0-b5e0-4467-aacb-b33b552068bc.png)
   
   4. make dev
   ![image](https://user-images.githubusercontent.com/101256042/174312590-5e7458f3-9700-415e-9c72-8d64313ecca7.png)
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] e2corporation commented on issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
e2corporation commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1158969966

   Always this result for me....
   
   ```
   make dev
   Usage: 
     build all plugins:              scripts/compile-plugins.sh [golang build flags...]
     build and keep one plugin only: PLUGIN=jira scripts/compile-plugins.sh [golang build flags...]
   Building plugin ae to bin/plugins/ae/ae.so
   Building plugin dbt to bin/plugins/dbt/dbt.so
   Building plugin feishu to bin/plugins/feishu/feishu.so
   Building plugin gitextractor to bin/plugins/gitextractor/gitextractor.so
   Building plugin github to bin/plugins/github/github.so
   Building plugin gitlab to bin/plugins/gitlab/gitlab.so
   Building plugin icla to bin/plugins/icla/icla.so
   Building plugin jenkins to bin/plugins/jenkins/jenkins.so
   Building plugin jira to bin/plugins/jira/jira.so
   Building plugin refdiff to bin/plugins/refdiff/refdiff.so
   Building plugin starrocks to bin/plugins/starrocks/starrocks.so
   Building plugin tapd to bin/plugins/tapd/tapd.so
   go run main.go
   [2022-06-17 11:12:00]  INFO failed to create dir logs: mkdir logs: file exists
   [2022-06-17 11:12:00]  INFO  [plugin] plugin loaded ae
   [2022-06-17 11:12:00]  INFO  [plugin] plugin loaded dbt
   [2022-06-17 11:12:01]  INFO  [plugin] plugin loaded feishu
   [2022-06-17 11:12:01]  INFO  [plugin] plugin loaded gitextractor
   [2022-06-17 11:12:01]  INFO  [plugin] plugin loaded github
   [2022-06-17 11:12:01]  INFO  [plugin] plugin loaded gitlab
   [2022-06-17 11:12:02]  INFO  [plugin] plugin loaded icla
   [2022-06-17 11:12:02]  INFO  [plugin] plugin loaded jenkins
   [2022-06-17 11:12:02]  INFO  [plugin] plugin loaded jira
   [2022-06-17 11:12:02]  INFO  [plugin] plugin loaded refdiff
   [2022-06-17 11:12:02]  INFO  [plugin] plugin loaded starrocks
   [2022-06-17 11:12:03]  INFO  [plugin] plugin loaded tapd
   panic: encKey is required
   
   goroutine 1 [running]:
   github.com/apache/incubator-devlake/services.init.0()
   	/Users/shogun/public_html/lake/services/init.go:63 +0x42b
   exit status 2
   make: *** [run] Error 1
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] e2corporation commented on issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
e2corporation commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1157956540

   This appears to be related to `ENCODE_KEY` env var setting and the Decrypt call not able to find `encKey`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] e2corporation commented on issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
e2corporation commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1158824992

   @abeizn Did you have a chance to try this on a brand new docker mysql container? (ie new developer setup)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] e2corporation commented on issue #2233: [Bug] [Init] Developer Setup on OSX: Make Run Error

Posted by GitBox <gi...@apache.org>.
e2corporation commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1157863254

   @klesh 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] abeizn commented on issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
abeizn commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1158944887

   > @abeizn Also can you try from our forked repo? I am working on a feature branch rebased from `main` branch on `merico-dev/lake`. I wonder if our fork is out of date which is causing the issue?
   
   i try it ,and it worked.
   ![image](https://user-images.githubusercontent.com/101256042/174321105-f5f23bef-470a-4936-99f5-423061be8f44.png)
   
   ![image](https://user-images.githubusercontent.com/101256042/174321337-86784596-c545-4ca8-98d0-9f28d0df5a16.png)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] abeizn commented on issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
abeizn commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1158935423

   > @abeizn Interesting thanks for double checking, I will destroy all containers and try again but I'm also curious as to what `.env` file you are using? Have you tried this using the `.env.example` file as a reference? What is the initial value for `ENCODE_KEY` for new users? Is this value set by the user initially?
   
   yes, i used the .env.example file as a reference. and the ENCODE_KEY has no value.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] abeizn commented on issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
abeizn commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1162694330

   @e2corporation it is ok now? Can the issue be closed?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] abeizn commented on issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
abeizn commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1158935844

   > @abeizn Also can you try from our forked repo? I am working on a feature branch rebased from `main` branch on `merico-dev/lake`. I wonder if our fork is out of date which is causing the issue?
   I will try it now.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] abeizn commented on issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
abeizn commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1159322720

   https://github.com/apache/incubator-devlake/pull/2239 this PR may help to solve the above problem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] abeizn commented on issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
abeizn commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1158721286

   I executed the process a few times and it worked, maybe someone updated it in the middle and then the issue stopped recurring. Can you pull down the latest code and re-execute it? If there are still questions, please contact me promptly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] abeizn closed issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
abeizn closed issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error
URL: https://github.com/apache/incubator-devlake/issues/2233


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] e2corporation commented on issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
e2corporation commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1158928409

   @abeizn Interesting thanks for double checking, I will destroy all containers and try again but I'm also curious as to what `.env` file you are using? Have you tried this using the `.env.example` file as a reference? What is the initial value for `ENCODE_KEY` for new users? Is this value set by the user initially?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] e2corporation commented on issue #2233: [Bug] [Init] Developer Setup on OSX: `make dev` Run Error

Posted by GitBox <gi...@apache.org>.
e2corporation commented on issue #2233:
URL: https://github.com/apache/incubator-devlake/issues/2233#issuecomment-1158933237

   @abeizn Also can you try from our forked repo? I am working on a feature branch rebased from `main` branch on `merico-dev/lake`. I wonder if our fork is out of date which is causing the issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org