Jump to content

manrw

Members
  • Posts

    71
  • Joined

  • Last visited

Posts posted by manrw

  1. Hallo, ich bin der Entwickler von Homarr und helfe dir gerne weiter.

    Homarr unterstützt das Starten, Stoppen und Löschen von Container per UI.

    Dies ist hier dokumentiert: https://homarr.dev/docs/advanced/configuration/environment-variables#docker-integration

     

    Du kannst diese Funktionalität deaktivieren, wenn du die nicht möchtest, indem du in deiner Unraid App den Mount zu /var/run/docker.sock löscht.

    Dadurch ist es nicht länger möglich Container zu stoppen oder löschen.

    Bezüglich Sicherheit: deine Container sehen per Standard immer dein Netzwerk. Möchtest du zusätzlich Sicherheit dann empfehle ich die benutzerdefinierte Docker Netzwerke oder VLANs.

     

    LG

    • Like 1
  2. 1 minute ago, EC28 said:

    How would I format the user flag in the field?  Currently I have the routing through the bittorrent container for VPN use.


    Just ensure to put a space between options like you do on Linux commands:

     

    --optionA valueA --optionB valueB

    In your case, that would probably be something along the lines of --network mycontainer --user ???:???

    • Thanks 1
  3. 6 hours ago, EC28 said:

    Looks like he's getting ready to solve the issue further.  Once we can set the files to 777 we should be good, right?

     

    https://github.com/slskd/slskd/compare/79cd6c0033631b33e9508b7c10e48b9edfafe21d...4f50d184c8923d975e5930a66a6385683823ef77


    Hi, you can add the user flag in the "Extra argugments" when editing the docker container.
    You may need to activate the advanced mode if you do not see this field.
    Please do not ask the image authors for Unraid specific questions, because they usually will not know how Unraid works.

    Setting 777 will work but is strongly not recommended, because it will enable anyone on the machine to write, read, delete and execute these specific files. This is considered to be dangerous because this could be used in a malicious way and is therefore considered bad practice.

    • Thanks 1
  4. 17 minutes ago, nmkaufman said:

     

    I will play around with it, this weekend.

     

    I believe the problem is that it's creating files, owned by ROOT, while other containers use NOBODY, by default.

     

    It's not setting permissions that allow other users to access the files.

     

    The easiest solution would be to set the UMASK, but I tried passing a UMASK environmental variable to the container, and it didn't seem to work. I did see a reddit thread where someone claimed this worked, though, so I'm going to further experiment.

    Sounds good 👍.

    If you still have any trouble after that I would suggest that you open an slskd issue.

    • Like 1
  5. 59 minutes ago, nmkaufman said:

     

    Did you have any luck getting permissions working?

     

    I tried adding --user 99:100 as a post argument, and it's still not working.

     

    I have to reset permissions on my downloads folder before other containers can interract with the files.

     

    It makes sharing/contributing next to impossible, as well.


    Hi,
    I'd like to emphasize that I'm not the image author but only created the template.
    This means I generally can't help with any modifications that do not exist in my default template that I provide.

    That being said, I think you have multiple options to fix the container permissions:

    • Ensure that the directories are owned by the docker user. This is usually "nobody". You can also add this user to a group on your host machine and permit write & read to this user. The application shouldn't need execute.
    • It seems that the container runs on root via default: https://github.com/slskd/slskd/blob/master/docs/docker.md . You could ensure that root can write & read on these directories.
    • In the worst case, you could permit all users to write & read. This is considered bad practice and is not recommended. However, it might not be too bad if no parts of your server are exposed.

    If you still have trouble, I would suggest reaching out to the author of slskd. Keep in mind that they usually don't know "Unraid" or other distributions and they expect you to provide the docker run command (you can obtain this from Unraid). I hope this helps.

    • Like 1
  6. 7 hours ago, Maitresinh said:

    ok, found it

     

    1/ you have to remove the #

    2/ using " " 

    3/ you can use the container path : "/temp" instead of absolute path

     

    BUT i still fail to enter the shares

     

     

     

    Exception during deserialization: Invalid cast from 'System.String' to 'System.String[]'.

    Hi, you need to have a list instead of a single string:

    https://github.com/slskd/slskd/blob/master/docs/config.md#directories.

     

    shares:
       directories:
         - "/musique"

     

  7. 5 minutes ago, scissabob said:

    Hi there, 

    first, thanks for the slskd container!
    It is up and running. 

    i was able to mount my NAS in it as download target.
    Unfortunately, I cannot get the share to work.

    The config is like this:
     

    directories:
      incomplete: /app/incomplete
      downloads: /app/downloads
    shares:
      directories: []

     

    I cannot add my shares here...
    Even if I set the remote configuration to "true" it is not working to edit the config-file. 

     

    Any Ideas?


    Hi,
    I recommend you to read the configuration for the shared: https://github.com/slskd/slskd/blob/master/docs/config.md#shares .
    Please note that you must mount your directories to inside the container using a path mode (prefer read-only if possible). Then reference this path using the config.
    So when you're editing the config file, you're unable to edit it?
    Have you read https://github.com/slskd/slskd/blob/master/docs/docker.md ?
    As far as I can see, you should edit this on the mounted directory while the application is stopped, save it and then restart the application.

    • Like 1
  8. 41 minutes ago, Icebr3aker said:

    Hi,

    i just installed Homarr, but when i go to the WebUI for the first time it asks me for a username and Password even though I didn´t set either up, is there a default or am I missing something


    Hi,
    Homarr requires you to set an administrator account for security.
    Once you've created this account, it will no longer ask you for it.
    However, to make any changes to the boards or settings, you must relogin to your administrator account.

    If you're having troubles with the account or forgot your password, you can use the CLI to recover your account or start from scratch: https://homarr.dev/docs/advanced/command-line/

     

    3 minutes ago, technotic said:

    I was just curious... How does Manuel feel about all of this? Manuel is probably the most supported guy in the entire tech industry. 


    Sorry, I don't get your question. How may I help you?

  9. Although I wasn't able to 100% confirm, because I had to wait days to get it to crash, I suspect that it was any of the following containers:

    - GitLab

    - Postgres14

    - Postgres15

    - pgAdmin4

     

    I'd assume that deleting the database would be enough to get rid of the errror. Although it should be noted, that the crash could be caused by a different error that we don't see in the log. The Postgres error is just the last entry and makes it quite likely that it's the reason for the crash.

     

    Furthermore, I can confirm that no plugin or Unraid itself was causing the crash.

  10. Thanks, I'll let it run in safe mode. But without Docker, it's useless to me.
    I see a Call trace mentioning Postgres and "php-fpm" in the log. I assume php-fpm is from Unraid itself but Postgres is not.
    Could a Docker container be crashing Unraid? I do run two instances of Postgres.
    "Corrupted page table at address 55b437033b50" sounds to me that there could be corrupted data in one of the databases.
    If one container accesses said data only periodically or upon requests, this would explain the seemingly random behavior of the crash.

  11. Hi, thanks for the reply. I just set up a rsyslog on my Raspberry Pi and will wait for the next crash.
    This may take a few hours to days, since I don't have reproduction steps for it.
    I actually turned on the cloning of the syslog to the flash drive a few days ago - would you want that?

    Syslog file on Raspberry Pi looks like this:
    image.thumb.png.8d9cbe187e89779ed1021fdf622e29ea.png
    I assume that's ok?

    EDIT: Can confirm that Remote Syslog is working: It just updated with some messages from a plugin. I'll let you know once I see another crash.

  12. Hello,
    for the last 3 months I have been having issues with random crashes on my Unraid server.

    It has been running well before. First, I suspected a hardware failure - so I checked the disk devices and the logs for errors.
    I noticed that there were PCIe errors for one of my SATA controllers which stated that an error was corrected.
    Other than that, there was nothing unusual.
    Every time the server "crashes", USB power on the chasis goes out and I'm unable to establish any connection via IPv4 (ICMP , HTTP and SSH).
    Pressing the power button once did not shut down the server gracefully (even after 15 minutes) and I always had to press for 5 seconds to restart.
    After that, the server booted back up and worked normally.
    Since I didn't have much time due to Christmas and moving to a new apartment, I was unable to further investigate it - it still crashed every 2 hours - 3 days.
    There is no pattern between the crashes and they seem random to me.

     

    Now I finished moving and replaced the SATA controller with a better one.
    I no longer see the PCIe errors but the server is still crashing.
    Since I was using an old Z170A board (almost no settings, unable to change C states, ...) with an I7 7600k before, I switched to a Gigabyte B760 Gaming with I3 12100 for much lower idle consumption.
    This configuration has been working well but the crashes are still happening randomly.
    Due to the replacements and upgrades, I suspect that this isn't a hardware failure.
    I am at the end of my troubleshooting steps and would appreciate if you could help me with the next steps.

    image.png.ab441816775c6239b98c32896e9fc492.png

    Further context:

    • My server never had a power loss
    • I'm running Ubiquiti DM & multiple switches for my network
    • Power is controlled over multiple NETIO 4C PDUs - but they never turned off according to the history
    • HDMI does not give any output on the screen anymore when I try to look after the crash
    • UniFi controller shows the device as offline after crashing

    tower-diagnostics-20231217-1909.zip

  13. 15 minutes ago, Keek Uras said:

    Hello. I updated the docker this morning and after it completed, I can no longer log in. I get Request failed with status code 500 and this shows in the log:

    System.ArgumentOutOfRangeException: IDX10720: Unable to create KeyedHashAlgorithm for algorithm 'HS256', the key size must be greater than: '256' bits, key has '168' bits. (Parameter 'keyBytes')
       at Microsoft.IdentityModel.Tokens.CryptoProviderFactory.ValidateKeySize(Byte[] keyBytes, String algorithm, Int32 expectedNumberOfBytes)
       at Microsoft.IdentityModel.Tokens.CryptoProviderFactory.CreateKeyedHashAlgorithm(Byte[] keyBytes, String algorithm)
       at Microsoft.IdentityModel.Tokens.SymmetricSignatureProvider.CreateKeyedHashAlgorithm()
       at Microsoft.IdentityModel.Tokens.DisposableObjectPool`1.CreateInstance()
       at Microsoft.IdentityModel.Tokens.DisposableObjectPool`1.Allocate()
       at Microsoft.IdentityModel.Tokens.SymmetricSignatureProvider.GetKeyedHashAlgorithm(Byte[] keyBytes, String algorithm)
       at Microsoft.IdentityModel.Tokens.SymmetricSignatureProvider.Sign(Byte[] input)
       at Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities.CreateEncodedSignature(String input, SigningCredentials signingCredentials)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.WriteToken(SecurityToken token)
       at slskd.Core.API.TokenResponse.get_Token()
       at System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.GetMemberAndWriteJson(Object obj, WriteStack& state, Utf8JsonWriter writer)
       at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, WriteStack& state)
       at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
       at System.Text.Json.Serialization.JsonConverter`1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
       at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.SerializeAsync(Stream utf8Json, T rootValue, CancellationToken cancellationToken, Object rootValueBoxed)
       at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.SerializeAsync(Stream utf8Json, T rootValue, CancellationToken cancellationToken, Object rootValueBoxed)
       at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.SerializeAsync(Stream utf8Json, T rootValue, CancellationToken cancellationToken, Object rootValueBoxed)
       at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
       at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
       at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
       at slskd.HTMLInjectionMiddleware.InvokeAsync(HttpContext context)
       at slskd.HTMLRewriteMiddleware.InvokeAsync(HttpContext context)
       at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)

     

    Any ideas?


    Hi, this is an issue of the application itself - not the template. Please report any application issues to the author: https://github.com/slskd/slskd/issues . This support thread is only for template related issues. The template uses the official Docker image as well.

  14. 2 hours ago, VelcroBP said:

    Is there an environment variable available to set UMASK for the SLSKD container? Right now all files/folders are set as -rw-r--r--


    Please refer to the official documentation for information regarding permissions & configuration:
    https://github.com/slskd/slskd/blob/master/docs/docker.md
    https://github.com/slskd/slskd/blob/master/docs/config.md


    You can contribute missing properties or environment variables on the template when necessary:
    https://github.com/manuel-rw/unraid-templates

  15. 8 hours ago, VelcroBP said:

    I am using the default.

    Oddly enough, I upgraded unRaid last night from v6.11.5 to v6.12.4, and now it is working as expected. 

    Loving the container!

    Ok, that's weird. But I'm not going to complain then. If you like the app make sure to let the authors know. As a reminder, I am only the creator of the Unraid template and did therefore not write any of the applications code (except Homarr and the Discord bot).

  16. What port are you using to expose it? Unraid's implementation expects either the default value I set or the configured in the template.

    If you remove the port, this won't work anymore.

    See:

    https://github.com/manuel-rw/unraid-templates/blob/0e10a06b6a2c36604ce57faafe7b5e9f6b987dcc/templates/slskd/slskd.xml#L30

    https://github.com/manuel-rw/unraid-templates/blob/0e10a06b6a2c36604ce57faafe7b5e9f6b987dcc/templates/slskd/slskd.xml#L14

     

    You can enter advanced mode (I think it's not visible in standard) and manually change Web UI to the desired value.

  17. On 11/13/2023 at 2:58 PM, capricatix said:

    Hi everyone. Just updated my Homarr but lost my password. Is there a way to easily reset? There doesn't seem to be alink on the login page...

    Hi, please use the new thread fur any future questions:

    Regarding the password reset: We are currently working on a feature to reset by console and also enable administrators to reset other users passwords: https://github.com/ajnart/homarr/issues/1616 .

    In the meantime, you can reset the data by deleting the db.sqlite database. Note that you shouldn't do this in future versions as it will remove your boards in upcoming versions of Homarr. However, it's fine to do in 0.14.0 and 0.14.1 as you'll be prompted with the onboarding process again.
    Best regards 👋

×
×
  • Create New...