Skip to content
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

running without sudo #836

Closed
dreboli opened this issue Nov 13, 2018 · 11 comments

Comments

Projects
None yet
3 participants
@dreboli
Copy link

commented Nov 13, 2018

sudo dotnet run works as expected but running without sudo:

$ dotnet run
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3088: Could not read state file "obj/Debug/netcoreapp2.1/WalletWasabi.csprojAssemblyReference.cache". Access to the path '/home/bob/WalletWasabi/WalletWasabi/obj/Debug/netcoreapp2.1/WalletWasabi.csprojAssemblyReference.cache' is denied. [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3106: Assembly strong name "/home/bob/.nuget/packages/microsoft.extensions.logging.abstractions/1.0.2/lib/netstandard1.1/Microsoft.Extensions.Logging.Abstractions.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3106: Assembly strong name "/home/bob/.nuget/packages/microsoft.extensions.logging.abstractions/1.0.2/lib/netstandard1.1/Microsoft.Extensions.Logging.Abstractions.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3088: Could not read state file "obj/Debug/netstandard2.0/AvalonStudio.Shell.csprojAssemblyReference.cache". Access to the path '/home/bob/WalletWasabi/WalletWasabi.Dependencies/AvalonStudio.Shell/src/AvalonStudio.Shell/obj/Debug/netstandard2.0/AvalonStudio.Shell.csprojAssemblyReference.cache' is denied. [/home/bob/WalletWasabi/WalletWasabi.Dependencies/AvalonStudio.Shell/src/AvalonStudio.Shell/AvalonStudio.Shell.csproj]
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3088: Could not read state file "obj/Debug/netcoreapp2.1/WalletWasabi.Gui.csprojAssemblyReference.cache". Access to the path '/home/bob/WalletWasabi/WalletWasabi.Gui/obj/Debug/netcoreapp2.1/WalletWasabi.Gui.csprojAssemblyReference.cache' is denied. [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3106: Assembly strong name "/home/bob/.nuget/packages/microsoft.extensions.logging.abstractions/1.0.2/lib/netstandard1.1/Microsoft.Extensions.Logging.Abstractions.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3106: Assembly strong name "/home/bob/.nuget/packages/microsoft.extensions.logging.abstractions/1.0.2/lib/netstandard1.1/Microsoft.Extensions.Logging.Abstractions.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
Error:
  An assembly specified in the application dependencies manifest (WalletWasabi.Gui.deps.json) was not found:
    package: 'Microsoft.Extensions.Logging.Abstractions', version: '1.0.2'
    path: 'lib/netstandard1.1/Microsoft.Extensions.Logging.Abstractions.dll'

Ubuntu 18.04.1

@nopara73 nopara73 added the debug label Nov 13, 2018

@nopara73

This comment has been minimized.

Copy link
Collaborator

commented Nov 13, 2018

Ubuntu 18.04.1 is well tested without sudo. This should be further investigated.

@dreboli

This comment has been minimized.

Copy link
Author

commented Nov 13, 2018

It was ok until the last wasabi update.
For earlier versions I always had to run with sudo first, after that it worked without sudo.

After the last update I got:

$ dotnet run
/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj : error NU1102: Unable to find package Portable.BouncyCastle with version (>= 1.8.4) [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj : error NU1102:   - Found 20 version(s) in nuget.org [ Nearest version: 1.8.3.37 ] [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj : error NU1102:   - Found 0 version(s) in AvaloniCI [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj : error NU1102:   - Found 0 version(s) in DockNightly [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj : error NU1102:   - Found 0 version(s) in XamlBehaviors [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj : error NU1102: Unable to find package NBitcoin with version (>= 4.1.1.68) [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj : error NU1102:   - Found 444 version(s) in nuget.org [ Nearest version: 4.1.1.66 ] [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj : error NU1102:   - Found 0 version(s) in AvaloniCI [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj : error NU1102:   - Found 0 version(s) in DockNightly [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj : error NU1102:   - Found 0 version(s) in XamlBehaviors [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102: Unable to find package Avalonia.Desktop with version (>= 0.7.1-build566-beta)
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102:   - Found 76 version(s) in AvaloniCI [ Nearest version: 0.7.1-build503-beta ]
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102:   - Found 9 version(s) in nuget.org [ Nearest version: 0.7.0 ]
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102:   - Found 0 version(s) in DockNightly
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102:   - Found 0 version(s) in XamlBehaviors
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102: Unable to find package Portable.BouncyCastle with version (>= 1.8.4)
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102:   - Found 20 version(s) in nuget.org [ Nearest version: 1.8.3.37 ]
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102:   - Found 0 version(s) in AvaloniCI
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102:   - Found 0 version(s) in DockNightly
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102:   - Found 0 version(s) in XamlBehaviors
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102: Unable to find package NBitcoin with version (>= 4.1.1.68)
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102:   - Found 444 version(s) in nuget.org [ Nearest version: 4.1.1.66 ]
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102:   - Found 0 version(s) in AvaloniCI
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102:   - Found 0 version(s) in DockNightly
/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj : error NU1102:   - Found 0 version(s) in XamlBehaviors

The build failed. Please fix the build errors and run again.

After this I used sudo to run it once, then run it again without sudo gave me the error I quoted in the OP.

@nopara73

This comment has been minimized.

Copy link
Collaborator

commented Nov 13, 2018

@dreboli What if do you get by running dotnet restore in the WalletWasabi.Gui?

@dreboli

This comment has been minimized.

Copy link
Author

commented Nov 13, 2018

$ dotnet restore
  Restore completed in 227.63 ms for /home/bob/WalletWasabi/WalletWasabi.Dependencies/AvalonStudio.Shell/src/AvalonStudio.Utils/AvalonStudio.Utils.csproj.
  Restore completed in 236.94 ms for /home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj.
  Restore completed in 244.38 ms for /home/bob/WalletWasabi/WalletWasabi.Dependencies/AvalonStudio.Shell/src/AvalonStudio.Shell.Extensibility/AvalonStudio.Shell.Extensibility.csproj.
  Restore completed in 244.28 ms for /home/bob/WalletWasabi/WalletWasabi.Dependencies/AvalonStudio.Shell/src/AvalonStudio.Shell/AvalonStudio.Shell.csproj.
  Restore completed in 2.3 ms for /home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj.
$ dotnet run
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3088: Could not read state file "obj/Debug/netcoreapp2.1/WalletWasabi.csprojAssemblyReference.cache". Access to the path '/home/bob/WalletWasabi/WalletWasabi/obj/Debug/netcoreapp2.1/WalletWasabi.csprojAssemblyReference.cache' is denied. [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3106: Assembly strong name "/home/bob/.nuget/packages/microsoft.extensions.logging.abstractions/1.0.2/lib/netstandard1.1/Microsoft.Extensions.Logging.Abstractions.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3106: Assembly strong name "/home/bob/.nuget/packages/microsoft.extensions.logging.abstractions/1.0.2/lib/netstandard1.1/Microsoft.Extensions.Logging.Abstractions.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3088: Could not read state file "obj/Debug/netcoreapp2.1/WalletWasabi.Gui.csprojAssemblyReference.cache". Access to the path '/home/bob/WalletWasabi/WalletWasabi.Gui/obj/Debug/netcoreapp2.1/WalletWasabi.Gui.csprojAssemblyReference.cache' is denied. [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3106: Assembly strong name "/home/bob/.nuget/packages/microsoft.extensions.logging.abstractions/1.0.2/lib/netstandard1.1/Microsoft.Extensions.Logging.Abstractions.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/usr/share/dotnet/sdk/2.1.403/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3106: Assembly strong name "/home/bob/.nuget/packages/microsoft.extensions.logging.abstractions/1.0.2/lib/netstandard1.1/Microsoft.Extensions.Logging.Abstractions.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
Error:
  An assembly specified in the application dependencies manifest (WalletWasabi.Gui.deps.json) was not found:
    package: 'Microsoft.Extensions.Logging.Abstractions', version: '1.0.2'
    path: 'lib/netstandard1.1/Microsoft.Extensions.Logging.Abstractions.dll'
@lontivero

This comment has been minimized.

Copy link
Contributor

commented Nov 17, 2018

@dreboli what you see is a permissions problem (I'm sure you already know that). Once you build any project using sudo, all the folders/files created by the building process are owned by the root user and not by your user. That means that your user have no access to the the ./obj folder and its files, that's why you see the error message:

Access to the path '/home/bob/WalletWasabi/WalletWasabi/obj/.....' is denied."

There are many possible solutions but lets try with the easiest one first:

$ cd /home/bob/WalletWasabi
$ sudo rm -rf ./**/obj/
$ sudo rm -rf ./**/bin/
@lontivero

This comment has been minimized.

Copy link
Contributor

commented Nov 25, 2018

@dreboli could you confirm that you can build without sudo, please?

@dreboli

This comment has been minimized.

Copy link
Author

commented Nov 26, 2018

bob@bob:~/WalletWasabi$ sudo rm -rf ./**/bin/
[sudo] password for bob: 
bob@bob:~/WalletWasabi$ sudo rm -rf ./**/obj/
bob@bob:~/WalletWasabi$ git pull
remote: Enumerating objects: 752, done.
remote: Counting objects: 100% (752/752), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 950 (delta 727), reused 751 (delta 727), pack-reused 198
Receiving objects: 100% (950/950), 612.20 KiB | 727.00 KiB/s, done.
Resolving deltas: 100% (760/760), completed with 122 local objects.
From https://github.com/zkSNACKs/WalletWasabi
   cbfa138e..dddf7143  master     -> origin/master
Fetching submodule WalletWasabi.Dependencies/AvalonStudio.Shell
From https://github.com/VitalElement/AvalonStudio.Shell
 * [new branch]      avalonia-update -> origin/avalonia-update
   e0e5309..93b03ca  master          -> origin/master
Updating cbfa138e..dddf7143
Fast-forward
 Directory.Build.targets                            |   4 +-
 .../Controllers/ChaumianCoinJoinController.cs      |  22 +-
 WalletWasabi.Backend/WalletWasabi.Backend.csproj   |   4 +-
 .../wwwroot/images/infographics.jpg                | Bin 429112 -> 522539 bytes
 WalletWasabi.Backend/wwwroot/index.html            |   3 +-
 WalletWasabi.Dependencies/AvalonStudio.Shell       |   2 +-
 WalletWasabi.Documentation/ClientDeployment.md     |   5 +-
 WalletWasabi.Documentation/DonationsSpentOn.md     |   1 +
 .../Guides/InstallInstructions.md                  |   2 +
 .../Behaviors/MnemonicSuggestionBehavior.cs        |  54 ----
 .../Behaviors/PasteAddressOnClickBehavior.cs       | 156 +++++++++++
 WalletWasabi.Gui/Behaviors/SuggestionBehavior.cs   | 111 ++++++++
 WalletWasabi.Gui/Controls/SortingArrow.cs          | 111 ++++++++
 WalletWasabi.Gui/Controls/StatusBar.xaml           |   5 +-
 .../Controls/WalletExplorer/CoinJoinTabView.xaml   | 121 +++++----
 .../WalletExplorer/CoinJoinTabViewModel.cs         | 247 +++++++++++------
 .../Controls/WalletExplorer/CoinListView.xaml      | 180 +++++++++----
 .../Controls/WalletExplorer/CoinListViewModel.cs   | 298 ++++++++++++++++++++-
 .../Controls/WalletExplorer/CoinViewModel.cs       | 134 +++++++++
 .../Controls/WalletExplorer/HistoryTabView.xaml    |  10 +-
 .../Controls/WalletExplorer/HistoryTabViewModel.cs |   2 +-
 .../Controls/WalletExplorer/ReceiveTabView.xaml    |  50 ++--
 .../Controls/WalletExplorer/ReceiveTabViewModel.cs |  81 +++++-
 .../Controls/WalletExplorer/SendTabView.xaml       |  34 ++-
 .../Controls/WalletExplorer/SendTabViewModel.cs    | 101 ++++++-
 .../Converters/CoinItemExpanderColorConverter.cs   |  30 +++
 .../Converters/CoinStatusBorderBrushConverter.cs   |  34 +++
 .../Converters/CoinStatusColorConverter.cs         |  41 +++
 .../Converters/CoinStatusForegroundConverter.cs    |  35 +++
 .../Converters/CoinStatusStringConverter.cs        |  41 +++
 WalletWasabi.Gui/Converters/PhaseColorConverter.cs |   3 +-
 .../Converters/UpdateStatusBrushConverter.cs       |   2 +-
 .../WindowStateAfterSartJsonConverter.cs           |  52 ++++
 WalletWasabi.Gui/Global.cs                         |  15 +-
 WalletWasabi.Gui/MainWindow.xaml                   |   8 +-
 WalletWasabi.Gui/MainWindow.xaml.cs                |  38 ++-
 WalletWasabi.Gui/Models/SmartCoinStatus.cs         |  20 ++
 WalletWasabi.Gui/Program.cs                        |  46 ++--
 WalletWasabi.Gui/Tabs/SettingsViewModel.cs         |   5 +
 .../WalletManager/GenerateWalletSuccessView.xaml   |   4 +-
 .../Tabs/WalletManager/GenerateWalletView.xaml     |   4 +-
 .../Tabs/WalletManager/RecoverWalletView.xaml      |   8 +-
 .../Tabs/WalletManager/RecoverWalletViewModel.cs   |  14 +-
 ...MnemonicViewModel.cs => SuggestionViewModel.cs} |  14 +-
 WalletWasabi.Gui/UiConfig.cs                       | 132 +++++++++
 WalletWasabi.Gui/ViewModels/AddressViewModel.cs    |   2 +-
 WalletWasabi.Gui/ViewModels/MainWindowViewModel.cs |  28 +-
 WalletWasabi.Gui/WalletWasabi.Gui.csproj           |  15 +-
 WalletWasabi.Packager/Program.cs                   |  12 +-
 WalletWasabi.Tests/ModelTests.cs                   |  30 +++
 WalletWasabi.Tests/NodeBuilding/NodeBuilder.cs     |   2 +-
 WalletWasabi.Tests/RegTests.cs                     | 198 ++++++++++++--
 .../XunitConfiguration/RegTestFixture.cs           |   2 +-
 .../WalletWasabi.WindowsInstaller.wixproj          |   2 +-
 .../Models/Responses/CcjRunningRoundState.cs       |   8 +-
 WalletWasabi/Extensions/LinqExtensions.cs          |  17 ++
 WalletWasabi/Helpers/Constants.cs                  |   3 +
 WalletWasabi/KeyManagement/KeyManager.cs           |  11 +-
 .../Models/ChaumianCoinJoin/CcjClientState.cs      |  52 ++--
 WalletWasabi/Models/ChaumianCoinJoin/CcjRound.cs   |  80 ++++--
 .../Models/ChaumianCoinJoin/CcjRoundConfig.cs      |  59 +++-
 WalletWasabi/Models/SmartCoin.cs                   |  49 +++-
 WalletWasabi/Services/CcjClient.cs                 |  52 +++-
 WalletWasabi/Services/CcjCoordinator.cs            |  54 +++-
 WalletWasabi/Services/UtxoReferee.cs               | 181 +++++++++++--
 WalletWasabi/Services/WalletService.cs             |  29 +-
 WalletWasabi/TorSocks5/TorProcessManager.cs        |   2 +-
 WalletWasabi/TorSocks5/TorSocks5Client.cs          |  11 +-
 WalletWasabi/WalletWasabi.csproj                   |   2 +-
 .../Wasabi/ChaumianCoinJoin/AliceClient.cs         |   1 +
 70 files changed, 2682 insertions(+), 504 deletions(-)
 delete mode 100644 WalletWasabi.Gui/Behaviors/MnemonicSuggestionBehavior.cs
 create mode 100644 WalletWasabi.Gui/Behaviors/PasteAddressOnClickBehavior.cs
 create mode 100644 WalletWasabi.Gui/Behaviors/SuggestionBehavior.cs
 create mode 100644 WalletWasabi.Gui/Controls/SortingArrow.cs
 create mode 100644 WalletWasabi.Gui/Converters/CoinItemExpanderColorConverter.cs
 create mode 100644 WalletWasabi.Gui/Converters/CoinStatusBorderBrushConverter.cs
 create mode 100644 WalletWasabi.Gui/Converters/CoinStatusColorConverter.cs
 create mode 100644 WalletWasabi.Gui/Converters/CoinStatusForegroundConverter.cs
 create mode 100644 WalletWasabi.Gui/Converters/CoinStatusStringConverter.cs
 create mode 100644 WalletWasabi.Gui/Converters/WindowStateAfterSartJsonConverter.cs
 create mode 100644 WalletWasabi.Gui/Models/SmartCoinStatus.cs
 rename WalletWasabi.Gui/Tabs/WalletManager/{MnemonicViewModel.cs => SuggestionViewModel.cs} (53%)
 create mode 100644 WalletWasabi.Gui/UiConfig.cs
bob@bob:~/WalletWasabi$ git submodule update --init --recursive 
Submodule path 'WalletWasabi.Dependencies/AvalonStudio.Shell': checked out '9b3adb48b4c1889c2af5ddcbf962dd3bcba59472'
bob@bob:~/WalletWasabi$ cd WalletWasabi.Gui/
bob@bob:~/WalletWasabi/WalletWasabi.Gui$ dotnet run

Welcome to .NET Core!
---------------------
Learn more about .NET Core: https://aka.ms/dotnet-docs
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs

Telemetry
---------
The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

Permission denied to modify the '/usr/share/dotnet/sdk/NuGetFallbackFolder' folder.

Here are some options to fix this error:
----------------------------------------
1. Re-run this command with elevated access.
2. Disabled the first run experience by setting the environment variable DOTNET_SKIP_FIRST_TIME_EXPERIENCE to true.
3. Copy the .NET Core SDK to a non-protected location and use it from there.
    

ASP.NET Core
------------
Successfully installed the ASP.NET Core HTTPS Development Certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only). For establishing trust on other platforms refer to the platform specific documentation.
For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054.
/usr/share/dotnet/sdk/2.1.500/NuGet.targets(114,5): error : Access to the path '/home/bob/.nuget/packages/microsoft.netcore.platforms/2.0.1/qq2yxyjb.xrx' is denied. [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]
/usr/share/dotnet/sdk/2.1.500/NuGet.targets(114,5): error :   Permission denied [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]

The build failed. Please fix the build errors and run again.
@nopara73

This comment has been minimized.

Copy link
Collaborator

commented Nov 27, 2018

I remember I had this issue once and twice on the server (that's an Ubuntu, too.) I had to chmod some nuget related files, but I don't remember what. Maybe usr/share/dotnet/sdk/2.1.500/ should do it.

Also, based on @lontivero's suggestion you could just start over, delete the whole WalletWasabi cloned directory and start over without elevated access.
Your wallet files and stuff are in ~/.walletwasabi/ directory, so there's no danger in that.
I'm however doubtful this would work, I think at one point you've ran a dotnet something command with sudo and that resulted writing NuGet files with elevated access somehow, so my first suggestion should do it.

@lontivero

This comment has been minimized.

Copy link
Contributor

commented Nov 27, 2018

You can try two things:

  • sudo dotnet restore and after that run dotnet run without sudo. Or,
  • sudo chown bob /usr/share/dotnet/sdk/NuGetFallbackFolder and then run dotnet run without sudo.

But this is not a Wasabi problem, the project compiles without sudo, this is a problem in your local environment.

@dreboli

This comment has been minimized.

Copy link
Author

commented Nov 27, 2018

I ended up removing and reinstalling dotnet-sdk-2.1 but ran into similar problems:

dotnet run
/usr/share/dotnet/sdk/2.1.500/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3088: Could not read state file "obj/Debug/netcoreapp2.1/WalletWasabi.csprojAssemblyReference.cache". Access to the path '/home/bob/WalletWasabi/WalletWasabi/obj/Debug/netcoreapp2.1/WalletWasabi.csprojAssemblyReference.cache' is denied. [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
/usr/share/dotnet/sdk/2.1.500/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3101: Could not write state file "obj/Debug/netcoreapp2.1/WalletWasabi.csprojAssemblyReference.cache". Access to the path '/home/bob/WalletWasabi/WalletWasabi/obj/Debug/netcoreapp2.1/WalletWasabi.csprojAssemblyReference.cache' is denied. [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
CSC : error CS0016: Could not write to output file '/home/bob/WalletWasabi/WalletWasabi/bin/Debug/netcoreapp2.1/WalletWasabi.xml' -- 'Access to the path '/home/bob/WalletWasabi/WalletWasabi/bin/Debug/netcoreapp2.1/WalletWasabi.xml' is denied.' [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
/usr/share/dotnet/sdk/2.1.500/Microsoft.Common.CurrentVersion.targets(5106,5): error MSB3491: Could not write lines to file "obj/Debug/netcoreapp2.1/WalletWasabi.csproj.FileListAbsolute.txt". Access to the path '/home/bob/WalletWasabi/WalletWasabi/obj/Debug/netcoreapp2.1/WalletWasabi.csproj.FileListAbsolute.txt' is denied. [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
/usr/share/dotnet/sdk/2.1.500/Microsoft.Common.CurrentVersion.targets(5106,5): error MSB3491: Could not write lines to file "obj/Debug/netcoreapp2.1/WalletWasabi.Gui.csproj.FileListAbsolute.txt". Access to the path '/home/bob/WalletWasabi/WalletWasabi.Gui/obj/Debug/netcoreapp2.1/WalletWasabi.Gui.csproj.FileListAbsolute.txt' is denied. [/home/bob/WalletWasabi/WalletWasabi.Gui/WalletWasabi.Gui.csproj]

The build failed. Please fix the build errors and run again.
dotnet run
/usr/share/dotnet/sdk/2.1.500/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3088: Could not read state file "obj/Debug/netcoreapp2.1/WalletWasabi.csprojAssemblyReference.cache". Access to the path '/home/bob/WalletWasabi/WalletWasabi/obj/Debug/netcoreapp2.1/WalletWasabi.csprojAssemblyReference.cache' is denied. [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
/usr/share/dotnet/sdk/2.1.500/Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3101: Could not write state file "obj/Debug/netcoreapp2.1/WalletWasabi.csprojAssemblyReference.cache". Access to the path '/home/bob/WalletWasabi/WalletWasabi/obj/Debug/netcoreapp2.1/WalletWasabi.csprojAssemblyReference.cache' is denied. [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
CSC : error CS0016: Could not write to output file '/home/bob/WalletWasabi/WalletWasabi/bin/Debug/netcoreapp2.1/WalletWasabi.xml' -- 'Access to the path '/home/bob/WalletWasabi/WalletWasabi/bin/Debug/netcoreapp2.1/WalletWasabi.xml' is denied.' [/home/bob/WalletWasabi/WalletWasabi/WalletWasabi.csproj]
/usr/share/dotnet/sdk/2.1.500/Microsoft.Common.CurrentVersion.targets(5106,5): error MSB3491: Could not write lines to file "obj/Debug/netcoreapp2.1/WalletWasabi.csproj.FileListAbsolute.txt". Access to the path '/home/bob/WalletWasabi/WalletWasabi/obj/Debug/netcoreapp2.1/WalletWasabi.csproj.FileListAbsolute.txt' is denied. [/home/bob/WalletWasabi/Wall

There were some issues during installing dotnet-sdk-2.1 but I think it's unrelated:
dotnet/core#1522

Solved by:

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list

sudo apt-get update
sudo apt-get install dotnet-sdk-2.1

https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.1.0-download.md#ubuntu-1804

My system:

$ uname -a
Linux null 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.1 LTS
Release:	18.04
Codename:	bionic
@dreboli

This comment has been minimized.

Copy link
Author

commented Nov 27, 2018

Completely removed WalletWasabi directory and reinstalled dotnet-sdk-2.1 and started from scratch, it works now without sudo.
Had to delete ~/.walletwasabi/client/Logs.txt to restore permissions.

Thanks for the help!

@dreboli dreboli closed this Nov 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.