Closed kksun007 closed 2 years ago
Hi @kksun007 , thanks for the bug report!
I'm not sure yet what the problem may be, but would you mind trying the following and pasting any error messages you see (if any)?
alda-player -v run -p 12345
alda -v2 play -p 12345 -c "piano: c12 e g > c4"
It would also be useful to know which versions of alda
and alda-player
you have installed. I did fix some issues similar to this recently in Alda 2.0.4.
Hi Dave,
Thanks for your reply. Attached are the messages of running results. Thanks again for your help.
kind regards, kksun007
Dave Yarwood @.***> 於 2021年9月6日 週一 上午8:05寫道:
Hi @kksun007 https://github.com/kksun007 , thanks for the bug report!
I'm not sure yet what the problem may be, but would you mind trying the following and pasting any error messages you see (if any)?
- Run a player process in the foreground: alda-player -v run -p 12345
- Try to make it play something: alda -v2 play -p 12345 -c "piano: c12 e g > c4"
It would also be useful to know which versions of alda and alda-player you have installed. I did fix some issues similar to this recently in Alda 2.0.4 https://github.com/alda-lang/alda/blob/master/CHANGELOG.md#204-2021-08-14 .
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alda-lang/alda/issues/395#issuecomment-913251630, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI3LEU5QXOY4SGP4JJDTETUAQATNANCNFSM5DOTSENA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I don't see an attachment - can you please try again?
Hi Dave,
I re-attach the message files. Please try again. Thanks a lot.
kind regards, kksun007
Dave Yarwood @.***> 於 2021年9月6日 週一 上午9:15寫道:
I don't see an attachment - can you please try again?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alda-lang/alda/issues/395#issuecomment-913269880, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI3LEQ7EGUUTRCRAPAOOJLUAQI4TANCNFSM5DOTSENA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@.*** ~ % alda-player -v run -p 12345 2021-09-06 08:24:46,926 main ERROR Unable to create file /Users/leonlu/Library/Caches/alda/logs/alda-player.log java.io.IOException: Could not create directory /Users/leonlu/Library/Caches/alda/logs at org.apache.logging.log4j.core.util.FileUtils.mkdir(FileUtils.java:127) at org.apache.logging.log4j.core.util.FileUtils.makeParentDirs(FileUtils.java:144) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:658) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:639) at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:113) at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:114) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:209) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1002) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:942) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:934) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:552) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:288) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:618) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:691) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:708) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:263) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194) at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:138) at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:45) at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:48) at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:30) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363) at mu.KotlinLogging.logger(KotlinLogging.kt:30) at io.alda.player.MainKt.main(Main.kt:140)
2021-09-06 08:24:46,930 main ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingFileAppender for element rollingFile: java.lang.IllegalStateException: ManagerFactory @. unable to create manager for [/Users/leonlu/Library/Caches/alda/logs/alda-player.log] with data @.[pattern=/Users/leonlu/Library/Caches/alda/logs/alda-player-%d{yyyy-MM-dd}.log, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout=%yellow{yyj} %highlight{%-5level} %d{yyyy-MM-dd HH:mm:ss} %c{1}.%M:%L - %msg%n%throwable{short.lineNumber}, filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: ManagerFactory @. unable to create manager for [/Users/leonlu/Library/Caches/alda/logs/alda-player.log] with data @.[pattern=/Users/leonlu/Library/Caches/alda/logs/alda-player-%d{yyyy-MM-dd}.log, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout=%yellow{yyj} %highlight{%-5level} %d{yyyy-MM-dd HH:mm:ss} %c{1}.%M:%L - %msg%n%throwable{short.lineNumber}, filePermissions=null, fileOwner=null]] at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:115) at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:114) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:209) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1002) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:942) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:934) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:552) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:288) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:618) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:691) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:708) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:263) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194) at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:138) at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:45) at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:48) at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:30) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363) at mu.KotlinLogging.logger(KotlinLogging.kt:30) at io.alda.player.MainKt.main(Main.kt:140)
2021-09-06 08:24:46,932 main ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingFileAppender for element rollingFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:234) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:134) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1002) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:942) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:934) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:552) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:288) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:618) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:691) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:708) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:263) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194) at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:138) at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:45) at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:48) at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:30) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363) at mu.KotlinLogging.logger(KotlinLogging.kt:30) at io.alda.player.MainKt.main(Main.kt:140)
2021-09-06 08:24:46,933 main ERROR Null object returned for rollingFile in appenders.
2021-09-06 08:24:46,936 main ERROR Unable to locate appender "rollingFile" for logger config "root"
Exception in thread "main" java.io.IOException: Permission denied
at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.base/java.io.File.createNewFile(File.java:1035)
at io.alda.player.StateManager.
@.*** ~ % alda -v2 play -p 12345 -c "piano: c12 e g > c4" Sep 6 08:28:58 INF parser/parser.go:791 > Parsed input. filepath= took=1.148504ms Sep 6 08:28:58 INF cmd/play.go:243 > Constructed score. took="306.22µs" updates=6 Sep 6 08:28:58 INF cmd/play.go:305 > Sending messages to players. action=play players=[{"Expiry":0,"ID":"unknown","Port":12345,"ReadError":null,"State":"unknown"}] Oops! Something went wrong: dial tcp 127.0.0.1:12345: connect: connection refused
This might be a bug. For help, consider filing an issue at: https://github.com/alda-lang/alda/issues/new/choose
Or come chat with us on Slack: https://slack.alda.io Sep 6 08:29:04 WRN system/process_management.go:172 > Failed to clean up stale state files. error="remove /Users/leonlu/Library/Caches/alda/state/repl-servers/jxv.json: permission denied" Sep 6 08:29:04 INF system/process_management.go:452 > Spawned player process. Sep 6 08:29:04 INF system/process_management.go:452 > Spawned player process. Sep 6 08:29:04 INF system/process_management.go:452 > Spawned player process.
@kksun007 Sorry for the late response! It's been a busy week at work.
From that log output, I think the problem might be that your user doesn't have owner permissions for /Users/leonlu/Library
. I would try changing the owner of that directory to your user.
Try this: sudo chown -R leonlu ~/Library
(and type in your password and press enter when prompted)
Hi Dave,
thanks for your reply. I'v tried the command you mentioned, and showed the message as below : [image: image.png] Is something wrong ? for your reference, thanks ~
kind regards kksun007
Dave Yarwood @.***> 於 2021年9月10日 週五 上午1:16寫道:
@kksun007 https://github.com/kksun007 Sorry for the late response! It's been a busy week at work.
From that log output, I think the problem might be that your user doesn't have owner permissions for /Users/leonlu/Library. I would try changing the owner of that directory to your user.
Try this: sudo chown -R ~/Library (and type in your password and press enter when prompted)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alda-lang/alda/issues/395#issuecomment-916286723, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI3LEWFVM777R2O67EXDX3UBDTXTANCNFSM5DOTSENA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@kksun007 The image isn't displaying here. I just see it as:
[image: image.png]
Hi Dave,
I don't know why the screen shot image was blocked. I stick the messages with text instead. Please refer to the following :
-------------------------------------------------------------------------------------------------------->>
@.*** ~ % sudo chown -R -/Library
Password:
chown: illegal option -- /
usage: chown [-fhnv] [-R [-H | -L | -P]] owner[:group] file ...
chown [-fhnv] [-R [-H | -L | -P]] :group file ...
kind regards,
kksun007
Dave Yarwood @.***> 於 2021年9月12日 週日 下午11:42寫道:
@kksun007 https://github.com/kksun007 The image isn't displaying here. I just see it as:
[image: image.png]
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alda-lang/alda/issues/395#issuecomment-917659975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI3LEXYRQ57BGXDST2EJHLUBTC73ANCNFSM5DOTSENA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I see the problem there. The last part of the command should be ~/Library
with a tilde, not a dash.
Closing this for now, but I'm happy to continue to help if you need it! We can either keep talking here in comments, or on Slack.
🐞 Bug report 🐞
Description
Steps to Reproduce
1. 2. 3. 4.
Expected Behavior
Actual Behavior
Environment
Operating system and version:
Alda version:
Health check: