-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
can't run alda-player #395
Comments
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)?
It would also be useful to know which versions of |
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)?
1. Run a player process in the foreground: alda-player -v run -p 12345
2. 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
<#395 (comment)>, 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
<#395 (comment)>, 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.<init>(StateManager.kt:99)
at io.alda.player.Run.run(Main.kt:74)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:139)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:14)
at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:215)
at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:212)
at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:230)
at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:253)
at io.alda.player.MainKt.main(Main.kt:144)
***@***.*** ~ % 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 Try this: |
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
<#395 (comment)>, 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:
|
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
<#395 (comment)>, 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 |
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
Expected Behavior
Actual Behavior
Environment
Operating system and version:
Alda version:
Health check:
The text was updated successfully, but these errors were encountered: